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

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

public class NodeStartedInterpreter
extends NodeInterpreter
implements IInterpreter

Author:
Oliver

Field Summary
protected  NodeStartedTrait nodeStartedTrait
           
static java.lang.String ViewTitlePrefix
           
 
Constructor Summary
NodeStartedInterpreter()
           
 
Method Summary
protected  void bind(NodeStartedCommand command, IObjectSpace os)
           
protected  boolean checkCentralExists(RegistryLocation registryLocation)
           
 StringVector commandNames()
           
 void execute(CommandAccessor cmdAccessor)
           
protected  IAgentDispatcher getCentralDispatcher(RegistryLocation registryLocation)
           
protected  java.lang.String getNewNodeName(RegistryLocation location)
           
protected  java.rmi.registry.Registry getRegistry(RegistryLocation registryLocation)
           
protected  NodeAnchor installNodeAnchor(IObjectSpace os, NodeStartedCommand command)
           
protected  boolean primBind(java.lang.String nodeName, NodeStartedCommand command)
           
protected  void registerWithCentral(CommandAccessor cmdAccessor)
           
protected  java.lang.String[] registryList(RegistryLocation registryLocation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ViewTitlePrefix

public static final java.lang.String ViewTitlePrefix
See Also:
Constant Field Values

nodeStartedTrait

protected NodeStartedTrait nodeStartedTrait
Constructor Detail

NodeStartedInterpreter

public NodeStartedInterpreter()
Method Detail

execute

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

getNewNodeName

protected java.lang.String getNewNodeName(RegistryLocation location)
                                   throws java.rmi.AccessException,
                                          java.rmi.RemoteException
Throws:
java.rmi.AccessException
java.rmi.RemoteException

registryList

protected java.lang.String[] registryList(RegistryLocation registryLocation)
                                   throws java.rmi.AccessException,
                                          java.rmi.RemoteException
Throws:
java.rmi.AccessException
java.rmi.RemoteException

checkCentralExists

protected boolean checkCentralExists(RegistryLocation registryLocation)
                              throws java.rmi.AccessException,
                                     java.rmi.RemoteException
Throws:
java.rmi.AccessException
java.rmi.RemoteException

registerWithCentral

protected void registerWithCentral(CommandAccessor cmdAccessor)
                            throws java.rmi.NotBoundException,
                                   java.rmi.RemoteException,
                                   InvalidCommandException
Parameters:
objectSpace -
Throws:
java.rmi.NotBoundException
java.rmi.RemoteException
InvalidCommandException

installNodeAnchor

protected NodeAnchor installNodeAnchor(IObjectSpace os,
                                       NodeStartedCommand command)
Parameters:
objectSpace -

bind

protected void bind(NodeStartedCommand command,
                    IObjectSpace os)
             throws java.rmi.RemoteException
Parameters:
command -
Throws:
java.rmi.RemoteException

primBind

protected boolean primBind(java.lang.String nodeName,
                           NodeStartedCommand command)
                    throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

getCentralDispatcher

protected IAgentDispatcher getCentralDispatcher(RegistryLocation registryLocation)
                                         throws java.rmi.AccessException,
                                                java.rmi.RemoteException,
                                                java.rmi.NotBoundException
Throws:
java.rmi.AccessException
java.rmi.RemoteException
java.rmi.NotBoundException

getRegistry

protected java.rmi.registry.Registry getRegistry(RegistryLocation registryLocation)
                                          throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

commandNames

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