org.almendra.janet.ade.executor
Class AbstractAnchor

java.lang.Object
  extended by org.almendra.janet.ade.executor.AbstractAnchor
Direct Known Subclasses:
DistributorAnchor, ExecutorAnchor, ObserverAnchor

public abstract class AbstractAnchor
extends java.lang.Object


Field Summary
protected  java.util.Map agents
           
protected  EDU.oswego.cs.dl.util.concurrent.ReentrantLock agentsLock
           
protected  java.util.List handlers
           
static java.lang.String LOG_EVENT_NO_DISTRIBUTOR_AGENT_FOUND
           
protected  Logger logger
           
protected  SystemApplication systemApplication
           
 
Constructor Summary
AbstractAnchor()
          Creates a new AbstractAnchor object.
AbstractAnchor(SystemApplication systemApplication)
          Creates a new AbstractAnchor object.
 
Method Summary
 void clearAgentsCache()
           
protected  IAgentProxy getAgents(java.lang.String keyName, java.util.List agentPaths)
           
protected  java.util.List getAgentsList(java.util.List agentPaths)
           
protected  java.util.Map getAgentsMap(java.util.List agentPaths)
           
protected  IAgentProxy getCrossAgent(AgentPath agentPath, AbstractApplication app)
           
 IAgentProxy getDistributorAgent()
           
protected  IAgentProxy getDistributorAgent(java.util.List agentPaths)
           
protected  IAgentProxy getDistributorAgentUnprotected()
           
 java.util.List getHandlers()
           
 IAgentProxy getLoadAdministratorAgents()
           
 Logger getLogger()
           
 SystemApplication getSystemApplication()
           
protected  void logNoDistributorAgentFound()
           
 java.util.List registeredLogEvents()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG_EVENT_NO_DISTRIBUTOR_AGENT_FOUND

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

handlers

protected java.util.List handlers

systemApplication

protected SystemApplication systemApplication

logger

protected Logger logger

agents

protected java.util.Map agents

agentsLock

protected EDU.oswego.cs.dl.util.concurrent.ReentrantLock agentsLock
Constructor Detail

AbstractAnchor

public AbstractAnchor()
Creates a new AbstractAnchor object.


AbstractAnchor

public AbstractAnchor(SystemApplication systemApplication)
Creates a new AbstractAnchor object.

Method Detail

clearAgentsCache

public void clearAgentsCache()

getHandlers

public java.util.List getHandlers()
Returns:
Returns the handlers.

registeredLogEvents

public java.util.List registeredLogEvents()

getDistributorAgent

public IAgentProxy getDistributorAgent()
Returns:

getDistributorAgentUnprotected

protected IAgentProxy getDistributorAgentUnprotected()

getDistributorAgent

protected IAgentProxy getDistributorAgent(java.util.List agentPaths)
Parameters:
agentPaths -
Returns:

logNoDistributorAgentFound

protected void logNoDistributorAgentFound()

getSystemApplication

public SystemApplication getSystemApplication()
Returns:
Returns the systemApplication.

getLogger

public Logger getLogger()
Returns:
Returns the logger.

getCrossAgent

protected IAgentProxy getCrossAgent(AgentPath agentPath,
                                    AbstractApplication app)
Parameters:
agentPath -
app -
Returns:

getAgentsList

protected java.util.List getAgentsList(java.util.List agentPaths)

getAgentsMap

protected java.util.Map getAgentsMap(java.util.List agentPaths)

getAgents

protected IAgentProxy getAgents(java.lang.String keyName,
                                java.util.List agentPaths)

getLoadAdministratorAgents

public IAgentProxy getLoadAdministratorAgents()