Package org.imixs.archive.service.resync
Class ResyncService
java.lang.Object
org.imixs.archive.service.resync.ResyncService
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 Details
-
TIMER_ID_SYNCSERVICE
- See Also:
-
ITEM_SYNCPOINT
- See Also:
-
ITEM_SYNCCOUNT
- See Also:
-
ITEM_SYNCSIZE
- See Also:
-
DEFAULT_SCHEDULER_DEFINITION
- See Also:
-
MESSAGE_TOPIC
- See Also:
-
-
Constructor Details
-
ResyncService
public ResyncService()
-
-
Method Details
-
start
This 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
Stops the current sync- Throws:
ArchiveException
-
isRunning
public boolean isRunning()returns true if the service is running- Returns:
-