Package org.ikasan.notification.monitor
Class AbstractMonitorBase<T>
- java.lang.Object
-
- org.ikasan.notification.monitor.AbstractMonitorBase<T>
-
- All Implemented Interfaces:
org.ikasan.spec.scheduled.notification.model.Monitor<T>
- Direct Known Subclasses:
JobRunningTimesMonitorImpl,OverdueFileMonitorImpl,StateChangeMonitorImpl
public abstract class AbstractMonitorBase<T> extends java.lang.Object implements org.ikasan.spec.scheduled.notification.model.Monitor<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.concurrent.ExecutorServiceexecutorServiceprotected java.util.List<org.ikasan.spec.scheduled.notification.model.Notifier>notifierslist of notifiers to be informed
-
Constructor Summary
Constructors Constructor Description AbstractMonitorBase(java.util.concurrent.ExecutorService executorService)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddNotifier(org.ikasan.spec.scheduled.notification.model.Notifier notifier)voiddestroy()java.util.List<org.ikasan.spec.scheduled.notification.model.Notifier>getNotifiers()voidinvoke(T notification)voidsetNotifiers(java.util.List<org.ikasan.spec.scheduled.notification.model.Notifier> notifiers)protected voidshutdownExecutor(java.util.concurrent.ExecutorService executor)
-
-
-
Method Detail
-
invoke
public void invoke(T notification)
- Specified by:
invokein interfaceorg.ikasan.spec.scheduled.notification.model.Monitor<T>
-
destroy
public void destroy()
- Specified by:
destroyin interfaceorg.ikasan.spec.scheduled.notification.model.Monitor<T>
-
setNotifiers
public void setNotifiers(java.util.List<org.ikasan.spec.scheduled.notification.model.Notifier> notifiers)
- Specified by:
setNotifiersin interfaceorg.ikasan.spec.scheduled.notification.model.Monitor<T>
-
getNotifiers
public java.util.List<org.ikasan.spec.scheduled.notification.model.Notifier> getNotifiers()
- Specified by:
getNotifiersin interfaceorg.ikasan.spec.scheduled.notification.model.Monitor<T>
-
addNotifier
public void addNotifier(org.ikasan.spec.scheduled.notification.model.Notifier notifier)
- Specified by:
addNotifierin interfaceorg.ikasan.spec.scheduled.notification.model.Monitor<T>
-
shutdownExecutor
protected void shutdownExecutor(java.util.concurrent.ExecutorService executor)
-
-