org.mmbase.remote.builders
Class g2encoders

java.lang.Object
  |
  +--org.mmbase.remote.RemoteBuilder
        |
        +--org.mmbase.remote.builders.g2encoders

public class g2encoders
extends RemoteBuilder

Version:
$Revision: 1.16 $ $Date: 2001/04/19 14:06:33 $
Author:
Daniel Ockeloen

Field Summary
static java.lang.String DST_PATH
           
 
Fields inherited from class org.mmbase.remote.RemoteBuilder
classname, debug, props
 
Constructor Summary
g2encoders()
           
 
Method Summary
 void init(MMProtocolDriver con, java.lang.String servicefile)
          Initializes itself, then gets the g2encoder config and resets its' when it isn't 'waiting'.
 void nodeChanged(java.lang.String serviceRef, java.lang.String buildername, java.lang.String ctype)
          Gets node from mmbase and checks the node state reacts to state value.
 void nodeLocalChanged(java.lang.String serviceRef, java.lang.String buildername, java.lang.String ctype)
          Called when node was changed on the local side, in turn this routine calls nodeChanged to check out and react to the new state.
 void nodeRemoteChanged(java.lang.String serviceRef, java.lang.String buildername, java.lang.String ctype)
          Called when the service node state was changed on another server, in turn this method calls nodeChanged to check and react to the new state.
 
Methods inherited from class org.mmbase.remote.RemoteBuilder
commit, debug, getIntValue, getNode, getStringValue, gotXMLValues, maintainance, setClaimed, setValue, setValue, toXML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DST_PATH

public static final java.lang.String DST_PATH
Constructor Detail

g2encoders

public g2encoders()
Method Detail

init

public void init(MMProtocolDriver con,
                 java.lang.String servicefile)
Initializes itself, then gets the g2encoder config and resets its' when it isn't 'waiting'.
Overrides:
init in class RemoteBuilder
Parameters:
con - protocoldriver
servicefile - the servicefile that contains the config.

nodeRemoteChanged

public void nodeRemoteChanged(java.lang.String serviceRef,
                              java.lang.String buildername,
                              java.lang.String ctype)
Called when the service node state was changed on another server, in turn this method calls nodeChanged to check and react to the new state.
Overrides:
nodeRemoteChanged in class RemoteBuilder
Parameters:
serviceRef - a String with a reference to the service node who's state has been changed.
builderName - a String with the buildername of the node that was changed.
ctype - a String with the node change type.

nodeLocalChanged

public void nodeLocalChanged(java.lang.String serviceRef,
                             java.lang.String buildername,
                             java.lang.String ctype)
Called when node was changed on the local side, in turn this routine calls nodeChanged to check out and react to the new state.
Overrides:
nodeLocalChanged in class RemoteBuilder
Parameters:
serviceRef - a String with a reference to the service node who's state has been changed.
builderName - a String with the buildername of the node that was changed.
ctype - a String with the node change type.

nodeChanged

public void nodeChanged(java.lang.String serviceRef,
                        java.lang.String buildername,
                        java.lang.String ctype)
Gets node from mmbase and checks the node state reacts to state value. State value 'version' gets the version info, 'encode' starts encoding process.
Parameters:
serviceRef - a String with a reference to the service node who's state has been changed.
buildername - the name of the service
ctype - the node changetype.


MMBase 2001