|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.waveset.object.PersistentObject
com.waveset.object.Server
Nested Class Summary |
Nested classes inherited from class com.waveset.object.PersistentObject |
PersistentObject.Comparator, PersistentObject.InitialInstance |
Field Summary | |
static java.lang.String |
code_id
|
static java.lang.String |
STATE_ACTIVE
|
static java.lang.String |
STATE_FAILED
|
static java.lang.String |
STATE_INACTIVE
|
static java.lang.String |
STATE_RECOVERED
|
Fields inherited from class com.waveset.object.PersistentObject |
_trace, trace |
Constructor Summary | |
Server()
|
|
Server(org.w3c.dom.Element e)
|
|
Server(java.lang.String xml)
|
Method Summary | |
protected void |
addSubclassAttributes(java.lang.StringBuffer b)
Each concrete subclass may append to the buffer an XML representation of any fields it adds to PersistentObject (if those field values must persist). |
boolean |
equals(java.lang.Object o)
Compares two objects for equality of identity. |
protected WSAttribute |
getAttributeValues(java.lang.String attrName)
|
long |
getHeartBeat()
|
java.lang.String |
getState()
|
Type |
getType()
Return the type of this object. |
java.util.List |
listQueryableAttributes()
|
static void |
main(java.lang.String[] args)
|
protected void |
parseSubclassAttributes(org.w3c.dom.Element e)
Each concrete subclass should parse from the XML buffer any persisted subclass-specific fields (generally, the same ones that it writes into the buffer). |
void |
setState(java.lang.String state)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String code_id
public static final java.lang.String STATE_ACTIVE
public static final java.lang.String STATE_INACTIVE
public static final java.lang.String STATE_FAILED
public static final java.lang.String STATE_RECOVERED
Constructor Detail |
public Server()
public Server(java.lang.String xml) throws WavesetException
public Server(org.w3c.dom.Element e) throws WavesetException
Method Detail |
public Type getType()
PersistentObject
getType
in class PersistentObject
public long getHeartBeat()
public java.lang.String getState()
public void setState(java.lang.String state)
public boolean equals(java.lang.Object o)
PersistentObject
This method overrides the java.lang.Object equals method. It determines equality based on whether the two identities of the current object and the object argument are equal, where equal is defined as:
Note that this will makes it impossible to use the equals() method to do content comparison of two object copies. I'm not sure I really like this, its an unusual way to have equals() behave, but it is convenient for searching collections for references.
equals
in class PersistentObject
o
- - a PersistentObject or an ObjectRefpublic java.util.List listQueryableAttributes()
listQueryableAttributes
in class PersistentObject
defined attributes
that this type of PersistentObject exposes as queryable attributes
(regardless of whether this object has a value for each).
Any subclass of PersistentObject that overrides this method
should first invoke super.listQueryableAttributes()
to ensure that the subclass includes queryable attributes
that are common to all PersistentObjects.
protected WSAttribute getAttributeValues(java.lang.String attrName)
getAttributeValues
in class PersistentObject
attrName
- - the name of the attribute for which to return values.
WSAttribute
that represents the value (or values)
that this object contains for the specified attribute.
protected void addSubclassAttributes(java.lang.StringBuffer b)
PersistentObject
NOTE: Any subclass that overrides this method must similarly override parseSubclassAttributes() so that the subclass attributes are restored.
addSubclassAttributes
in class PersistentObject
protected void parseSubclassAttributes(org.w3c.dom.Element e) throws WavesetException
PersistentObject
parseSubclassAttributes
in class PersistentObject
WavesetException
PersistentObject's default implementation is a no-op.
,
PersistentObject.parseXml(Element)
public static void main(java.lang.String[] args) throws WavesetException
WavesetException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |