Package org.imixs.archive.service.resync
Class ResyncService
- java.lang.Object
-
- org.imixs.archive.service.resync.ResyncService
-
public class ResyncService extends Object
The SyncService synchronizes the data of a Imixs-Worklfow instance with the cassandra cluster. The synchonrization can be started by the method sync(). The SyncService is implemented as a SingleActionTimer so the sync can run in backgroud.The service automatically starts during deployment. When all the data is synchronized (syncpoint == last snapshot), the service terminates.
To access the data form the Imixs-Workflow instance uses RemoteAPIService.
- Version:
- 1.0
- Author:
- rsoika
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_SCHEDULER_DEFINITIONstatic StringITEM_SYNCCOUNTstatic StringITEM_SYNCPOINTstatic StringITEM_SYNCSIZEstatic StringMESSAGE_TOPICstatic StringTIMER_ID_SYNCSERVICE
-
Constructor Summary
Constructors Constructor Description ResyncService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancel()Stops the current syncbooleanisRunning()returns true if the service is runningvoidstart()This method initializes a new timer for the sync ....
-
-
-
Field Detail
-
TIMER_ID_SYNCSERVICE
public static final String TIMER_ID_SYNCSERVICE
- See Also:
- Constant Field Values
-
ITEM_SYNCPOINT
public static final String ITEM_SYNCPOINT
- See Also:
- Constant Field Values
-
ITEM_SYNCCOUNT
public static final String ITEM_SYNCCOUNT
- See Also:
- Constant Field Values
-
ITEM_SYNCSIZE
public static final String ITEM_SYNCSIZE
- See Also:
- Constant Field Values
-
DEFAULT_SCHEDULER_DEFINITION
public static final String DEFAULT_SCHEDULER_DEFINITION
- See Also:
- Constant Field Values
-
MESSAGE_TOPIC
public static final String MESSAGE_TOPIC
- See Also:
- Constant Field Values
-
-
Method Detail
-
start
public void start() throws ArchiveExceptionThis method initializes a new timer for the sync ....The method also verifies the existence of the archive keyspace by loading the archive session object.
- Throws:
ArchiveException
-
cancel
public void cancel() throws ArchiveExceptionStops the current sync- Throws:
ArchiveException
-
isRunning
public boolean isRunning()
returns true if the service is running- Returns:
-
-