|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--hypercast.MonitorAndControl.MCRawMessage | +--hypercast.MonitorAndControl.MonMessage
This class implements a Monitor/Control Query message
exchanged between Monitor and Portal to carry the query
and reply for statitics and schemas.
The XML document represeting a MonMessage looks like:
Field Summary | |
static java.lang.String |
MULTICAST_DESTINATION_STRING
|
Method Summary | |
void |
addStat(org.apache.xpath.XPath xpath)
Adds OR updates a new stats item with value Add a new stats item with null value. |
void |
addStat(org.apache.xpath.XPath Xpath,
org.w3c.dom.Element value)
Adds OR updates a new stats item with value If xpath exists, update the stat with new value |
void |
clearMessageID()
|
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object object)
|
hypercast.I_LogicalAddress |
getDestination()
Get the logical address string of the destination of this message. |
org.w3c.dom.Document |
getDocument()
Return the XML document representation of this M&C message. |
long |
getMessageID()
Returns the message ID. |
hypercast.I_LogicalAddress |
getSender()
Get the logical address of the sender of this message. |
int |
getStatsCount()
Get number of statistics contained in this message. |
org.w3c.dom.Element[] |
getStatValue(int index)
Return the XML stats value at the specified index |
org.w3c.dom.Element[] |
getStatValue(org.apache.xpath.XPath xpath)
Return the XML stats value which is referred by the xpath string. |
org.apache.xpath.XPath |
getStatXPath(int index)
Return XPath string at the specified index. |
long |
getTimeStamp()
Get the timestamp of the message |
java.lang.String |
getType()
Get the String representation of the type of the message. |
int |
getTypeNum()
|
int |
hashCode()
|
boolean |
isStatError(int index)
Returns true if an error message exists for a statistics item at the specified index. |
boolean |
isStatError(org.apache.xpath.XPath xpath)
Returns true if an error message exists for a stat with the specified XPath. |
void |
removeStat(int index)
remove a statistics item at the specified index |
void |
removeStat(org.apache.xpath.XPath Xpath)
remove a statistics item with the specified xpath |
void |
setStat(int index,
org.w3c.dom.Element value)
set the XML value of a stat at the specified index |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String MULTICAST_DESTINATION_STRING
Method Detail |
public int getStatsCount()
public org.apache.xpath.XPath getStatXPath(int index) throws HyperCastStatsException
index
- the index of the stats
HyperCastStatsException
public org.w3c.dom.Element[] getStatValue(int index) throws HyperCastStatsException
index
- the index of the stats
HyperCastStatsException
public org.w3c.dom.Element[] getStatValue(org.apache.xpath.XPath xpath) throws HyperCastStatsException
xpath
- the XPath string
HyperCastStatsException
public void addStat(org.apache.xpath.XPath xpath)
null
value.
NB: clobbers any existing stat with null
xpath
- public void addStat(org.apache.xpath.XPath Xpath, org.w3c.dom.Element value)
Xpath
- the xpath stringvalue
- the XML stats valuepublic void setStat(int index, org.w3c.dom.Element value) throws HyperCastStatsException
index
- the index of the statsvalue
- the XML value of the stats
HyperCastStatsException
public boolean isStatError(org.apache.xpath.XPath xpath) throws HyperCastStatsException
xpath
- the xpath string
HyperCastStatsException
public boolean isStatError(int index) throws HyperCastStatsException
index
- the index for this stats
HyperCastStatsException
public void removeStat(org.apache.xpath.XPath Xpath) throws HyperCastStatsException
Xpath
- the xpath string
HyperCastStatsException
public void removeStat(int index) throws HyperCastStatsException
index
- the index of the statistics item
HyperCastStatsException
public java.lang.Object clone()
clone
in class hypercast.MonitorAndControl.MCRawMessage
public org.w3c.dom.Document getDocument()
public hypercast.I_LogicalAddress getDestination()
public long getMessageID()
public void clearMessageID()
public hypercast.I_LogicalAddress getSender()
public long getTimeStamp()
public java.lang.String getType()
public int getTypeNum()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |