Package com.highdeal.admin.hci
Interface InstanceInfo
- All Superinterfaces:
Comparable<InstanceInfo>,XMLMarshallable
- All Known Implementing Classes:
InstanceInfoImpl
This
Java interface represents the interface of the instance information; Consider the InstanceInfoImpl class.
See the InstanceInfoImpl class for more info about the XML description.- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionCopies this InstanceInfo into a new instance of InstanceInfo.getAddress(ServiceInfo.ServiceInfoType service) Gets the address defined for the service.getFullHost(ServiceInfo.ServiceInfoType service) Gets the host name defined for the service with the multi-homing information.getHost(ServiceInfo.ServiceInfoType service) Gets the host name defined for the service.Gets the instance host name.Deprecated.Returns the value of the instance ID.getInstanceName(boolean full) Returns the name (string representation of theInstanceId) or the full name ([<HTTP_HOST_NAME>]<INSTANCE_ID>) of the instance of the SAP CC systemintgetPort(ServiceInfo.ServiceInfoType service) Gets the port defined for the service.getSecurity(ServiceInfo.ServiceInfoType service) Gets the security defined for the service.getServiceInfo(ServiceInfo.ServiceInfoType serviceType) Returns the service information value, containing host value and port number.getURL(ServiceInfo.ServiceInfoType serviceType) Returns the URL for the service.booleanDeprecated.booleanDeprecated.booleanisMultipleBinding(ServiceInfo.ServiceInfoType serviceType) Returnstrueif the service is bound to all available addresses.booleanisServiceAvailable(ServiceInfo.ServiceInfoType serviceType) Returnstrueif the service is available.booleanisServiceEnabled(ServiceInfo.ServiceInfoType serviceType) Returnstrueif the service is available and enabled.voidisValid()Throws an InvalidInstanceInfoException if the instance info is malformed or invalid.voidsetFullHost(ServiceInfo.ServiceInfoType service, String host) Sets the host name defined for the service with the multi-homing information.voidsetHost(ServiceInfo.ServiceInfoType service, String host) Sets the host name defined for the service.voidsetHTTPSecurityEnable(boolean flag) voidsetPort(ServiceInfo.ServiceInfoType service, int port) Sets the port defined for the service.voidsetSecurity(ServiceInfo.ServiceInfoType service, ServiceInfo.ServiceInfoSecurity security) Sets the security policy defined for the service.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.highdeal.hci.XMLMarshallable
addCharacterData, addChild, marshal, setAttributes
-
Field Details
-
TAG_NAME
The XML tag name of this class: "instanceInfo"- See Also:
-
-
Method Details
-
getServiceInfo
Returns the service information value, containing host value and port number.- Parameters:
serviceType- The service type, which is one amongservice info list- Returns:
- The service information
-
getInstanceId
InstanceId getInstanceId()Returns the value of the instance ID.- Returns:
- The
InstanceIdinstance ID) of the instance in the SAP CC system
-
getHostname
String getHostname()Gets the instance host name.- Returns:
- The instance host name
-
duplicate
InstanceInfo duplicate()Copies this InstanceInfo into a new instance of InstanceInfo.- Returns:
- A new instance of InstanceInfo that is an exact copy of this instance
-
getAddress
Gets the address defined for the service.- Parameters:
service- value amongservice info list- Returns:
- The address host name
-
getHost
Gets the host name defined for the service.- Parameters:
service- A value amongservice info list- Returns:
- The service host name
-
getFullHost
Gets the host name defined for the service with the multi-homing information.- Parameters:
service- A value amongservice info list- Returns:
- The service host name
-
getPort
Gets the port defined for the service.- Parameters:
service- A value amongservice info list- Returns:
- The service port
-
getSecurity
Gets the security defined for the service.- Parameters:
service- A value amongservice info list- Returns:
- The
security
-
setFullHost
Sets the host name defined for the service with the multi-homing information.- Parameters:
service- A value amongservice info listhost- The new service host name
-
setHost
Sets the host name defined for the service.- Parameters:
service- A value amongservice info listhost- The new service host name
-
setPort
Sets the port defined for the service.- Parameters:
service- A value amongservice info listport- The new service port
-
setSecurity
Sets the security policy defined for the service.- Parameters:
service- A value amongservice info listsecurity- The newsecurity
-
isHTTPSecurityEnabled
Deprecated.Returnstrueif the HTTP service security is enabled.- Returns:
trueindicates that HTTP service is secured; this is the default
-
setHTTPSecurityEnable
Deprecated.Controls whether HTTP service secured or not.- Parameters:
flag-trueif the HTTP service security is enabled
-
getHTTPURL
Deprecated.Returns the HTTP URL.- Returns:
- The HTTP URL
-
getURL
Returns the URL for the service.- Parameters:
serviceType- A service value amongservice info list- Returns:
- The URL of the service
-
isServiceAvailable
Returnstrueif the service is available.- Parameters:
serviceType- A service value amongservice info list- Returns:
trueif the service is available,falseotherwise
-
isServiceEnabled
Returnstrueif the service is available and enabled.- Parameters:
serviceType- The service value amongservice info list- Returns:
trueif the service is enabled,falseotherwise
-
isMultipleBinding
Returnstrueif the service is bound to all available addresses.- Parameters:
serviceType- A serviceType service value amongservice info list- Returns:
trueif the service is bound to all available addresses,falseotherwise
-
getInstanceName
Returns the name (string representation of theInstanceId) or the full name ([<HTTP_HOST_NAME>]<INSTANCE_ID>) of the instance of the SAP CC system- The full name has the following grammar: [<HTTP_HOST_NAME>]<INSTANCE_ID>
- The name is the string representation of the
InstanceId
- Parameters:
full-trueto return the full name,falseto return the string representation of the instance identifier- Returns:
- The (full) name of this instance
-
isValid
Throws an InvalidInstanceInfoException if the instance info is malformed or invalid.- Throws:
InvalidInstanceException- If theinstance mapis not valid
-
isHttpMultipleBinding
Deprecated.Returns true if the HTTP server is bound to all available addresses.- Returns:
trueif the HTTP server is bound to all available addresses,falseotherwise
-
getURL(com.highdeal.admin.hci.ServiceInfo.ServiceInfoType)instead