public class SystemStatus extends Object implements XMLMarshallable
Java class represents the system status that is a list of statuses for each instance in the connected SAP CC system.InstanceStatus,
GetSystemStatusOpThe 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:complexType>
</xs:element>
| Modifier and Type | Field and Description |
|---|---|
static String |
TAG_NAME
The XML tag name of this class: "systemStatus"
|
| Constructor and Description |
|---|
SystemStatus()
Initializes a new instance of
SystemStatus. |
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(String cData)
Adds character data to the content element.
|
void |
addChild(String tagName,
XMLMarshallable child)
Adds a child to the object, the
child representing
the marshallable object which must be added to the element. |
void |
addInstanceStatus(InstanceStatus instanceStatus)
Add an instance status to the system status.
|
List<InstanceStatus> |
getInstancesStatus()
Get the list of instance status.
|
List<InstanceStatus> |
getInstancesStatus(InstanceType instanceType)
Get the sub-list of instance status on the specified instance type.
|
List<InstanceStatus> |
getInstancesStatus(InstanceType instanceType,
ServerStatus... status)
Get the sub-list of instance status on the specified instance type and status.
|
InstanceStatus |
getInstanceStatus(InstanceId instanceId)
Get the instance status of the given instance ID.
|
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children.
|
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being
processed.
|
public static final String TAG_NAME
public void addInstanceStatus(InstanceStatus instanceStatus)
instanceStatus - The instance status to addpublic InstanceStatus getInstanceStatus(InstanceId instanceId)
instanceId - The given instance IDnullpublic List<InstanceStatus> getInstancesStatus()
public List<InstanceStatus> getInstancesStatus(InstanceType instanceType)
instanceType - The given instance typepublic List<InstanceStatus> getInstancesStatus(InstanceType instanceType, ServerStatus... status)
instanceType - The given instance typestatus - The status list to filterpublic void setAttributes(XMLAttributes atts)
XMLMarshallablesetAttributes in interface XMLMarshallableatts - The XML attributes of the current elementpublic void addChild(String tagName, XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.addChild in interface XMLMarshallabletagName - The name of tag for the childchild - The child to be addedpublic void addCharacterData(String cData)
XMLMarshallableaddCharacterData in interface XMLMarshallablecData - The character data to be addedpublic void marshal(XMLOutputter output)
XMLMarshallablemarshal in interface XMLMarshallableoutput - The XML output to marshal the object into