public class DefaultMonitorImpl<T> extends java.lang.Object implements Monitor<T>, ConfiguredResource<MonitorConfiguration>
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<Notifier> |
notifiers
list of notifiers to be informed
|
| Constructor and Description |
|---|
DefaultMonitorImpl(java.util.concurrent.ExecutorService executorService)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
MonitorConfiguration |
getConfiguration() |
java.lang.String |
getConfiguredResourceId() |
java.lang.String |
getEnvironment() |
java.lang.String |
getFlowName() |
java.lang.String |
getModuleName() |
java.util.List<Notifier> |
getNotifiers() |
protected boolean |
hasStateChanged(java.lang.String stateKey,
T status)
Has the reported state for this key changed since the last reported state
|
void |
invoke(T status) |
void |
setConfiguration(MonitorConfiguration configuration) |
void |
setConfiguredResourceId(java.lang.String configuredResourceId) |
void |
setEnvironment(java.lang.String environment) |
void |
setFlowName(java.lang.String flowName) |
void |
setModuleName(java.lang.String moduleName) |
void |
setNotifiers(java.util.List<Notifier> notifiers) |
protected java.util.List<Notifier> notifiers
public DefaultMonitorImpl(java.util.concurrent.ExecutorService executorService)
executorService - public java.lang.String getEnvironment()
getEnvironment in interface Monitor<T>public void setEnvironment(java.lang.String environment)
setEnvironment in interface Monitor<T>protected boolean hasStateChanged(java.lang.String stateKey,
T status)
stateKey - status - public void setNotifiers(java.util.List<Notifier> notifiers)
setNotifiers in interface Monitor<T>public java.util.List<Notifier> getNotifiers()
getNotifiers in interface Monitor<T>public MonitorConfiguration getConfiguration()
getConfiguration in interface Configured<MonitorConfiguration>public void setConfiguration(MonitorConfiguration configuration)
setConfiguration in interface Configured<MonitorConfiguration>public java.lang.String getConfiguredResourceId()
getConfiguredResourceId in interface ConfiguredResource<MonitorConfiguration>public void setConfiguredResourceId(java.lang.String configuredResourceId)
setConfiguredResourceId in interface ConfiguredResource<MonitorConfiguration>public java.lang.String getModuleName()
getModuleName in interface Monitor<T>public void setModuleName(java.lang.String moduleName)
setModuleName in interface Monitor<T>moduleName - the moduleName to setpublic java.lang.String getFlowName()
getFlowName in interface Monitor<T>public void setFlowName(java.lang.String flowName)
setFlowName in interface Monitor<T>flowName - the flowName to setCopyright © 2007-2017 Ikasan. All Rights Reserved.