org.ow2.bonita.pvm.internal.svc
Class CommandManagementService

java.lang.Object
  extended by org.ow2.bonita.pvm.internal.svc.CommandManagementService
All Implemented Interfaces:
ManagementService

public class CommandManagementService
extends java.lang.Object
implements ManagementService

Author:
Tom Baeyens

Field Summary
protected  CommandService commandService
           
 
Constructor Summary
CommandManagementService()
           
 
Method Summary
 void executeJob(java.lang.String jobId)
          resets the retry count, clears the exception and executes the job.
 java.util.List<Job> getJobsWithException(int firstResult, int maxResults)
          all jobs for which all the retry attempts have failed and which are parked, waiting for operator intervention
 java.util.List<Message> getMessages(int firstResult, int maxResults)
          all the messages which are waiting to be executed.
 java.util.List<Timer> getTimers(int firstResult, int maxResults)
          all the timers which are waiting for their due date.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

commandService

protected CommandService commandService
Constructor Detail

CommandManagementService

public CommandManagementService()
Method Detail

executeJob

public void executeJob(java.lang.String jobId)
Description copied from interface: ManagementService
resets the retry count, clears the exception and executes the job. An exception is thrown out of this method in case the execution of the job fails. In case the async command executor is configured for this service, failing job execution will not result into an exception coming out of this method.

Specified by:
executeJob in interface ManagementService

getJobsWithException

public java.util.List<Job> getJobsWithException(int firstResult,
                                                int maxResults)
Description copied from interface: ManagementService
all jobs for which all the retry attempts have failed and which are parked, waiting for operator intervention

Specified by:
getJobsWithException in interface ManagementService

getMessages

public java.util.List<Message> getMessages(int firstResult,
                                           int maxResults)
Description copied from interface: ManagementService
all the messages which are waiting to be executed. Messages that are already acquired will not show up in the list.

Specified by:
getMessages in interface ManagementService

getTimers

public java.util.List<Timer> getTimers(int firstResult,
                                       int maxResults)
Description copied from interface: ManagementService
all the timers which are waiting for their due date. Timers that are already acquired will not show up in the list.

Specified by:
getTimers in interface ManagementService


Copyright © 2009 OW2 Consortium. All Rights Reserved.