Class ServiceConfiguration

java.lang.Object
org.serviceconnector.conf.ServiceConfiguration

public class ServiceConfiguration extends Object
The Class ServiceConfiguration.
  • Constructor Details

    • ServiceConfiguration

      public ServiceConfiguration(String name)
      The Constructor.
      Parameters:
      name - the node name
  • Method Details

    • load

      public void load(org.apache.commons.configuration2.CompositeConfiguration compositeConfig) throws SCMPValidatorException
      Load the configured items.
      Parameters:
      compositeConfig - the composite config
      Throws:
      SCMPValidatorException - the sCMP validator exception
    • toString

      public String toString()
      To string.
      Overrides:
      toString in class Object
      Returns:
      the string
    • getName

      public String getName()
      Gets the name.
      Returns:
      the name
    • getType

      public String getType()
      Gets the type.
      Returns:
      the type
    • getEnabled

      public Boolean getEnabled()
      Gets the enabled.
      Returns:
      the enabled
    • getPath

      public String getPath()
      Gets the path.
      Returns:
      the path
    • getUploadScript

      public String getUploadScript()
      Gets the upload script.
      Returns:
      the upload script
    • getListScript

      public String getListScript()
      Gets the list script.
      Returns:
      the list script
    • getRemoteNodeConfiguration

      public RemoteNodeConfiguration getRemoteNodeConfiguration()
      Gets the remote node configuration.
      Returns:
      the remote node configuration
    • getNoDataIntervalSeconds

      public int getNoDataIntervalSeconds()
      Gets the no data interval seconds.
      Returns:
      the no data interval seconds
    • adaptServiceTypeIfCascService

      public static ServiceType adaptServiceTypeIfCascService(ServiceType serviceType, String remoteHost)
      Adapt service type if cascaded service. SC uses more service type internal. This method figures out if changing of service type is necessary for current service.
      Parameters:
      serviceType - the service type
      remoteHost - the remote host
      Returns:
      the service type