|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xmlBlaster.util.qos.QosData
org.xmlBlaster.util.qos.StatusQosData
public final class StatusQosData
Data container handling of status returned by subscribe(), unSubscribe(), erase() and ping().
This data holder is accessible through decorators, each of them allowing a specialized view on the data:
For the xml representation see StatusQosSaxFactory.
StatusQosSaxFactory
,
StatusQosFactoryTest
,
Serialized FormField Summary | |
---|---|
private java.lang.Throwable |
ex
is set only in case of an exception |
private I_StatusQosFactory |
factory
|
private java.lang.String |
keyOid
The key oid of a publish(), helpful if the oid was generated by xmlBlaster |
private static long |
serialVersionUID
|
private java.lang.String |
subscriptionId
The subscription ID of a subscribe() invocation |
Fields inherited from class org.xmlBlaster.util.qos.QosData |
---|
DEFAULT_persistent, glob, rcvTimestamp, routeNodeList, routeNodes, serialData |
Constructor Summary | |
---|---|
StatusQosData(Global glob,
I_StatusQosFactory factory,
MethodName methodName)
Constructs the specialized quality of service object for status informations. |
|
StatusQosData(Global glob,
I_StatusQosFactory factory,
java.lang.String serialData,
MethodName methodName)
Constructs the specialized quality of service object for a publish() call. |
|
StatusQosData(Global glob,
MethodName methodName)
Constructs the specialized quality of service object for status informations, e.g. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Returns a shallow clone, you can change savely all basic or immutable types like boolean, String, int. |
java.lang.Throwable |
getException()
|
java.lang.String |
getKeyOid()
Access key oid. |
java.lang.String |
getSubscriptionId()
If Pub/Sub style update: contains the subscribe ID which caused this update |
void |
setException(java.lang.Throwable ex)
Setter for the exception |
void |
setKeyOid(java.lang.String oid)
Access unique oid of a message topic. |
void |
setSubscriptionId(java.lang.String subscriptionId)
If Pub/Sub style update: contains the subscribe ID which caused this update |
int |
size()
The size in bytes of the data in XML form. |
java.util.Hashtable |
toJXPath()
Dump the QoS to a flattened JXPath representation. |
java.lang.String |
toXml()
Dump state of this object into a XML ASCII string. |
java.lang.String |
toXml(java.lang.String extraOffset,
java.util.Properties props)
Dump state of this object into a XML ASCII string. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private final transient I_StatusQosFactory factory
private java.lang.String subscriptionId
private java.lang.String keyOid
private java.lang.Throwable ex
Constructor Detail |
---|
public StatusQosData(Global glob, MethodName methodName)
The state defaults to Constants.STATE_OK
The
- factory which knows how to serialize and parse mepublic StatusQosData(Global glob, I_StatusQosFactory factory, MethodName methodName)
The
- factory which knows how to serialize and parse mepublic StatusQosData(Global glob, I_StatusQosFactory factory, java.lang.String serialData, MethodName methodName)
the
- XML based ASCII stringtrue
- Method Detail |
---|
public void setSubscriptionId(java.lang.String subscriptionId)
subscriptionId
- null if PtP messagepublic java.lang.String getSubscriptionId()
public java.lang.String getKeyOid()
public void setKeyOid(java.lang.String oid)
public java.util.Hashtable toJXPath()
This is experimental code for the simple Applet client
/qos/state/@id -> getState() /qos/state/@info -> getStateInfo() /qos/rcvTimestamp/@nanos -> getRcvTimestamp() /qos/rcvTimestamp/text() -> getRcvTime() /qos/methodName/text() -> getMethod() /qos/key/@oid -> getKeyOid() /qos/subscribe/@id -> getSubscriptionId()
Currently only an UpdateQos dump is supported
public int size()
size
in class QosData
public java.lang.String toXml()
toXml
in class QosData
public java.lang.String toXml(java.lang.String extraOffset, java.util.Properties props)
toXml
in class QosData
extraOffset
- indenting of tags for nice output
public java.lang.Object clone()
clone
in class QosData
public void setException(java.lang.Throwable ex)
public java.lang.Throwable getException()
|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |