Package org.jeasy.batch.core.jmx
Class JobMonitoringListener
- java.lang.Object
-
- org.jeasy.batch.core.jmx.JobMonitoringListener
-
- All Implemented Interfaces:
java.util.EventListener
,javax.management.NotificationListener
public abstract class JobMonitoringListener extends java.lang.Object implements javax.management.NotificationListener
Listener for job report updates sent via JMX by the job monitor.- Author:
- Mahmoud Ben Hassine ([email protected])
-
-
Constructor Summary
Constructors Constructor Description JobMonitoringListener()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
handleNotification(javax.management.Notification notification, java.lang.Object handback)
abstract void
onConnectionClosed()
Method invoked when the JMX connection is closed.abstract void
onConnectionOpened()
Method invoked when the JMX connection is opened.abstract void
onJobReportUpdate(JobReport jobReport)
Method invoked when a new job report update is received.
-
-
-
Method Detail
-
onJobReportUpdate
public abstract void onJobReportUpdate(JobReport jobReport)
Method invoked when a new job report update is received.- Parameters:
jobReport
- the new job report update
-
onConnectionOpened
public abstract void onConnectionOpened()
Method invoked when the JMX connection is opened.
-
onConnectionClosed
public abstract void onConnectionClosed()
Method invoked when the JMX connection is closed.
-
handleNotification
public void handleNotification(javax.management.Notification notification, java.lang.Object handback)
- Specified by:
handleNotification
in interfacejavax.management.NotificationListener
-
-