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 (mahmoud.benhassine@icloud.com)
-
-
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.StringgetEndTime()Get batch execution end time.longgetErrorCount()Get error records count.longgetFilterCount()Get filtered records count.java.lang.StringgetJobName()Get the job name.java.lang.StringgetJobStatus()Get the jobJobStatus.longgetReadCount()Get read records count.java.lang.StringgetStartTime()Get batch execution start time.longgetWriteCount()Get written records count.voidnotifyJobReportUpdate()voidregisterJmxMBeanFor(Job job)
-
-
-
Constructor Detail
-
JobMonitor
public JobMonitor(JobReport jobReport)
-
-
Method Detail
-
getJobName
public java.lang.String getJobName()
Get the job name.- Specified by:
getJobNamein interfaceJobMonitorMBean- Returns:
- the job name
-
getReadCount
public long getReadCount()
Get read records count.- Specified by:
getReadCountin interfaceJobMonitorMBean- Returns:
- read records count
-
getFilterCount
public long getFilterCount()
Get filtered records count.- Specified by:
getFilterCountin interfaceJobMonitorMBean- Returns:
- filtered records count
-
getErrorCount
public long getErrorCount()
Get error records count.- Specified by:
getErrorCountin interfaceJobMonitorMBean- Returns:
- error records count
-
getWriteCount
public long getWriteCount()
Get written records count.- Specified by:
getWriteCountin interfaceJobMonitorMBean- Returns:
- written records count
-
getStartTime
public java.lang.String getStartTime()
Get batch execution start time.- Specified by:
getStartTimein interfaceJobMonitorMBean- Returns:
- batch execution start time
-
getEndTime
public java.lang.String getEndTime()
Get batch execution end time.- Specified by:
getEndTimein interfaceJobMonitorMBean- Returns:
- batch execution end time
-
getJobStatus
public java.lang.String getJobStatus()
Description copied from interface:JobMonitorMBeanGet the jobJobStatus.- Specified by:
getJobStatusin interfaceJobMonitorMBean- Returns:
- the job status
-
notifyJobReportUpdate
public void notifyJobReportUpdate()
-
registerJmxMBeanFor
public void registerJmxMBeanFor(Job job)
-
-