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
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 |
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
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