|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--disciplex.dni.DNIAdapter
Copyright (c) 2003 Rutgers, The State University of New Jersey
| Constructor Summary | |
DNIAdapter()
Creates an instance of the DISCIPLE middleware endpoint, and initializes the repository, data distributor and set up event listeners. |
|
| Method Summary | |
void |
attributeRemoved(org.w3c.dom.Node node,
java.lang.String attribute)
Implementation of the AttributeListener interface. |
void |
attributeSet(org.w3c.dom.Node node,
java.lang.String attribute,
java.lang.String value,
java.lang.String oldValue)
Implementation of the AttributeListener interface. |
Connection |
createConnection(java.lang.String host,
java.lang.String port)
Creates conection to the host specified in the parameters and if successful, adds the connection to the Controller. |
org.w3c.dom.Document |
createDocument()
Convenience method to create XML DOM documents. |
void |
documentAdded(java.lang.String name,
org.w3c.dom.Document document)
Implementation of the DocumentListener interface. |
void |
documentRemoved(java.lang.String name,
org.w3c.dom.Document document)
Implementation of the DocumentListener interface. |
DNIEvent |
eventCallback()
Event callback method. |
Controller |
getController()
|
void |
nodeAdded(org.w3c.dom.Node node)
Implementation of the ElementListener interface. |
void |
nodeRemoved(org.w3c.dom.Node node)
Implementation of the ElementListener interface. |
void |
nodeValueSet(org.w3c.dom.Node node,
java.lang.String value,
java.lang.String oldValue)
Implementation of the ElementListener interface. |
void |
sendAddSubtreeCommand(java.lang.String docName,
java.lang.String path,
org.w3c.dom.Node node)
Creates an AddSubtreeCommand and sends it to the peer DISCIPLE endpoints. |
void |
sendSetAttributeCommand(java.lang.String docName,
java.lang.String path,
java.lang.String name,
java.lang.String value)
Creates an SetAttributeCommand and sends it to the peer DISCIPLE endpoints. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DNIAdapter()
| Method Detail |
public Controller getController()
public Connection createConnection(java.lang.String host,
java.lang.String port)
host - the host nameport - the port numberpublic org.w3c.dom.Document createDocument()
public void sendAddSubtreeCommand(java.lang.String docName,
java.lang.String path,
org.w3c.dom.Node node)
docName - the name of the XML DOM documentpath - the path within the document to the target nodenode - the subtree root node to be added
public void sendSetAttributeCommand(java.lang.String docName,
java.lang.String path,
java.lang.String name,
java.lang.String value)
docName - the name of the XML DOM documentpath - the path within the document to the target nodename - the attribute namevalue - the new attribute valuepublic DNIEvent eventCallback()
The method implements a blocking wait and will only return when an event is available or it is interrupted.
public void attributeSet(org.w3c.dom.Node node,
java.lang.String attribute,
java.lang.String value,
java.lang.String oldValue)
AttributeListener interface.
attributeSet in interface AttributeListener
public void attributeRemoved(org.w3c.dom.Node node,
java.lang.String attribute)
AttributeListener interface.
attributeRemoved in interface AttributeListener
public void documentAdded(java.lang.String name,
org.w3c.dom.Document document)
DocumentListener interface.
documentAdded in interface DocumentListener
public void documentRemoved(java.lang.String name,
org.w3c.dom.Document document)
DocumentListener interface.
documentRemoved in interface DocumentListenerpublic void nodeAdded(org.w3c.dom.Node node)
ElementListener interface.
nodeAdded in interface ElementListenernode - public void nodeRemoved(org.w3c.dom.Node node)
ElementListener interface.
nodeRemoved in interface ElementListener
public void nodeValueSet(org.w3c.dom.Node node,
java.lang.String value,
java.lang.String oldValue)
ElementListener interface.
nodeValueSet in interface ElementListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||