|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.management.NotificationBroadcasterSupport
net.sf.mybatchfwk.jmx.ManagedBatchService
public class ManagedBatchService
Default implementation of the MBean interface
| Field Summary | |
|---|---|
protected static java.lang.String[] |
STATES_LABELS
|
| Constructor Summary | |
|---|---|
ManagedBatchService(BatchService batchService)
Register the batch service to the JMX MBean server |
|
| Method Summary | |
|---|---|
java.util.Date |
getBeginDate()
Return the begin date of the execution |
java.util.Date |
getEndDate()
Return the end date of the execution |
long |
getNumberOfCompletedTasks()
Return the number of completed tasks |
long |
getNumberOfFailedTasks()
Return the number of failed tasks |
java.lang.String |
getState()
Return the current batch state |
void |
notifyBatchState(BatchService.STATE newState)
Send a JMX notification that contains the new state of the batch |
void |
pause()
Pause operation. |
void |
restart()
Restart operation. |
void |
resume()
Resume operation. |
void |
shutdown()
Shutdown operation. |
void |
shutdownNow()
Shutdown now operation. |
| 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 |
| Field Detail |
|---|
protected static final java.lang.String[] STATES_LABELS
| Constructor Detail |
|---|
public ManagedBatchService(BatchService batchService)
throws javax.management.MalformedObjectNameException,
java.lang.NullPointerException,
javax.management.InstanceAlreadyExistsException,
javax.management.MBeanRegistrationException,
javax.management.NotCompliantMBeanException
batchService -
java.lang.NullPointerException
javax.management.MalformedObjectNameException
javax.management.NotCompliantMBeanException
javax.management.MBeanRegistrationException
javax.management.InstanceAlreadyExistsException| Method Detail |
|---|
public void pause()
throws java.lang.Exception
ManagedBatchServiceMBean
pause in interface ManagedBatchServiceMBeanjava.lang.Exception - if the state of the batch cannot permit this operation.
public void resume()
throws java.lang.Exception
ManagedBatchServiceMBean
resume in interface ManagedBatchServiceMBeanjava.lang.Exception - if the state of the batch cannot permit this operation.
public void shutdown()
throws java.lang.Exception
ManagedBatchServiceMBean
shutdown in interface ManagedBatchServiceMBeanjava.lang.Exception - if the state of the batch cannot permit this operation.
public void shutdownNow()
throws java.lang.Exception
ManagedBatchServiceMBean
shutdownNow in interface ManagedBatchServiceMBeanjava.lang.Exception - if the state of the batch cannot permit this operation.
public void restart()
throws java.lang.Exception
ManagedBatchServiceMBean
restart in interface ManagedBatchServiceMBeanjava.lang.Exception - if the state of the batch cannot permit this operation.public java.lang.String getState()
ManagedBatchServiceMBean
getState in interface ManagedBatchServiceMBeanpublic java.util.Date getBeginDate()
ManagedBatchServiceMBean
getBeginDate in interface ManagedBatchServiceMBeanpublic java.util.Date getEndDate()
ManagedBatchServiceMBean
getEndDate in interface ManagedBatchServiceMBeanpublic long getNumberOfCompletedTasks()
ManagedBatchServiceMBean
getNumberOfCompletedTasks in interface ManagedBatchServiceMBeanpublic long getNumberOfFailedTasks()
ManagedBatchServiceMBean
getNumberOfFailedTasks in interface ManagedBatchServiceMBeanpublic void notifyBatchState(BatchService.STATE newState)
newState -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||