|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.management.NotificationBroadcasterSupport org.jmonks.batch.framework.management.JobManager
JobManager instruments the job controller for management purposes.
Constructor Summary | |
JobManager(JobController jobController)
Creates a new instance of JobManagerMBean and initializes with job controller. |
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. |
Methods inherited from class javax.management.NotificationBroadcasterSupport |
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JobManager(JobController jobController)
jobController
- Job controller implements this interface.
java.lang.IllegalArgumentException
- if input argument job controller is null.Method Detail |
public boolean stop(java.lang.String processorID)
stop
in interface JobManagerMBean
processorID
- ID assigned to each processor.
public boolean suspend(java.lang.String processorID)
suspend
in interface JobManagerMBean
processorID
- ID assigned to each processor.
public boolean resume(java.lang.String processorID)
resume
in interface JobManagerMBean
processorID
- ID assigned to each processor.
public ProcessorStatus getProcessorStatus(java.lang.String processorID)
getProcessorStatus
in interface JobManagerMBean
processorID
- ID assigned to each processor.
public org.apache.log4j.Level getLogLevel(java.lang.String loggerName)
getLogLevel
in interface JobManagerMBean
loggerName
- Name of the logger wants to find the log level.
public boolean changeLogLevel(java.lang.String loggerName, org.apache.log4j.Level newLogLevel)
changeLogLevel
in interface JobManagerMBean
loggerName
- Logger name needs to be modified.newLogLevel
- new logging level.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |