org.almendra.janet.cas.node.interpreters
Class RegisteredNodeInterpreter

java.lang.Object
  extended by org.almendra.janet.cas.node.interpreters.NodeInterpreter
      extended by org.almendra.janet.cas.node.interpreters.RegisteredNodeInterpreter
All Implemented Interfaces:
IInterpreter
Direct Known Subclasses:
RegisteredNodeInterpreter

public class RegisteredNodeInterpreter
extends NodeInterpreter
implements IInterpreter

After the node at startup has registered with the central it receives a list of nodes from the central the node needs to connect to. In general, the other nodes are all other nodes in the cluster.

Author:
Oliver

Field Summary
protected  RegisterApplicationTrait registerApplicationTrait
           
protected  AbstractRegisterNodeTrait registerNodeTrait
           
 
Constructor Summary
RegisteredNodeInterpreter()
           
 
Method Summary
 StringVector commandNames()
           
protected  AbstractRegisterNodeTrait createRegisterNodeTrait()
           
 void execute(CommandAccessor cmdAccessor)
           
protected  void foreignNodeRegisterMyApplications(java.lang.String foreignNodeName, CommandAccessor cmdAccessor)
           
protected  void foreignNodeRegisterMyself(java.lang.String foreignNodeName, CommandAccessor cmdAccessor)
           
protected  void registerForeignNode(NodeLocation nodeLocation, CommandAccessor cmdAccessor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

registerNodeTrait

protected AbstractRegisterNodeTrait registerNodeTrait

registerApplicationTrait

protected RegisterApplicationTrait registerApplicationTrait
Constructor Detail

RegisteredNodeInterpreter

public RegisteredNodeInterpreter()
Method Detail

createRegisterNodeTrait

protected AbstractRegisterNodeTrait createRegisterNodeTrait()

registerForeignNode

protected void registerForeignNode(NodeLocation nodeLocation,
                                   CommandAccessor cmdAccessor)

execute

public void execute(CommandAccessor cmdAccessor)
Specified by:
execute in interface IInterpreter

foreignNodeRegisterMyApplications

protected void foreignNodeRegisterMyApplications(java.lang.String foreignNodeName,
                                                 CommandAccessor cmdAccessor)
                                          throws java.rmi.RemoteException,
                                                 NoSuchAgentException,
                                                 IllegalAgentAccessException,
                                                 InsufficientPrivilegeException,
                                                 InvalidCommandException
Parameters:
string -
cmdAccessor -
Throws:
java.rmi.RemoteException
NoSuchAgentException
IllegalAgentAccessException
InsufficientPrivilegeException
InvalidCommandException

foreignNodeRegisterMyself

protected void foreignNodeRegisterMyself(java.lang.String foreignNodeName,
                                         CommandAccessor cmdAccessor)
                                  throws java.rmi.RemoteException,
                                         InvalidCommandException
Parameters:
string -
cmdAccessor -
Throws:
java.rmi.RemoteException
InvalidCommandException

commandNames

public StringVector commandNames()
Specified by:
commandNames in interface IInterpreter