Class OMAGServerConfigStoreConnectorBase

  • All Implemented Interfaces:

    public abstract class OMAGServerConfigStoreConnectorBase
    extends ConnectorBase
    implements OMAGServerConfigStore
    OMAGServerConfigStoreConnectorBase provides the base class for an OMAG Server's configuration document store. It defines the specific interface for this type of connector. A new connector instance is created for each OMAG Server configuration document that is to be retrieved or stored.
    • Field Detail

      • serverName

        protected java.lang.String serverName
    • Constructor Detail

      • OMAGServerConfigStoreConnectorBase

        public OMAGServerConfigStoreConnectorBase()
    • Method Detail

      • setServerName

        public void setServerName​(java.lang.String serverName)
        Set up the name of the server for this configuration document.
        Specified by:
        setServerName in interface OMAGServerConfigStore
        serverName - name of the server
      • getStoreName

        protected java.lang.String getStoreName​(java.lang.String template,
                                                java.lang.String... params)
        This method provides the ability to generate the name of the store based on a template and insert values. Typically this is to allow the server name to be embedded into the store name, but other values, such as the platform name may also be needed for some store implementations.
        template - this is the template with placeholders
        params - this is the list of parameters that can be embedded in the template if placeholders are present (no error results of the placeholders are not present.
        formatted string