|
SAP CC 1.0
API 4.2 (Core) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.highdeal.admin.hci.StatusModel
public class StatusModel
This class represents the status of the server.
| XML Schema Fragment |
<xs:element name="status">
<xs:complexType>
<xs:attribute name="isRunning" type="xs:boolean" use="required"/>
<xs:attribute name="startDate" type="xs:dateTime"/>
<xs:attribute name="freeMemory" type="xs:decimal" use="required"/>
<xs:attribute name="totalMemory" type="xs:decimal" use="required"/>
</xs:complexType>
</xs:element> |
| Field Summary | |
|---|---|
static java.lang.String |
FREE_MEMORY
Mapping for the free memory : "freeMemory". |
static java.lang.String |
ISRUNNING
Mapping for the running flag : "isRunning". |
static java.lang.String |
STARTDATE
Mapping for the start date : "startDate". |
static java.lang.String |
STATUS_MODEL
Mapping for the status model : "status". |
static java.lang.String |
TOTAL_MEMORY
Mapping for the total memory : "totalMemory". |
| Constructor Summary | |
|---|---|
StatusModel()
|
|
StatusModel(boolean isRunning,
java.util.Date startDate,
long totalMemory,
long freeMemory)
Initializes a new StatusModel instance with the
running status and the start date of the server. |
|
| Method Summary | |
|---|---|
void |
addCharacterData(java.lang.String cData)
Adds string data to this model. |
void |
addChild(java.lang.String tagName,
XMLMarshallable child)
Adds a child tag to this model. |
long |
getFreeMemory()
Gets an estimation of the JVM free memory of the server. |
java.util.Date |
getStartDate()
Gets the date at which the server has been started. |
long |
getTotalMemory()
Gets the total memory used by the JVM of the server. |
boolean |
isRunning()
Returns true if the server is running. |
void |
marshal(XMLOutputter output)
Writes the operation XML data to the given output. |
void |
setAttributes(XMLAttributes atts)
Sets the operation attributes from the XMLAttributes. |
void |
setFreeMemory(long freeMemory)
Sets an estimation of the JVM free memory of the server. |
void |
setIsRunning(boolean isRunning)
Sets the running status of the server. |
void |
setStartDate(java.util.Date startDate)
Sets the date at which the server has been started. |
void |
setTotalMemory(long totalMemory)
Sets the total memory of the server |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String STATUS_MODEL
public static final java.lang.String ISRUNNING
public static final java.lang.String STARTDATE
public static final java.lang.String TOTAL_MEMORY
public static final java.lang.String FREE_MEMORY
| Constructor Detail |
|---|
public StatusModel()
public StatusModel(boolean isRunning,
java.util.Date startDate,
long totalMemory,
long freeMemory)
StatusModel instance with the
running status and the start date of the server.
totalMemory is the total memory of the JVM on StatusModel creation. freeMemory is the free memory of the JVM on StatusModel creation.
isRunning - flag indicating if the server is runningstartDate - the date when the server was startedtotalMemory - The total available memory in the JVMfreeMemory - The free available memory in the JVMRuntime.freeMemory(),
Runtime.totalMemory()| Method Detail |
|---|
public java.util.Date getStartDate()
public void setStartDate(java.util.Date startDate)
startDate - the server start date.public boolean isRunning()
public void setIsRunning(boolean isRunning)
isRunning - the running status.public long getFreeMemory()
public void setFreeMemory(long freeMemory)
freeMemory - the free memory of the JVMpublic long getTotalMemory()
public void setTotalMemory(long totalMemory)
totalMemory - the total memory of the serverpublic void setAttributes(XMLAttributes atts)
XMLAttributes.
setAttributes in interface XMLMarshallableatts - the XMLAttributes containing the data
public void addChild(java.lang.String tagName,
XMLMarshallable child)
This tag is ignored for this model.
addChild in interface XMLMarshallabletagName - the name of the tagchild - the XMLMarshallable child to addpublic void addCharacterData(java.lang.String cData)
This data is ignored for this model.
addCharacterData in interface XMLMarshallablecData - the character data to add to the operationpublic void marshal(XMLOutputter output)
marshal in interface XMLMarshallableoutput - the XMLOutputter to write into
|
SAP CC 1.0
API 4.2 (Core) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
SAP Convergent Charging 1.0 (build R4.2.1.35.0.0)
CONVERGENT CHARGING 4.2
(c) Copyright 2009 SAP AG. All rights reserved.