org.almendra.janet.cas.node.interpreters
Class RegisteredNodeInterpreter
java.lang.Object
org.almendra.janet.cas.node.interpreters.NodeInterpreter
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
registerNodeTrait
protected AbstractRegisterNodeTrait registerNodeTrait
registerApplicationTrait
protected RegisterApplicationTrait registerApplicationTrait
RegisteredNodeInterpreter
public RegisteredNodeInterpreter()
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