org.jmonks.batch.framework.management
Interface JobMonitorMBean

All Known Implementing Classes:
JobController, JobMonitor

public interface JobMonitorMBean

JobMonitorMBean interface defines the methods to instrument the job being run to find out the statistics of the job and to find out all the processor states running in the controller. This follows the JMX standard MBean paradigm to define name of the MBean and methods instrument the job.

Since:
1.0
Version:
1.0
Author:
Suresh Pragada

Method Summary
 long getExpectedRecordsCount()
          Gets the total number of records this job might try to process.
 long getProcessedRecordsCount()
          Gets the records processed by this job so far.
 java.lang.String[] getProcessorIDList()
          Returns the array of IDs assigned to be processors running under this controller.
 ProcessorState getProcessorState(java.lang.String processorID)
          Gets the state of the processor identified by the given processor ID.
 

Method Detail

getExpectedRecordsCount

public long getExpectedRecordsCount()
Gets the total number of records this job might try to process.

Returns:
Returns the total number of records this job might try to process.

getProcessedRecordsCount

public long getProcessedRecordsCount()
Gets the records processed by this job so far.

Returns:
Returns the number of records processed by this job so far.

getProcessorIDList

public java.lang.String[] getProcessorIDList()
Returns the array of IDs assigned to be processors running under this controller.

Returns:
Returns the array of IDs being assigned by each processor.

getProcessorState

public ProcessorState getProcessorState(java.lang.String processorID)
Gets the state of the processor identified by the given processor ID. This returns the state in a ProcessorState object.

Returns:
Returns the state of the requested processor.