org.mmbase.remote
Class MMRemoteMultiCast

java.lang.Object
  |
  +--org.mmbase.remote.MMRemoteMultiCast
All Implemented Interfaces:
MMProtocolDriver, java.lang.Runnable

public class MMRemoteMultiCast
extends java.lang.Object
implements java.lang.Runnable, MMProtocolDriver

Builds a MultiCast Thread to receive and send changes from other MMBase Servers.

Version:
12 May 1999
Author:
Daniel Ockeloen, Rico Jansen

Field Summary
static int dpsize
           
 int incount
           
static int mport
           
static java.lang.String multicastaddress
           
 int outcount
           
 int spawncount
           
 
Constructor Summary
MMRemoteMultiCast(java.lang.String machineName, java.lang.String host, int port)
           
 
Method Summary
 boolean addListener(java.lang.String buildername, java.lang.String nodenr, RemoteBuilder serv)
           
 boolean changedNode(int nodenr, java.lang.String tableName, java.lang.String type)
           
 boolean commitNode(java.lang.String nodenr, java.lang.String tableName, java.lang.String xml)
           
 void doWork()
          admin probe, try's to make a call to all the maintainance calls.
 java.lang.String getLocalHost()
           
 int getLocalPort()
           
 boolean getNode(java.lang.String nodenr, java.lang.String tableName)
           
 java.lang.String getProtocol()
           
 boolean handleMsg(java.lang.String machine, java.lang.String vnr, java.lang.String id, java.lang.String tb, java.lang.String ctype)
           
 boolean handleXML(java.lang.String machine, java.lang.String vnr, java.lang.String id, java.lang.String tb, java.lang.String ctype, java.lang.String xml)
           
 void init()
           
 void run()
          admin probe, try's to make a call to all the maintainance calls.
 void start()
          Starts the admin Thread.
 void stop()
          Stops the admin Thread.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

incount

public int incount

outcount

public int outcount

spawncount

public int spawncount

multicastaddress

public static java.lang.String multicastaddress

dpsize

public static int dpsize

mport

public static int mport
Constructor Detail

MMRemoteMultiCast

public MMRemoteMultiCast(java.lang.String machineName,
                         java.lang.String host,
                         int port)
Method Detail

init

public void init()

start

public void start()
Starts the admin Thread.

stop

public void stop()
Stops the admin Thread.

run

public void run()
admin probe, try's to make a call to all the maintainance calls.
Specified by:
run in interface java.lang.Runnable

doWork

public void doWork()
admin probe, try's to make a call to all the maintainance calls.

handleMsg

public boolean handleMsg(java.lang.String machine,
                         java.lang.String vnr,
                         java.lang.String id,
                         java.lang.String tb,
                         java.lang.String ctype)

handleXML

public boolean handleXML(java.lang.String machine,
                         java.lang.String vnr,
                         java.lang.String id,
                         java.lang.String tb,
                         java.lang.String ctype,
                         java.lang.String xml)

changedNode

public boolean changedNode(int nodenr,
                           java.lang.String tableName,
                           java.lang.String type)

commitNode

public boolean commitNode(java.lang.String nodenr,
                          java.lang.String tableName,
                          java.lang.String xml)
Specified by:
commitNode in interface MMProtocolDriver

getNode

public boolean getNode(java.lang.String nodenr,
                       java.lang.String tableName)
Specified by:
getNode in interface MMProtocolDriver

addListener

public boolean addListener(java.lang.String buildername,
                           java.lang.String nodenr,
                           RemoteBuilder serv)
Specified by:
addListener in interface MMProtocolDriver

getLocalPort

public int getLocalPort()
Specified by:
getLocalPort in interface MMProtocolDriver

getLocalHost

public java.lang.String getLocalHost()
Specified by:
getLocalHost in interface MMProtocolDriver

getProtocol

public java.lang.String getProtocol()
Specified by:
getProtocol in interface MMProtocolDriver

toString

public java.lang.String toString()
Specified by:
toString in interface MMProtocolDriver
Overrides:
toString in class java.lang.Object


MMBase 2002