org.almendra.janet.cas.node
Class ApplicationRegistry
java.lang.Object
org.almendra.janet.cas.node.ApplicationRegistry
- All Implemented Interfaces:
- ILoggable
public class ApplicationRegistry
- extends java.lang.Object
- implements ILoggable
- Author:
- Oliver Plohmann
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG_EVENT_REGISTERED_APPLICATION
public static final java.lang.String LOG_EVENT_REGISTERED_APPLICATION
- See Also:
- Constant Field Values
LOG_EVENT_DEREGISTERED_APPLICATION
public static final java.lang.String LOG_EVENT_DEREGISTERED_APPLICATION
- See Also:
- Constant Field Values
applicationRegistry
protected java.util.Map applicationRegistry
systemApplication
protected SystemApplication systemApplication
node
protected Node node
logger
protected Logger logger
ApplicationRegistry
protected ApplicationRegistry()
ApplicationRegistry
public ApplicationRegistry(Node node,
Logger logger)
init
protected void init()
log
protected void log(java.lang.String eventName,
java.lang.String appName)
getSystemApplication
public SystemApplication getSystemApplication()
registerSystemApplication
public AbstractApplication registerSystemApplication(SystemApplication sysApp)
registerApplication
public Application registerApplication(Application app)
throws AlreadyRegisteredException,
java.lang.IllegalArgumentException
- Throws:
AlreadyRegisteredException
java.lang.IllegalArgumentException
deregisterApplication
public void deregisterApplication(java.lang.String name)
throws java.util.NoSuchElementException
- Throws:
java.util.NoSuchElementException
getApplication
public AbstractApplication getApplication(java.lang.String applicationName)
throws java.util.NoSuchElementException
- Throws:
java.util.NoSuchElementException
getAllApplications
public java.util.List getAllApplications()
isRegistered
public boolean isRegistered(java.lang.String applicationName)
registeredLogEvents
public java.util.List registeredLogEvents()
- Description copied from interface:
ILoggable
- Return list of events that may occur for an object.
- Specified by:
registeredLogEvents
in interface ILoggable
- Returns:
getAllAgentPaths
public java.util.List getAllAgentPaths()
getTreeDescriptors
public java.util.List getTreeDescriptors()