|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xmlBlaster.engine.cluster.NodeConnectQos
public final class NodeConnectQos
This class holds the address informations about an xmlBlaster server instance (=cluster node). It is created by the NodeParser from xml markup of by the ClusterManager (via ClusterNode) for our local node.
<!-- Messages of type "__sys__cluster.node.master[heron]": --> <connect> <qos> ... </qos> </connect>
Field Summary | |
---|---|
private java.lang.String |
cbSessionId
A unique created session id delivered on callback in update() method |
private ConnectQosData |
connectQosData
|
private ConnectQosSaxFactory |
connectQosSaxFactory
|
private long |
counter
|
private DisconnectQos |
disconnectQos
|
private boolean |
inConnectQos
|
private static java.util.logging.Logger |
log
|
private java.lang.String |
ME
|
private boolean |
nameService
|
private NodeId |
nodeId
|
private Global |
remoteGlob
This util global instance is used for I_XmlBlasterAccess, it uses the specific settings from NodeInfo to connect to the remote node |
Constructor Summary | |
---|---|
NodeConnectQos(Global remoteGlob,
NodeId nodeId)
Holds the ConnectQos of a node. |
Method Summary | |
---|---|
void |
addAddress(Address address)
Add another address for this cluster node. |
void |
addCbAddress(CallbackAddress cbAddress)
Add another callback address for this cluster node. |
void |
characters(char[] ch,
int start,
int length,
java.lang.StringBuffer delegateCharacters)
Characters. |
boolean |
contains(Address other)
Does the given address belong to this node? |
private java.lang.String |
createCbSessionId()
Create a more or less unique sessionId. |
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String name,
java.lang.StringBuffer character)
Handle SAX parsed end element |
private Address |
getAddress()
Access the currently used address to access the node |
(package private) java.lang.String |
getCbSessionId()
The expected callback sessionId which used to authenticate the update() call |
ConnectQosData |
getConnectQosData()
|
DisconnectQos |
getDisconnectQos()
|
java.lang.String |
getId()
|
NodeId |
getNodeId()
|
Global |
getRemoteGlob()
|
boolean |
isNameService()
Is the node acting as a preferred cluster naming service. |
private void |
postInitialize()
Force some cluster specific connection settings. |
void |
setDisconnectQos(DisconnectQos disconnectQos)
|
void |
setNameService(boolean nameService)
Tag this node as a cluster naming service. |
void |
setNodeId(NodeId nodeId)
TODO: !!!! is this needed? |
boolean |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String name,
java.lang.StringBuffer character,
org.xml.sax.Attributes attrs)
Called for SAX master start tag |
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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final java.lang.String ME
private final Global remoteGlob
private static java.util.logging.Logger log
private NodeId nodeId
private long counter
private ConnectQosSaxFactory connectQosSaxFactory
private ConnectQosData connectQosData
private DisconnectQos disconnectQos
private boolean nameService
private boolean inConnectQos
private java.lang.String cbSessionId
Constructor Detail |
---|
public NodeConnectQos(Global remoteGlob, NodeId nodeId) throws XmlBlasterException
remoteGlob
- The global specific to this node instance.
XmlBlasterException
Method Detail |
---|
public java.lang.String getId()
public NodeId getNodeId()
public ConnectQosData getConnectQosData()
public void setNodeId(NodeId nodeId)
The
- unique name of the managed xmlBlaster instancejava.lang.String getCbSessionId()
private Address getAddress()
public void addAddress(Address address)
public boolean contains(Address other)
public void addCbAddress(CallbackAddress cbAddress)
public boolean isNameService()
public void setNameService(boolean nameService)
private void postInitialize() throws XmlBlasterException
XmlBlasterException
public void characters(char[] ch, int start, int length, java.lang.StringBuffer delegateCharacters)
public final boolean startElement(java.lang.String uri, java.lang.String localName, java.lang.String name, java.lang.StringBuffer character, org.xml.sax.Attributes attrs)
public final void endElement(java.lang.String uri, java.lang.String localName, java.lang.String name, java.lang.StringBuffer character) throws org.xml.sax.SAXException
org.xml.sax.SAXException
private java.lang.String createCbSessionId() throws XmlBlasterException
XmlBlasterException
public final java.lang.String toXml()
public final java.lang.String toXml(java.lang.String extraOffset, java.util.Properties props)
extraOffset
- indenting of tags for nice outputpublic DisconnectQos getDisconnectQos()
public void setDisconnectQos(DisconnectQos disconnectQos)
disconnectQos
- The disconnectQos to set.public Global getRemoteGlob()
|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |