Package org.jeasy.batch.core.jmx
Class JobMonitor
- java.lang.Object
-
- javax.management.NotificationBroadcasterSupport
-
- org.jeasy.batch.core.jmx.JobMonitor
-
- All Implemented Interfaces:
javax.management.NotificationBroadcaster
,javax.management.NotificationEmitter
,JobMonitorMBean
public class JobMonitor extends javax.management.NotificationBroadcasterSupport implements JobMonitorMBean
JMX MBean implementation ofJobMonitorMBean
.- Author:
- Mahmoud Ben Hassine ([email protected])
-
-
Field Summary
-
Fields inherited from interface org.jeasy.batch.core.jmx.JobMonitorMBean
JMX_MBEAN_NAME
-
-
Constructor Summary
Constructors Constructor Description JobMonitor(JobReport jobReport)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getEndTime()
Get batch execution end time.long
getErrorCount()
Get error records count.long
getFilterCount()
Get filtered records count.java.lang.String
getJobName()
Get the job name.java.lang.String
getJobStatus()
Get the jobJobStatus
.long
getReadCount()
Get read records count.java.lang.String
getStartTime()
Get batch execution start time.long
getWriteCount()
Get written records count.void
notifyJobReportUpdate()
void
registerJmxMBeanFor(Job job)
-
-
-
Constructor Detail
-
JobMonitor
public JobMonitor(JobReport jobReport)
-
-
Method Detail
-
getJobName
public java.lang.String getJobName()
Get the job name.- Specified by:
getJobName
in interfaceJobMonitorMBean
- Returns:
- the job name
-
getReadCount
public long getReadCount()
Get read records count.- Specified by:
getReadCount
in interfaceJobMonitorMBean
- Returns:
- read records count
-
getFilterCount
public long getFilterCount()
Get filtered records count.- Specified by:
getFilterCount
in interfaceJobMonitorMBean
- Returns:
- filtered records count
-
getErrorCount
public long getErrorCount()
Get error records count.- Specified by:
getErrorCount
in interfaceJobMonitorMBean
- Returns:
- error records count
-
getWriteCount
public long getWriteCount()
Get written records count.- Specified by:
getWriteCount
in interfaceJobMonitorMBean
- Returns:
- written records count
-
getStartTime
public java.lang.String getStartTime()
Get batch execution start time.- Specified by:
getStartTime
in interfaceJobMonitorMBean
- Returns:
- batch execution start time
-
getEndTime
public java.lang.String getEndTime()
Get batch execution end time.- Specified by:
getEndTime
in interfaceJobMonitorMBean
- Returns:
- batch execution end time
-
getJobStatus
public java.lang.String getJobStatus()
Description copied from interface:JobMonitorMBean
Get the jobJobStatus
.- Specified by:
getJobStatus
in interfaceJobMonitorMBean
- Returns:
- the job status
-
notifyJobReportUpdate
public void notifyJobReportUpdate()
-
registerJmxMBeanFor
public void registerJmxMBeanFor(Job job)
-
-