org.jmonks.batch.framework.management
Interface JobManagerMBean

All Known Implementing Classes:
JobController, JobManager

public interface JobManagerMBean

This standard MBean interface provides the methods to instrument the job controller and processors running under the job controller.

Since:
1.0
Version:
1.0
Author:
Suresh Pragada

Method Summary
 boolean changeLogLevel(java.lang.String loggerName, org.apache.log4j.Level newLogLevel)
          Changes the log level for the requested logger name with the given log level.
 org.apache.log4j.Level getLogLevel(java.lang.String loggerName)
          Gets the log level of the given logger name.
 ProcessorStatus getProcessorStatus(java.lang.String processorID)
          Returns the status of the processor identified by the given processor ID.
 boolean resume(java.lang.String processorID)
          Controller should resume processing of the processor identified by the given processor ID.
 boolean stop(java.lang.String processorID)
          Controller should stop processing of the processor identified by the given processor ID.
 boolean suspend(java.lang.String processorID)
          Controller should suspend processing of the processor identified by the give processor ID.
 

Method Detail

getProcessorStatus

public ProcessorStatus getProcessorStatus(java.lang.String processorID)
Returns the status of the processor identified by the given processor ID.

Parameters:
processorID - ID assigned to each processor.
Returns:
Returns the processor status.

stop

public boolean stop(java.lang.String processorID)
Controller should stop processing of the processor identified by the given processor ID.

Parameters:
processorID - ID assigned to each processor.
Returns:
Returns true, if processor has been stopped, false otherwise.

suspend

public boolean suspend(java.lang.String processorID)
Controller should suspend processing of the processor identified by the give processor ID.

Parameters:
processorID - ID assigned to each processor.
Returns:
Returns true, if processor has been suspended, false otherwise.

resume

public boolean resume(java.lang.String processorID)
Controller should resume processing of the processor identified by the given processor ID.

Parameters:
processorID - ID assigned to each processor.
Returns:
Returns true, if processor can be resumed, false, otherwise.

getLogLevel

public org.apache.log4j.Level getLogLevel(java.lang.String loggerName)
Gets the log level of the given logger name.

Parameters:
loggerName - Name of the logger wants to find the log level.
Returns:
Returns the log level, null, if the given logger could not be found.

changeLogLevel

public boolean changeLogLevel(java.lang.String loggerName,
                              org.apache.log4j.Level newLogLevel)
Changes the log level for the requested logger name with the given log level.

Parameters:
loggerName - Logger name needs to be modified.
newLogLevel - new logging level.
Returns:
Returns true, if log level could be changed, false, otherwise.