org.almendra.janet.cas.node
Class ApplicationAccessor

java.lang.Object
  extended by org.almendra.janet.cas.node.ApplicationAccessor

public class ApplicationAccessor
extends java.lang.Object


Field Summary
protected  AbstractApplication application
           
 
Constructor Summary
protected ApplicationAccessor()
          Creates a new ApplicationAccessor object.
  ApplicationAccessor(AbstractApplication application)
          Creates a new ApplicationAccessor object.
 
Method Summary
 IAgentProxy getAgent(AgentPath path)
           
 java.util.List getAllAgentPaths(LocalAgentPath localPath)
           
 IAgentProxy getAllAgents(LocalAgentPath localPath)
           
 IAgentProxy getAllAgentsWithCapability(java.lang.String capabilityName, java.lang.String agentName)
           
 java.util.List getAllNodeNames()
           
 java.util.Set getCapabilities()
           
 Capability getCapability(java.lang.String capabilityName)
           
 AgentProxy getCrossAgent(AgentPath path)
           
 ILocalEventRegistry getEventRegistry()
           
 java.util.List getForeignNodeNames()
           
 AgentPath getLocalAgentPath(java.lang.String capName, java.lang.String agentName)
           
 Logger getLogger()
           
 java.util.List getMonitorMask()
           
 java.util.Map getMonitorMaskDefaultValues()
           
 java.lang.String getName()
           
 NodeAccessor getNodeAccessor()
           
 java.lang.String getNodeName()
           
 java.util.List getNodeNames()
          Return a list with all the nodes that have an application with the same name registered including the owner node of this application.
 IObjectSpace getObjectSpace()
           
 boolean hasCapabilities(java.util.Set capabilities)
           
 boolean isSystemApplication()
           
 java.util.List registeredLogEvents()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

application

protected AbstractApplication application
Constructor Detail

ApplicationAccessor

public ApplicationAccessor(AbstractApplication application)
Creates a new ApplicationAccessor object.


ApplicationAccessor

protected ApplicationAccessor()
Creates a new ApplicationAccessor object.

Method Detail

getAllAgents

public IAgentProxy getAllAgents(LocalAgentPath localPath)
Parameters:
localPath -
Returns:

getAllAgentsWithCapability

public IAgentProxy getAllAgentsWithCapability(java.lang.String capabilityName,
                                              java.lang.String agentName)
Parameters:
capabilityName -
agentName -
Returns:

getLogger

public Logger getLogger()
Returns:

getCapabilities

public java.util.Set getCapabilities()
Returns:

getCapability

public Capability getCapability(java.lang.String capabilityName)
Parameters:
capabilityName -
Returns:

getObjectSpace

public IObjectSpace getObjectSpace()
Returns:

getName

public java.lang.String getName()
Returns:

hasCapabilities

public boolean hasCapabilities(java.util.Set capabilities)
Parameters:
capabilities -
Returns:

registeredLogEvents

public java.util.List registeredLogEvents()
Returns:

getNodeName

public java.lang.String getNodeName()
Returns:

getAgent

public IAgentProxy getAgent(AgentPath path)
                     throws NoSuchAgentException,
                            IllegalAgentAccessException
Throws:
NoSuchAgentException
IllegalAgentAccessException

getForeignNodeNames

public java.util.List getForeignNodeNames()
Returns:

getNodeNames

public java.util.List getNodeNames()
Return a list with all the nodes that have an application with the same name registered including the owner node of this application.

Returns:

getNodeAccessor

public NodeAccessor getNodeAccessor()
Returns:

getLocalAgentPath

public AgentPath getLocalAgentPath(java.lang.String capName,
                                   java.lang.String agentName)
                            throws NoSuchAgentException
Parameters:
cap_name -
agent_name -
Returns:
Throws:
NoSuchAgentException

getAllNodeNames

public java.util.List getAllNodeNames()
Returns:

getEventRegistry

public ILocalEventRegistry getEventRegistry()
Returns:

isSystemApplication

public boolean isSystemApplication()
Returns:

getCrossAgent

public AgentProxy getCrossAgent(AgentPath path)
                         throws NoSuchAgentException,
                                IllegalAgentAccessException,
                                InsufficientPrivilegeException
Parameters:
path -
Returns:
Throws:
NoSuchAgentException
IllegalAgentAccessException
InsufficientPrivilegeException

getMonitorMask

public java.util.List getMonitorMask()
Returns:

getMonitorMaskDefaultValues

public java.util.Map getMonitorMaskDefaultValues()
Returns:

getAllAgentPaths

public java.util.List getAllAgentPaths(LocalAgentPath localPath)
Parameters:
localPath -
Returns: