Package org.bedework.eventreg.service
Interface EventregSvcMBean
- All Superinterfaces:
org.bedework.util.jmx.BaseMBean,org.bedework.util.jmx.ConfBaseMBean,EventregProperties,org.bedework.util.config.HibernateConfigI
Run the Bedework synch engine service
- Author:
- douglm
-
Method Summary
Modifier and TypeMethodDescriptionDisplay the named propertydumpData()Dumps the data to a file in the DataOut directory.Returns status of the dump.Generate an admin token.booleanList the hibernate propertiesbooleanqueueRequest(EventregRequest request) Restores the data from the DataIn path.Returns status of the restore.schema()Create or dump new schema.Returns status of the schema build.voidvoidsetExport(boolean val) Export schema to database?Methods inherited from interface org.bedework.util.jmx.BaseMBean
getServiceName, isRunning, start, stopMethods inherited from interface org.bedework.util.jmx.ConfBaseMBean
getConfigName, getStatus, saveConfig, setStatusMethods inherited from interface org.bedework.eventreg.service.EventregProperties
addSyseventsProperty, getActionDelayQueueName, getActionQueueName, getBwId, getBwToken, getBwUrl, getDataIn, getDataOut, getDataOutPrefix, getDefaultEmailDomain, getDelayMillis, getEventregAdminToken, getRegidBatchSize, getRetries, getSchemaOutFile, getSyseventsProperties, getSyseventsProperty, getTzsUri, getWsdlUri, removeSyseventsProperty, setActionDelayQueueName, setActionQueueName, setBwId, setBwToken, setBwUrl, setDataIn, setDataOut, setDataOutPrefix, setDefaultEmailDomain, setDelayMillis, setEventregAdminToken, setRegidBatchSize, setRetries, setSchemaOutFile, setSyseventsProperties, setSyseventsProperty, setTzsUri, setWsdlUriMethods inherited from interface org.bedework.util.config.HibernateConfigI
addHibernateProperty, getHibernateDialect, getHibernateProperties, getHibernateProperty, removeHibernateProperty, setHibernateDialect, setHibernateProperties, setHibernateProperty
-
Method Details
-
setExport
void setExport(boolean val) Export schema to database?- Parameters:
val-
-
getExport
boolean getExport()- Returns:
- true for export schema
-
schema
String schema()Create or dump new schema. If export and drop set will try to drop tables. Export and create will create a schema in the db and export, drop, create will drop tables, and try to create anew schema. The export, create and drop flags will all be reset to false after this, whatever the result. This avoids accidental damage to the db.- Returns:
- Completion message
-
schemaStatus
Returns status of the schema build.- Returns:
- Completion messages
-
listHibernateProperties
String listHibernateProperties()List the hibernate properties- Returns:
- properties
-
displayHibernateProperty
Display the named property- Parameters:
name-- Returns:
- value
-
restoreData
Restores the data from the DataIn path. Will not restore if there appears to be any data already in the db.- Returns:
- Completion messages and stats
-
restoreStatus
Returns status of the restore.- Returns:
- Completion messages and stats
-
dumpData
Dumps the data to a file in the DataOut directory.- Returns:
- Completion messages and stats
-
dumpStatus
Returns status of the dump.- Returns:
- Completion messages and stats
-
generateAdminToken
String generateAdminToken()Generate an admin token.- Returns:
- Completion message
-
queueRequest
- Parameters:
request- to be queued- Returns:
- false if service not accepting requests
-
setEventregRequestHandler
-