org.almendra.janet.ade.executor
Class AbstractAnchor
java.lang.Object
org.almendra.janet.ade.executor.AbstractAnchor
- Direct Known Subclasses:
- DistributorAnchor, ExecutorAnchor, ObserverAnchor
public abstract class AbstractAnchor
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
AbstractAnchor
public AbstractAnchor()
- Creates a new
AbstractAnchor
object.
AbstractAnchor
public AbstractAnchor(SystemApplication systemApplication)
- Creates a new
AbstractAnchor
object.
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()