Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Class djm.dynamic.DynamicObjectGroup

java.lang.Object
  |
  +--java.rmi.server.RemoteObject
        |
        +--java.rmi.server.RemoteServer
              |
              +--java.rmi.server.UnicastRemoteObject
                    |
                    +--djm.dynamic.DynamicObjectGroup

public class DynamicObjectGroup
extends java.rmi.server.UnicastRemoteObject
implements djm.NodeAdditionListener, java.io.Serializable
An object group which can change size dynamically. Typically used as an instance variable in classes that extend MasterImpl.

See Also:
Serialized Form

Constructor Summary
DynamicObjectGroup(java.lang.String elementObjectName, Master master)
          Create a DynamicObjectGroup.
 
Method Summary
void nodeAdded(java.lang.String hostname)
          Called when a node is added to the group.
void nodeRemoved(java.lang.String hostname)
          Called when a node is remove from the group.
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait
 

Constructor Detail

DynamicObjectGroup

public DynamicObjectGroup(java.lang.String elementObjectName,
                          Master master)
                   throws java.rmi.RemoteException
Create a DynamicObjectGroup.
Parameters:
elementObjectName - name of the class to run
master - class which will serve as the master for this group
Method Detail

nodeAdded

public void nodeAdded(java.lang.String hostname)
Called when a node is added to the group. Classes which override this method MUST call this implementation or the group will not function.
Specified by:
nodeAdded(java.lang.String) in interface djm.NodeAdditionListener

nodeRemoved

public void nodeRemoved(java.lang.String hostname)
Called when a node is remove from the group. Classes which override this method MUST call this implementation or the group will not function.
Specified by:
nodeRemoved(java.lang.String) in interface djm.NodeAdditionListener

Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD