org.almendra.janet.cas.scheduling
Class CommandAccessor

java.lang.Object
  extended by org.almendra.janet.cas.scheduling.CommandAccessor

public class CommandAccessor
extends java.lang.Object


Field Summary
protected  CommandEnvelope commandEnvelope
           
static java.lang.String LABEL
           
 
Constructor Summary
protected CommandAccessor()
          Creates a new CommandAccessor object.
  CommandAccessor(CommandAccessor cmdAccessor)
          Creates a new CommandAccessor object.
  CommandAccessor(CommandAccessor cmdAccessor, ICommand command)
          Creates a new CommandAccessor object.
  CommandAccessor(CommandEnvelope commandEnvelope)
          Creates a new CommandAccessor object.
 
Method Summary
 AbstractNodeAnchor getAbstractNodeAnchorIfPrivilege()
           
 IAgentProxy getAgent(AgentPath agentPath)
           
 AgentPath getAgentPath()
           
 IAgentProxy getAgentProxy()
           
 IAgentProxy getAllForeignAgents(java.lang.String capabilityName)
           
 ApplicationAccessor getApplication()
           
 ILocalEventRegistry getApplicationEventRegistry()
           
 java.lang.String getApplicationName()
           
 IObjectSpace getApplicationObjectSpace()
           
 Capability getCapability()
           
 java.lang.String getCapabilityName()
           
 ILocalClusterEventRegistry getClusterEventRegistry(java.lang.String name)
           
 ICommand getCommand()
           
 CommandEnvelope getCommandEnvelope()
           
 CommandEnvelope getCommandEnvelopeIfPrivilege()
           
 CommandHistory getCommandHistory()
           
 java.lang.String getCommandId()
           
 IAgentProxy getCrossAgent(AgentPath agentPath)
           
 IAgent getCurrentAgent()
           
 IAgentProxy getCurrentAgentProxy()
           
 IAgentProxy getForeignAgent(java.lang.String nodeName, java.lang.String capabilityName)
           
 LocalAgentPath getLocalAgentPath()
           
 java.lang.String getLocalizedDestinationAgentName()
           
 Logger getLogger()
           
 Node getNode()
           
 NodeAccessor getNodeAccessor()
           
 AbstractNodeAnchor getNodeAnchor()
           
 NodeAnchor getNodeAnchorIfPrivilege()
           
 ILocalEventRegistry getNodeEventRegistry()
           
 Node getNodeIfPrivilege()
           
 java.lang.String getNodeName()
           
 NodeName getNodeNameObject()
           
 IObjectSpace getNodeObjectSpace()
           
 IObjectSpace getObjectSpace()
           
 java.lang.Object getOriginNodeName()
           
 java.lang.String getQualifiedCapacityName()
           
 java.lang.String getQualifiedDestinationAgentName()
           
 IAgentProxy getSystemAgent()
           
 IAgentProxy getSystemAgent(java.lang.String nodeName)
           
 SystemApplication getSystemApplication()
           
 SystemApplication getSystemApplicationIfPrivilege()
           
 boolean isSuspended()
           
 void log(java.lang.Exception ex)
           
 NodeViewTitleAccessor nodeViewTitleAccessorIfPrivilege()
           
 void setNodeLabel(java.lang.String label)
           
 void setReply(java.io.Serializable replyObject)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LABEL

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

commandEnvelope

protected CommandEnvelope commandEnvelope
Constructor Detail

CommandAccessor

protected CommandAccessor()
Creates a new CommandAccessor object.


CommandAccessor

public CommandAccessor(CommandAccessor cmdAccessor)
Creates a new CommandAccessor object.

Parameters:
commandEnvelope -

CommandAccessor

public CommandAccessor(CommandEnvelope commandEnvelope)
Creates a new CommandAccessor object.

Parameters:
commandEnvelope -

CommandAccessor

public CommandAccessor(CommandAccessor cmdAccessor,
                       ICommand command)
Creates a new CommandAccessor object.

Method Detail

getCommand

public ICommand getCommand()
Returns:

getNodeAnchor

public AbstractNodeAnchor getNodeAnchor()
                                 throws InsufficientPrivilegeException
Returns:
Throws:
InsufficientPrivilegeException

getObjectSpace

public IObjectSpace getObjectSpace()
Returns:

setReply

public void setReply(java.io.Serializable replyObject)
              throws InvalidMessageException
Parameters:
replyObject -
Throws:
InvalidMessageException

getApplicationName

public java.lang.String getApplicationName()
Returns:

getApplication

public ApplicationAccessor getApplication()
Returns:

getCapability

public Capability getCapability()

getCapabilityName

public java.lang.String getCapabilityName()
Returns:

getCommandHistory

public CommandHistory getCommandHistory()
Returns:

getLocalizedDestinationAgentName

public java.lang.String getLocalizedDestinationAgentName()
Returns:

getQualifiedDestinationAgentName

public java.lang.String getQualifiedDestinationAgentName()
Returns:

getNode

public Node getNode()
             throws InsufficientPrivilegeException
Returns:
@throws InsufficientPrivilegeException
Throws:
InsufficientPrivilegeException

