Interface SynchConfMBean

  • All Superinterfaces:
    org.bedework.util.jmx.BaseMBean, org.bedework.util.jmx.ConfBaseMBean
    All Known Implementing Classes:
    SynchConf

    public interface SynchConfMBean
    extends org.bedework.util.jmx.ConfBaseMBean
    Configure the Bedework synch engine service
    Author:
    douglm
    • Method Detail

      • setSynchlingPoolSize

        void setSynchlingPoolSize​(int val)
        Parameters:
        val - current size of synchling pool
      • getSynchlingPoolSize

        int getSynchlingPoolSize()
        Returns:
        current size of synchling pool
      • setSynchlingPoolTimeout

        void setSynchlingPoolTimeout​(long val)
        Parameters:
        val - timeout in millisecs
      • getSynchlingPoolTimeout

        long getSynchlingPoolTimeout()
        Returns:
        timeout in millisecs
      • setMissingTargetRetries

        void setMissingTargetRetries​(int val)
        How often we retry when a target is missing
        Parameters:
        val -
      • getMissingTargetRetries

        int getMissingTargetRetries()
        Returns:
        How often we retry when a target is missing
      • setCallbackURI

        void setCallbackURI​(String val)
        web service push callback uri - null for no service
        Parameters:
        val - String
      • getCallbackURI

        String getCallbackURI()
        web service push callback uri - null for no service
        Returns:
        String
      • setTimezonesURI

        void setTimezonesURI​(String val)
        Timezone server location
        Parameters:
        val - String
      • getTimezonesURI

        String getTimezonesURI()
        Timezone server location
        Returns:
        String
      • setKeystore

        void setKeystore​(String val)
        Path to keystore - null for use default
        Parameters:
        val - String
      • getKeystore

        String getKeystore()
        Path to keystore - null for use default
        Returns:
        String
      • setPrivKeys

        void setPrivKeys​(String val)
        Parameters:
        val - String
      • getPrivKeys

        String getPrivKeys()
        Returns:
        String
      • setPubKeys

        void setPubKeys​(String val)
        Parameters:
        val - String
      • getPubKeys

        String getPubKeys()
        Returns:
        String
      • getConnectorNames

        List<String> getConnectorNames()
        List connector names
        Returns:
        list of names
      • setSubscriptionsOnly

        void setSubscriptionsOnly​(boolean val)
        Parameters:
        val - true if this instance only handles subscriptions
      • getSubscriptionsOnly

        boolean getSubscriptionsOnly()
        Returns:
        true if this instance only handles subscriptions
      • getStats

        List<Stat> getStats()
        Get the current stats
        Returns:
        List of Stat
      • setExport

        void setExport​(boolean val)
        Parameters:
        val - Export schema to database?
      • getExport

        boolean getExport()
        Returns:
        true for export schema
      • setSchemaOutFile

        void setSchemaOutFile​(String val)
        Parameters:
        val - Output file name - full path
      • getSchemaOutFile

        String getSchemaOutFile()
        Returns:
        Output file name - full path
      • setDumpThreshold

        void setDumpThreshold​(int val)
        Parameters:
        val - Dump threshold
      • getDumpThreshold

        int getDumpThreshold()
        Returns:
        Dump threshold
      • 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 a new schema. The export 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
      • rescheduleNow

        String rescheduleNow​(String id)
        Reschedule the subscription now
        Parameters:
        id -
        Returns:
        status
      • setHibernateDialect

        void setHibernateDialect​(String value)
        Parameters:
        value -
      • getHibernateDialect

        String getHibernateDialect()
        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
      • removeHibernateProperty

        void removeHibernateProperty​(String name)
        Remove the named property
        Parameters:
        name -
      • addHibernateProperty

        void addHibernateProperty​(String name,
                                  String value)
        Parameters:
        name -
        value -
      • setHibernateProperty

        void setHibernateProperty​(String name,
                                  String value)
        Parameters:
        name -
        value -
      • start

        void start()
        Lifecycle
        Specified by:
        start in interface org.bedework.util.jmx.BaseMBean
      • stop

        void stop()
        Lifecycle
        Specified by:
        stop in interface org.bedework.util.jmx.BaseMBean
      • isStarted

        boolean isStarted()
        Lifecycle
        Returns:
        true if started
      • loadConfig

        String loadConfig()
        (Re)load the configuration
        Returns:
        status