public class SystemStatus extends java.lang.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:attribute name="maintenance" type="xs:boolean"/>
</xs:complexType>
</xs:element>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
MAINTENANCE_MODE
The XML attribute name of the status: "maintenanceMode"
|
static java.lang.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(java.lang.String cData)
Adds character data to the content element.
|
void |
addChild(java.lang.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.
|
java.util.List<InstanceStatus> |
getInstancesStatus()
Get the list of instance status.
|
java.util.List<InstanceStatus> |
getInstancesStatus(InstanceType instanceType)
Get the sub-list of instance status on the specified instance type.
|
java.util.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.
|
boolean |
isMaintenanceMode()
Gets whether the system is in maintenance mode.
|
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.
|
void |
setMaintenanceMode(boolean maintenance)
Sets whether the system is in maintenance mode.
|
public static final java.lang.String TAG_NAME
public static final java.lang.String MAINTENANCE_MODE
public void addInstanceStatus(InstanceStatus instanceStatus)
instanceStatus - The instance status to addpublic InstanceStatus getInstanceStatus(InstanceId instanceId)
instanceId - The given instance IDnullpublic java.util.List<InstanceStatus> getInstancesStatus()
public java.util.List<InstanceStatus> getInstancesStatus(InstanceType instanceType)
instanceType - The given instance typepublic java.util.List<InstanceStatus> getInstancesStatus(InstanceType instanceType, ServerStatus... status)
instanceType - The given instance typestatus - The status list to filterpublic void setMaintenanceMode(boolean maintenance)
maintenance - true if the system is in maintenance mode, false otherwisepublic boolean isMaintenanceMode()
true if the system is in maintenance mode, false otherwisepublic void setAttributes(XMLAttributes atts)
XMLMarshallablesetAttributes in interface XMLMarshallableatts - The XML attributes of the current elementpublic void addChild(java.lang.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(java.lang.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