Package com.zfabrik.sync
Class SynchronizationRunner
- java.lang.Object
-
- com.zfabrik.sync.SynchronizationRunner
-
- All Implemented Interfaces:
java.lang.Runnable
public class SynchronizationRunner extends java.lang.Object implements java.lang.RunnablePerforms a synchronization of the z2 home. This will look up all synchronizers (seeISynchronizer) and implement the synchronization process over them.- Author:
- hb
-
-
Field Summary
Fields Modifier and Type Field Description static shortINVALIDATE_AND_VERIFYstatic shortVERIFY_ONLY
-
Constructor Summary
Constructors Constructor Description SynchronizationRunner()SynchronizationRunner(short mode)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidend()voidexecute(boolean wait)static java.lang.LonggetLastSyncCompleted()static java.lang.LonggetLastSyncStarted()java.util.List<java.lang.String>getLog()shortgetMode()voidrun()static booleansequenceExecuting()voidsetKeepLog(boolean keepLog)voidsetMode(short mode)voidsetWhenDone(java.lang.Runnable whenDone)static voidstart()
-
-
-
Field Detail
-
INVALIDATE_AND_VERIFY
public static final short INVALIDATE_AND_VERIFY
- See Also:
- Constant Field Values
-
VERIFY_ONLY
public static final short VERIFY_ONLY
- See Also:
- Constant Field Values
-
-
Method Detail
-
sequenceExecuting
public static boolean sequenceExecuting()
-
getLastSyncStarted
public static java.lang.Long getLastSyncStarted()
-
getLastSyncCompleted
public static java.lang.Long getLastSyncCompleted()
-
start
public static void start()
-
end
public static void end()
-
setKeepLog
public void setKeepLog(boolean keepLog)
-
getLog
public java.util.List<java.lang.String> getLog()
-
setWhenDone
public void setWhenDone(java.lang.Runnable whenDone)
-
setMode
public void setMode(short mode)
-
getMode
public short getMode()
-
run
public void run()
- Specified by:
runin interfacejava.lang.Runnable
-
execute
public void execute(boolean wait)
-
-