org.ow2.bonita.pvm
Interface ManagementService

All Known Implementing Classes:
CommandManagementService

public interface ManagementService

operations targeted to system operators that need to keep the process engine up and running. This functionality is typically exposed through a management web console.

Author:
Tom Baeyens

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.
 

Method Detail

getMessages

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


getTimers

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


getJobsWithException

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


executeJob

void executeJob(java.lang.String jobId)
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.



Copyright © 2009 OW2 Consortium. All Rights Reserved.