Class PushServiceConfig

  • All Implemented Interfaces:
    java.io.Serializable

    public class PushServiceConfig
    extends java.lang.Object
    implements java.io.Serializable
    Configuration class for RESTful service interface for persist interface of PublishingHubDB connector.

    This will set defaults for "model" and "instance" arguments.

    Executing the main method of this class will create an example configuration on the command line. It will also provide the preferred file location in the repository.

    Since:
    4.0.5
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getDefaultInstance()
      Returns the default connector instance.
      java.lang.String getDefaultModel()
      Returns the default model.
      void setDefaultInstance​(java.lang.String defaultInstance)
      Sets the default connector instance.
      void setDefaultModel​(java.lang.String defaultModel)
      Sets the default model.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PushServiceConfig

        public PushServiceConfig()
    • Method Detail

      • getDefaultModel

        public java.lang.String getDefaultModel()
        Returns the default model.

        This method retrieves the name of the default model that will be used if no model is explicitly set in the PushData class.

        Returns:
        The name of the default model.
      • setDefaultModel

        public void setDefaultModel​(java.lang.String defaultModel)
        Sets the default model.

        This method assigns the specified model to be used as the default if no model is explicitly set in the PushData class.

        Parameters:
        defaultModel - The name of the default model.
      • getDefaultInstance

        public java.lang.String getDefaultInstance()
        Returns the default connector instance.

        This method retrieves the name of the default connector instance that will be used if no instance is explicitly set in the PushData class.

        Returns:
        The name of the default connector instance.
      • setDefaultInstance

        public void setDefaultInstance​(java.lang.String defaultInstance)
        Sets the default connector instance.

        This method assigns the specified connector instance to be used as the default if no instance is explicitly set in the PushData class.

        Parameters:
        defaultInstance - The name of the default connector instance.