Package com.highdeal.admin.hci
Class InstanceStatus
java.lang.Object
com.highdeal.admin.hci.InstanceStatus
- All Implemented Interfaces:
XMLMarshallable
This
Java class represents an instance status that describes the running status (on, off, waiting) of a specific instance of the SAP CC system;
It contains a list of instance properties.- See Also:
XML API for HCI
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="instanceStatus">
<xs:complexType>
<xs:sequence>
<xs:element ref="instanceProperty" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="instanceId" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="((dispatcher|updater|rater|guider|bulkLoader|taxer)#\d)"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="status" type="ServerStatusType" use="required" />
</xs:complexType>
</xs:element>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionInstanceStatus default constructorInstanceStatus(InstanceId instanceId, InstanceInfo instanceInfo) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBooleanProperty(String name, boolean value) Add a property the instance given its name and value as the booleanvoidaddCharacterData(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.voidaddDateProperty(String name, Date value) Add a property the instance given its name and value as the datevoidaddDecimalProperty(String name, BigDecimal value) Add a property the instance given its name and value as the big decimalvoidaddIntegerProperty(String name, int value) Add a property the instance given its name and value as the integervoidaddLongProperty(String name, long value) Add a property the instance given its name and value as the longvoidaddProperty(String name, String value) Add a property the instance given its name and value as the stringGet the names of all thepropertiesdefined in this objectbooleangetBooleanProperty(String name) Get an instance property as a boolean given its namegetDateProperty(String name) Get an instance property as a date given its namegetDecimalProperty(String name) Get an instance property as a big decimal given its nameGet the instance identifierGet the instance infogetIntegerProperty(String name) Get an instance property as an integer given its namegetLongProperty(String name) Get an instance property as a long given its namegetProperty(String name) Get aninstance propertyas a string given its nameReturns the status of the instance of the SAP CC systemvoidmarshal(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.voidsetStatus(ServerStatus status) Set the instance status
-
Field Details
-
TAG_NAME
The XML tag name of this class: "instanceStatus"- See Also:
-
-
Constructor Details
-
InstanceStatus
public InstanceStatus()InstanceStatus default constructor -
InstanceStatus
- Parameters:
instanceId- The specifiedInstanceIdinstanceInfo- The specifiedInstanceInfo
-
-
Method Details
-
getStatus
Returns the status of the instance of the SAP CC system- Returns:
- The instance status
-
setStatus
Set the instance status- Parameters:
status- The instance status to set
-
getInstanceId
Get the instance identifier- Returns:
- The instance identifier
-
getInstanceInfo
Get the instance info- Returns:
- The
InstanceInfo
-
getProperty
Get aninstance propertyas a string given its name- Parameters:
name- The property name- Returns:
- The property value as a string or
null
-
getAllPropertyNames
Get the names of all thepropertiesdefined in this object- Returns:
- The names of all the
propertiesdefined in this object
-
getDecimalProperty
Get an instance property as a big decimal given its name- Parameters:
name- The property name- Returns:
- The property value as a big decimal or null
-
getDateProperty
Get an instance property as a date given its name- Parameters:
name- The property name- Returns:
- The property value as a date or null
-
getBooleanProperty
Get an instance property as a boolean given its name- Parameters:
name- The property name- Returns:
- The property value as a boolean or null
-
getIntegerProperty
Get an instance property as an integer given its name- Parameters:
name- The property name- Returns:
- The property value as an integer or null
-
getLongProperty
Get an instance property as a long given its name- Parameters:
name- The property name- Returns:
- The property value as a long or null
-
addProperty
Add a property the instance given its name and value as the string- Parameters:
name- The property name to addvalue- The property value as a string to add
-
addDecimalProperty
Add a property the instance given its name and value as the big decimal- Parameters:
name- The property name to addvalue- The property value as a big decimal to add
-
addDateProperty
Add a property the instance given its name and value as the date- Parameters:
name- The property name to addvalue- The property value as a date to add
-
addBooleanProperty
Add a property the instance given its name and value as the boolean- Parameters:
name- The property name to addvalue- The property value as a boolean to add
-
addIntegerProperty
Add a property the instance given its name and value as the integer- Parameters:
name- The property name to addvalue- The property value as a integer to add
-
addLongProperty
Add a property the instance given its name and value as the long- Parameters:
name- The property name to addvalue- The property value as a long to add
-
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
-