Package com.highdeal.admin.hci
Class SystemStatus
java.lang.Object
com.highdeal.admin.hci.SystemStatus
- All Implemented Interfaces:
XMLMarshallable
This
Java class represents the system status that is a list of statuses for each instance in the connected SAP CC system.- See Also:
XML API for HCI
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="systemStatus">
<xs:complexType>
<xs:sequence>
<xs:element ref="instanceStatus" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="maintenance" type="xs:boolean"/>
</xs:complexType>
</xs:element>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCharacterData(String cData) Adds character data to the content element.voidaddChild(String tagName, XMLMarshallable child) Adds a child to the object, thechildrepresenting the marshallable object which must be added to the element.voidaddInstanceStatus(InstanceStatus instanceStatus) Add an instance status to the system status.Get the list of instance status.getInstancesStatus(InstanceType instanceType) Get the sub-list of instance status on the specified instance type.getInstancesStatus(InstanceType instanceType, ServerStatus... status) Get the sub-list of instance status on the specified instance type and status.getInstanceStatus(InstanceId instanceId) Get the instance status of the given instance ID.booleanGets whether the system is in maintenance mode.voidmarshal(XMLOutputter output) Gives an XML representation of this object, including its children.voidsetAttributes(XMLAttributes atts) Sets the attributes of the XML representation of the element being processed.voidsetMaintenanceMode(boolean maintenance) Sets whether the system is in maintenance mode.
-
Field Details
-
TAG_NAME
The XML tag name of this class: "systemStatus"- See Also:
-
MAINTENANCE_MODE
The XML attribute name of the status: "maintenanceMode"- See Also:
-
-
Constructor Details
-
SystemStatus
public SystemStatus()Initializes a new instance ofSystemStatus.
-
-
Method Details
-
addInstanceStatus
Add an instance status to the system status.- Parameters:
instanceStatus- The instance status to add
-
getInstanceStatus
Get the instance status of the given instance ID.- Parameters:
instanceId- The given instance ID- Returns:
- The instance status of the given instance ID or
null
-
getInstancesStatus
Get the list of instance status.- Returns:
- The list of instance status
-
getInstancesStatus
Get the sub-list of instance status on the specified instance type.- Parameters:
instanceType- The given instance type- Returns:
- The sub-list of instance status on the given instance type
-
getInstancesStatus
Get the sub-list of instance status on the specified instance type and status.- Parameters:
instanceType- The given instance typestatus- The status list to filter- Returns:
- The sub-list of instance status on the given instance type
-
setMaintenanceMode
public void setMaintenanceMode(boolean maintenance) Sets whether the system is in maintenance mode.- Parameters:
maintenance-trueif the system is in maintenance mode,falseotherwise
-
isMaintenanceMode
public boolean isMaintenanceMode()Gets whether the system is in maintenance mode.- Returns:
trueif the system is in maintenance mode,falseotherwise
-
setAttributes
Description copied from interface:XMLMarshallableSets the attributes of the XML representation of the element being processed.- Specified by:
setAttributesin interfaceXMLMarshallable- Parameters:
atts- TheXML attributesof the current element
-
addChild
Description copied from interface:XMLMarshallableAdds a child to the object, thechildrepresenting the marshallable object which must be added to the element.- Specified by:
addChildin interfaceXMLMarshallable- Parameters:
tagName- The name of tag for the childchild- The child to be added
-
addCharacterData
Description copied from interface:XMLMarshallableAdds character data to the content element.- Specified by:
addCharacterDatain interfaceXMLMarshallable- Parameters:
cData- The character data to be added
-
marshal
Description copied from interface:XMLMarshallableGives an XML representation of this object, including its children.- Specified by:
marshalin interfaceXMLMarshallable- Parameters:
output- TheXML outputto marshal the object into
-