com.atlassian.crowd.embedded.api
Class DirectorySynchronisationInformation

java.lang.Object
  extended by com.atlassian.crowd.embedded.api.DirectorySynchronisationInformation

public class DirectorySynchronisationInformation
extends java.lang.Object

Simple object to store synchronisation information for synchronisable directories


Constructor Summary
DirectorySynchronisationInformation(long lastSyncStartTime, long lastSyncDurationInSeconds, long currentSyncStartTime)
           
 
Method Summary
 long getCurrentSyncStartTime()
          Returns the start time in milliseconds of the current synchronisation.
 long getLastSyncDurationInSeconds()
          Returns in seconds the duration of the last synchronisation
 long getLastSyncStartTime()
          Returns the time in milliseconds of the last directory synchronisation time.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectorySynchronisationInformation

public DirectorySynchronisationInformation(long lastSyncStartTime,
                                           long lastSyncDurationInSeconds,
                                           long currentSyncStartTime)
Method Detail

getCurrentSyncStartTime

public long getCurrentSyncStartTime()
Returns the start time in milliseconds of the current synchronisation.

Returns:
the start time in milliseconds of the current synchronisation, 0 if the directory is not currently synchronising.

getLastSyncDurationInSeconds

public long getLastSyncDurationInSeconds()
Returns in seconds the duration of the last synchronisation

Returns:
Number of seconds the last synchronisation took

getLastSyncStartTime

public long getLastSyncStartTime()
Returns the time in milliseconds of the last directory synchronisation time. Returns 0 if the directory has never been synchronised.

Returns:
the time in milliseconds of the last directory synchronisation time


Copyright © 2010 Atlassian. All Rights Reserved.