org.almendra.janet.cas.node
Class ApplicationRegistry

java.lang.Object
  extended by org.almendra.janet.cas.node.ApplicationRegistry
All Implemented Interfaces:
ILoggable

public class ApplicationRegistry
extends java.lang.Object
implements ILoggable

Author:
Oliver Plohmann

Field Summary
protected  java.util.Map applicationRegistry
           
static java.lang.String LOG_EVENT_DEREGISTERED_APPLICATION
           
static java.lang.String LOG_EVENT_REGISTERED_APPLICATION
           
protected  Logger logger
           
protected  Node node
           
protected  SystemApplication systemApplication
           
 
Constructor Summary
protected ApplicationRegistry()
           
  ApplicationRegistry(Node node, Logger logger)
           
 
Method Summary
 void deregisterApplication(java.lang.String name)
           
 java.util.List getAllAgentPaths()
           
 java.util.List getAllApplications()
           
 AbstractApplication getApplication(java.lang.String applicationName)
           
 SystemApplication getSystemApplication()
           
 java.util.List getTreeDescriptors()
           
protected  void init()
           
 boolean isRegistered(java.lang.String applicationName)
           
protected  void log(java.lang.String eventName, java.lang.String appName)
           
 Application registerApplication(Application app)
           
 java.util.List registeredLogEvents()
          Return list of events that may occur for an object.
 AbstractApplication registerSystemApplication(SystemApplication sysApp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

ApplicationRegistry

protected ApplicationRegistry()

ApplicationRegistry

public ApplicationRegistry(Node node,
                           Logger logger)
Method Detail

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()