Class JobMonitor

  • All Implemented Interfaces:
    javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, JobMonitorMBean

    public class JobMonitor
    extends javax.management.NotificationBroadcasterSupport
    implements JobMonitorMBean
    JMX MBean implementation of JobMonitorMBean.
    Author:
    Mahmoud Ben Hassine ([email protected])
    • Constructor Detail

      • JobMonitor

        public JobMonitor​(JobReport jobReport)
    • Method Detail

      • getJobName

        public java.lang.String getJobName()
        Get the job name.
        Specified by:
        getJobName in interface JobMonitorMBean
        Returns:
        the job name
      • getReadCount

        public long getReadCount()
        Get read records count.
        Specified by:
        getReadCount in interface JobMonitorMBean
        Returns:
        read records count
      • getFilterCount

        public long getFilterCount()
        Get filtered records count.
        Specified by:
        getFilterCount in interface JobMonitorMBean
        Returns:
        filtered records count
      • getErrorCount

        public long getErrorCount()
        Get error records count.
        Specified by:
        getErrorCount in interface JobMonitorMBean
        Returns:
        error records count
      • getWriteCount

        public long getWriteCount()
        Get written records count.
        Specified by:
        getWriteCount in interface JobMonitorMBean
        Returns:
        written records count
      • getStartTime

        public java.lang.String getStartTime()
        Get batch execution start time.
        Specified by:
        getStartTime in interface JobMonitorMBean
        Returns:
        batch execution start time
      • getEndTime

        public java.lang.String getEndTime()
        Get batch execution end time.
        Specified by:
        getEndTime in interface JobMonitorMBean
        Returns:
        batch execution end time
      • notifyJobReportUpdate

        public void notifyJobReportUpdate()
      • registerJmxMBeanFor

        public void registerJmxMBeanFor​(Job job)