public interface InstanceInfo extends XMLMarshallable, java.lang.Comparable<InstanceInfo>
Java interface represents the interface of the instance information; Consider the InstanceInfoImpl class.
See the InstanceInfoImpl class for more info about the XML description.InstanceInfoImpl| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TAG_NAME
The XML tag name of this class: "instanceInfo"
|
| Modifier and Type | Method and Description |
|---|---|
InstanceInfo |
duplicate()
Copies this InstanceInfo into a new instance of InstanceInfo.
|
ServiceInfo.Address |
getAddress(ServiceInfo.ServiceInfoType service)
Gets the address defined for the service.
|
java.lang.String |
getFullHost(ServiceInfo.ServiceInfoType service)
Gets the host name defined for the service with the multi-homing information.
|
java.lang.String |
getHost(ServiceInfo.ServiceInfoType service)
Gets the host name defined for the service.
|
java.lang.String |
getHostname()
Gets the instance host name.
|
java.lang.String |
getHTTPURL()
Deprecated.
|
InstanceId |
getInstanceId()
Returns the value of the instance ID.
|
java.lang.String |
getInstanceName(boolean full)
Returns the name (string representation of the
InstanceId) or the full name ([<HTTP_HOST_NAME>]<INSTANCE_ID>) of the instance of the SAP CC system |
int |
getPort(ServiceInfo.ServiceInfoType service)
Gets the port defined for the service.
|
ServiceInfo.ServiceInfoSecurity |
getSecurity(ServiceInfo.ServiceInfoType service)
Gets the security defined for the service.
|
ServiceInfo |
getServiceInfo(ServiceInfo.ServiceInfoType serviceType)
Returns the service information value, containing host value and port number.
|
java.lang.String |
getURL(ServiceInfo.ServiceInfoType serviceType)
Returns the URL for the service.
|
boolean |
isHttpMultipleBinding()
Deprecated.
|
boolean |
isHTTPSecurityEnabled()
Deprecated.
|
boolean |
isMultipleBinding(ServiceInfo.ServiceInfoType serviceType)
Returns
true if the service is bound to all available addresses. |
boolean |
isServiceAvailable(ServiceInfo.ServiceInfoType serviceType)
Returns
true if the service is available. |
boolean |
isServiceEnabled(ServiceInfo.ServiceInfoType serviceType)
Returns
true if the service is available and enabled. |
void |
isValid()
Throws an InvalidInstanceInfoException if the instance info is malformed or invalid.
|
void |
setFullHost(ServiceInfo.ServiceInfoType service,
java.lang.String host)
Sets the host name defined for the service with the multi-homing information.
|
void |
setHost(ServiceInfo.ServiceInfoType service,
java.lang.String host)
Sets the host name defined for the service.
|
void |
setHTTPSecurityEnable(boolean flag)
|
void |
setPort(ServiceInfo.ServiceInfoType service,
int port)
Sets the port defined for the service.
|
void |
setSecurity(ServiceInfo.ServiceInfoType service,
ServiceInfo.ServiceInfoSecurity security)
Sets the security policy defined for the service.
|
addCharacterData, addChild, marshal, setAttributesstatic final java.lang.String TAG_NAME
ServiceInfo getServiceInfo(ServiceInfo.ServiceInfoType serviceType)
serviceType - The service type, which is one among service info listInstanceId getInstanceId()
InstanceId instance ID) of the instance in the SAP CC systemjava.lang.String getHostname()
InstanceInfo duplicate()
ServiceInfo.Address getAddress(ServiceInfo.ServiceInfoType service)
service - value among service info listjava.lang.String getHost(ServiceInfo.ServiceInfoType service)
service - A value among service info listjava.lang.String getFullHost(ServiceInfo.ServiceInfoType service)
service - A value among service info listint getPort(ServiceInfo.ServiceInfoType service)
service - A value among service info listServiceInfo.ServiceInfoSecurity getSecurity(ServiceInfo.ServiceInfoType service)
service - A value among service info listsecurityvoid setFullHost(ServiceInfo.ServiceInfoType service, java.lang.String host)
service - A value among service info listhost - The new service host namevoid setHost(ServiceInfo.ServiceInfoType service, java.lang.String host)
service - A value among service info listhost - The new service host namevoid setPort(ServiceInfo.ServiceInfoType service, int port)
service - A value among service info listport - The new service portvoid setSecurity(ServiceInfo.ServiceInfoType service, ServiceInfo.ServiceInfoSecurity security)
service - A value among service info listsecurity - The new security@Deprecated boolean isHTTPSecurityEnabled()
getSecurity(com.highdeal.admin.hci.ServiceInfo.ServiceInfoType) instead.true if the HTTP service security is enabled.true indicates that HTTP service is secured; this is the default@Deprecated void setHTTPSecurityEnable(boolean flag)
setSecurity(com.highdeal.admin.hci.ServiceInfo.ServiceInfoType, com.highdeal.admin.hci.ServiceInfo.ServiceInfoSecurity) insteadflag - true if the HTTP service security is enabled@Deprecated java.lang.String getHTTPURL()
getURL(com.highdeal.admin.hci.ServiceInfo.ServiceInfoType) insteadjava.lang.String getURL(ServiceInfo.ServiceInfoType serviceType)
serviceType - A service value among service info listboolean isServiceAvailable(ServiceInfo.ServiceInfoType serviceType)
true if the service is available.serviceType - A service value among service info listtrue if the service is available, false otherwiseboolean isServiceEnabled(ServiceInfo.ServiceInfoType serviceType)
true if the service is available and enabled.serviceType - The service value among service info listtrue if the service is enabled, false otherwiseboolean isMultipleBinding(ServiceInfo.ServiceInfoType serviceType)
true if the service is bound to all available addresses.serviceType - A serviceType service value among service info listtrue if the service is bound to all available addresses, false otherwisejava.lang.String getInstanceName(boolean full)
InstanceId) or the full name ([<HTTP_HOST_NAME>]<INSTANCE_ID>) of the instance of the SAP CC system
InstanceId
full - true to return the full name, false to return the string representation of the instance identifiervoid isValid()
throws InvalidInstanceException
InvalidInstanceException - If the instance map is not valid@Deprecated boolean isHttpMultipleBinding()
isMultipleBinding(com.highdeal.admin.hci.ServiceInfo.ServiceInfoType) insteadtrue if the HTTP server is bound to all available addresses, false otherwise