@Component @Singleton @Named(value="eventstream") public class EventStreamScriptService extends Object implements org.xwiki.script.service.ScriptService
Constructor and Description |
---|
EventStreamScriptService() |
Modifier and Type | Method and Description |
---|---|
RecordableEventDescriptor |
getDescriptorForEventType(String eventType,
boolean allWikis) |
long |
getEventCount() |
long |
getLegacyEventCount() |
org.xwiki.job.event.status.JobStatus |
getLegacyMigrationStatus()
Get the status of the job responsible for copying legacy event in the new store.
|
List<RecordableEventDescriptor> |
getRecordableEventDescriptors(boolean allWikis) |
org.xwiki.job.event.status.JobStatus |
startLegacyMigration(Date since) |
public List<RecordableEventDescriptor> getRecordableEventDescriptors(boolean allWikis) throws EventStreamException
allWikis
- load the descriptors from all the wikis of the farm if trueEventStreamException
- if an error happenspublic RecordableEventDescriptor getDescriptorForEventType(String eventType, boolean allWikis) throws EventStreamException
eventType
- the type of the eventallWikis
- load the descriptors from all the wikis of the farm if trueEventStreamException
- if an error happens@Unstable public org.xwiki.job.event.status.JobStatus getLegacyMigrationStatus()
@Unstable public org.xwiki.job.event.status.JobStatus startLegacyMigration(Date since) throws org.xwiki.job.JobException
since
- the date after which to copy the events, null for all timeorg.xwiki.job.JobException
- when failing to start the jobpublic long getLegacyEventCount() throws QueryException
QueryException
- when failing to query the eventspublic long getEventCount() throws EventStreamException
EventStreamException
- when failing to query the number of eventsCopyright © 2004–2021 XWiki. All rights reserved.