Package org.serviceconnector.conf
Class ServiceConfiguration
java.lang.Object
org.serviceconnector.conf.ServiceConfiguration
The Class ServiceConfiguration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ServiceTypeadaptServiceTypeIfCascService(ServiceType serviceType, String remoteHost) Adapt service type if cascaded service.Gets the enabled.Gets the list script.getName()Gets the name.intGets the no data interval seconds.getPath()Gets the path.Gets the remote node configuration.getType()Gets the type.Gets the upload script.voidload(org.apache.commons.configuration2.CompositeConfiguration compositeConfig) Load the configured items.toString()To string.
-
Constructor Details
-
ServiceConfiguration
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
To string. -
getName
Gets the name.- Returns:
- the name
-
getType
Gets the type.- Returns:
- the type
-
getEnabled
Gets the enabled.- Returns:
- the enabled
-
getPath
Gets the path.- Returns:
- the path
-
getUploadScript
Gets the upload script.- Returns:
- the upload script
-
getListScript
Gets the list script.- Returns:
- the list script
-
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
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 typeremoteHost- the remote host- Returns:
- the service type
-