Package org.xwiki.eventstream.script
Class LegacyEventStreamScriptService
- java.lang.Object
-
- org.xwiki.eventstream.script.EventStreamScriptService
-
- org.xwiki.eventstream.script.LegacyEventStreamScriptService
-
- All Implemented Interfaces:
org.xwiki.script.service.ScriptService
@Component @Singleton @Named("eventstream") public class LegacyEventStreamScriptService extends org.xwiki.eventstream.script.EventStreamScriptService
Script services for the Event Stream Module.- Since:
- 9.2RC1
- Version:
- $Id: 08bdd1db62d0b4480d77bf26b8f415738b31e471 $
-
-
Constructor Summary
Constructors Constructor Description LegacyEventStreamScriptService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getLegacyEventCount()
org.xwiki.job.event.status.JobStatus
getLegacyMigrationStatus()
Get the status of the job responsible for copying legacy event in the new store.org.xwiki.job.event.status.JobStatus
startLegacyMigration(Date since)
-
-
-
Method Detail
-
getLegacyMigrationStatus
public org.xwiki.job.event.status.JobStatus getLegacyMigrationStatus()
Get the status of the job responsible for copying legacy event in the new store.- Returns:
- the status of the process
- Since:
- 12.6
-
startLegacyMigration
public org.xwiki.job.event.status.JobStatus startLegacyMigration(Date since) throws org.xwiki.job.JobException
- Parameters:
since
- the date after which to copy the events, null for all time- Returns:
- the status of the started process
- Throws:
org.xwiki.job.JobException
- when failing to start the job- Since:
- 12.6
-
getLegacyEventCount
public long getLegacyEventCount() throws org.xwiki.query.QueryException
- Returns:
- the total number of events in the legacy store
- Throws:
org.xwiki.query.QueryException
- when failing to query the events- Since:
- 12.6.1, 12.7RC1
-
-