|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ikasan.framework.monitor.AbstractMonitorListener
org.ikasan.framework.monitor.MonitorJNDINotifier
public class MonitorJNDINotifier
Monitor listener implementation which notifies the JNDI of state changes.
| Field Summary | |
|---|---|
protected Context |
context
JNDI context |
protected Status |
status
keep a reference to the previous state so we only report changes |
protected String |
url
JNDI URL for state object |
| Constructor Summary | |
|---|---|
MonitorJNDINotifier(String name,
Context context,
String url)
Constructor for monitor |
|
| Method Summary | |
|---|---|
protected void |
bindStatus(Status statusToBind)
Bind the status object to the JNDI. |
protected static ComponentState |
getComponentState(String state)
Translate the initiator state on to that required for reporting through the JNDI. |
void |
notify(String text)
Notification of a change |
| Methods inherited from class org.ikasan.framework.monitor.AbstractMonitorListener |
|---|
getName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Context context
protected String url
protected Status status
| Constructor Detail |
|---|
public MonitorJNDINotifier(String name,
Context context,
String url)
name - The name of the Monitorcontext - The context for the JNDI monitorurl - The URI to store the status| Method Detail |
|---|
public void notify(String text)
MonitorListener
notify in interface MonitorListenernotify in class AbstractMonitorListenertext - The changeprotected static ComponentState getComponentState(String state)
state - The state to lookup with
protected void bindStatus(Status statusToBind)
throws NamingException
statusToBind - The status to bind to JNDI
NamingException - Exception if we cannot bind that status
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||