Interface EventregSvcMBean

All Superinterfaces:
org.bedework.util.jmx.BaseMBean, org.bedework.util.jmx.ConfBaseMBean, EventregProperties, org.bedework.util.config.HibernateConfigI

public interface EventregSvcMBean extends org.bedework.util.jmx.ConfBaseMBean, EventregProperties
Run the Bedework synch engine service
Author:
douglm
  • 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

      List<String> schemaStatus()
      Returns status of the schema build.
      Returns:
      Completion messages
    • listHibernateProperties

      String listHibernateProperties()
      List the hibernate properties
      Returns:
      properties
    • displayHibernateProperty

      String displayHibernateProperty(String name)
      Display the named property
      Parameters:
      name -
      Returns:
      value
    • restoreData

      List<String> 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

      List<String> restoreStatus()
      Returns status of the restore.
      Returns:
      Completion messages and stats
    • dumpData

      List<String> dumpData()
      Dumps the data to a file in the DataOut directory.
      Returns:
      Completion messages and stats
    • dumpStatus

      List<String> dumpStatus()
      Returns status of the dump.
      Returns:
      Completion messages and stats
    • generateAdminToken

      String generateAdminToken()
      Generate an admin token.
      Returns:
      Completion message
    • queueRequest

      boolean queueRequest(EventregRequest request)
      Parameters:
      request - to be queued
      Returns:
      false if service not accepting requests
    • setEventregRequestHandler

      void setEventregRequestHandler(EventregRequestHandler val)