getNodeName

public java.lang.String getNodeName()
Returns:
@throws InsufficientPrivilegeException

getNodeNameObject

public NodeName getNodeNameObject()
Returns:
@throws InsufficientPrivilegeException

getCommandId

public java.lang.String getCommandId()

getCommandEnvelope

public CommandEnvelope getCommandEnvelope()
                                   throws InsufficientPrivilegeException
Returns:
@throws InsufficientPrivilegeException
Throws:
InsufficientPrivilegeException

getNodeAccessor

public NodeAccessor getNodeAccessor()
Returns:
@throws InsufficientPrivilegeException

getSystemApplication

public SystemApplication getSystemApplication()
                                       throws InsufficientPrivilegeException
Throws:
InsufficientPrivilegeException

getSystemApplicationIfPrivilege

public SystemApplication getSystemApplicationIfPrivilege()

getSystemAgent

public IAgentProxy getSystemAgent(java.lang.String nodeName)
                           throws NoSuchAgentException,
                                  IllegalAgentAccessException,
                                  InsufficientPrivilegeException
Parameters:
nodeName -
Returns:
Throws:
NoSuchAgentException
IllegalAgentAccessException
InsufficientPrivilegeException

getSystemAgent

public IAgentProxy getSystemAgent()
                           throws NoSuchAgentException,
                                  IllegalAgentAccessException,
                                  InsufficientPrivilegeException
Parameters:
nodeName -
Returns:
Throws:
NoSuchAgentException
IllegalAgentAccessException
InsufficientPrivilegeException

getAgent

public IAgentProxy getAgent(AgentPath agentPath)
                     throws NoSuchAgentException,
                            IllegalAgentAccessException
Parameters:
nodeName -
Returns:
Throws:
NoSuchAgentException
IllegalAgentAccessException

getCrossAgent

public IAgentProxy getCrossAgent(AgentPath agentPath)
                          throws NoSuchAgentException,
                                 IllegalAgentAccessException,
                                 InsufficientPrivilegeException
Parameters:
nodeName -
Returns:
Throws:
NoSuchAgentException
IllegalAgentAccessException
InsufficientPrivilegeException

log

public void log(java.lang.Exception ex)
Parameters:
ex -

getLogger

public Logger getLogger()
Returns:

getCurrentAgent

public IAgent getCurrentAgent()
Returns:

getCurrentAgentProxy

public IAgentProxy getCurrentAgentProxy()
Returns:
@throws NoSuchAgentException
Throws:
IllegalAgentAccessException

getNodeEventRegistry

public ILocalEventRegistry getNodeEventRegistry()
Returns:

getNodeObjectSpace

public IObjectSpace getNodeObjectSpace()
Returns:

getApplicationObjectSpace

public IObjectSpace getApplicationObjectSpace()
Returns:

getNodeAnchorIfPrivilege

public NodeAnchor getNodeAnchorIfPrivilege()

getAbstractNodeAnchorIfPrivilege

public AbstractNodeAnchor getAbstractNodeAnchorIfPrivilege()

getNodeIfPrivilege

public Node getNodeIfPrivilege()

getCommandEnvelopeIfPrivilege

public CommandEnvelope getCommandEnvelopeIfPrivilege()

getAgentPath

public AgentPath getAgentPath()
Returns:

getLocalAgentPath

public LocalAgentPath getLocalAgentPath()

getAgentProxy

public IAgentProxy getAgentProxy()
Returns:

getAllForeignAgents

public IAgentProxy getAllForeignAgents(java.lang.String capabilityName)
                                throws java.lang.IllegalArgumentException,
                                       NoSuchAgentException,
                                       IllegalAgentAccessException
Parameters:
capabilityName -
Returns:
Throws:
java.lang.IllegalArgumentException
NoSuchAgentException
IllegalAgentAccessException

getForeignAgent

public IAgentProxy getForeignAgent(java.lang.String nodeName,
                                   java.lang.String capabilityName)
                            throws java.lang.IllegalArgumentException,
                                   NoSuchAgentException,
                                   IllegalAgentAccessException
Parameters:
nodeName -
capabilityName -
Returns:
Throws:
java.lang.IllegalArgumentException
NoSuchAgentException
IllegalAgentAccessException

getOriginNodeName

public java.lang.Object getOriginNodeName()
Returns:

getClusterEventRegistry

public ILocalClusterEventRegistry getClusterEventRegistry(java.lang.String name)
                                                   throws java.util.NoSuchElementException,
                                                          java.rmi.RemoteException
Parameters:
name -
Returns:
Throws:
java.util.NoSuchElementException
java.rmi.RemoteException

getApplicationEventRegistry

public ILocalEventRegistry getApplicationEventRegistry()
Returns:

getQualifiedCapacityName

public java.lang.String getQualifiedCapacityName()
Returns:

setNodeLabel

public void setNodeLabel(java.lang.String label)
Parameters:
string -

nodeViewTitleAccessorIfPrivilege

public NodeViewTitleAccessor nodeViewTitleAccessorIfPrivilege()

isSuspended

public boolean isSuspended()
Returns: