org.almendra.janet.cas.scheduling
Class CommandAccessor
java.lang.Object
org.almendra.janet.cas.scheduling.CommandAccessor
public class CommandAccessor
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LABEL
public static final java.lang.String LABEL
- See Also:
- Constant Field Values
commandEnvelope
protected CommandEnvelope commandEnvelope
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.
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: