org.mmbase.remote
Class RemoteBuilder

java.lang.Object
  |
  +--org.mmbase.remote.RemoteBuilder
Direct Known Subclasses:
cdplayers, dropboxes, g2encoders, MMCounter

public class RemoteBuilder
extends java.lang.Object

Version:
$Revision: 1.13 $ $Date: 2001/04/20 14:15:49 $
Author:
Daniel Ockeloen

Field Summary
 java.lang.String classname
           
 boolean debug
           
 java.util.Hashtable props
           
 
Constructor Summary
RemoteBuilder()
           
 
Method Summary
 void commit()
          Gets the node in XML value Calls con.commitNode with it.
 void debug(java.lang.String msg)
           
 int getIntValue(java.lang.String key)
           
 void getNode()
          Calls con.getNode with nodename and buildername, and waits 8 seconds
 java.lang.String getStringValue(java.lang.String key)
           
 void gotXMLValues(java.lang.String body)
          XML Parses the body parameter and saving the xml info as a hashtable as key = value.
 void init(MMProtocolDriver con, java.lang.String servicefile)
           
 boolean maintainance()
           
 void nodeLocalChanged(java.lang.String nodename, java.lang.String buildername, java.lang.String ctype)
           
 void nodeRemoteChanged(java.lang.String nodename, java.lang.String buildername, java.lang.String ctype)
          Called when a remote node changes.
 void setClaimed()
           
 void setValue(java.lang.String key, int value)
           
 void setValue(java.lang.String key, java.lang.String value)
           
 java.lang.String toXML()
          Gets the node contents from hashtable and return it in XML format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debug

public boolean debug

classname

public java.lang.String classname

props

public java.util.Hashtable props
Constructor Detail

RemoteBuilder

public RemoteBuilder()
Method Detail

debug

public void debug(java.lang.String msg)

init

public void init(MMProtocolDriver con,
                 java.lang.String servicefile)

getNode

public void getNode()
Calls con.getNode with nodename and buildername, and waits 8 seconds

nodeRemoteChanged

public void nodeRemoteChanged(java.lang.String nodename,
                              java.lang.String buildername,
                              java.lang.String ctype)
Called when a remote node changes. The following notify node changed types are are possible: d: node deleted c: node changed n: new node f: node field changed r: node relation changed x: some xml notify?
Parameters:
nodename -  
buildername -  

nodeLocalChanged

public void nodeLocalChanged(java.lang.String nodename,
                             java.lang.String buildername,
                             java.lang.String ctype)

gotXMLValues

public void gotXMLValues(java.lang.String body)
XML Parses the body parameter and saving the xml info as a hashtable as key = value.
Parameters:
body - a String with information in xml format.

getStringValue

public java.lang.String getStringValue(java.lang.String key)

getIntValue

public int getIntValue(java.lang.String key)

setValue

public void setValue(java.lang.String key,
                     java.lang.String value)

setValue

public void setValue(java.lang.String key,
                     int value)

commit

public void commit()
Gets the node in XML value Calls con.commitNode with it.

toXML

public java.lang.String toXML()
Gets the node contents from hashtable and return it in XML format.
Returns:
a String with XML contents.

maintainance

public boolean maintainance()

setClaimed

public void setClaimed()


MMBase 2002