| java.lang.Object org.ofbiz.service.job.JobManager
JobManager | public class JobManager (Code) | | JobManager
author: Andy Zeneski version: $Revision: 1.12 $ since: 2.0 |
Method Summary | |
public void | finalize() Close out the scheduler thread. | public GenericDelegator | getDelegator() Returns the GenericDelegator. | public LocalDispatcher | getDispatcher() Returns the ServiceDispatcher. | public static RecurrenceInfo | getRecurrenceInfo(GenericValue job) gets the recurrence info object for a job. | public void | killThread(String threadName) Kill a JobInvoker Thread. | public synchronized Iterator | poll() | public List | processList() Get a List of each threads current state. | public synchronized void | reloadCrashedJobs() | public void | runJob(Job job) Queues a Job to run now. | public void | schedule(String serviceName, Map context, long startTime, int frequency, int interval, int count) | public void | schedule(String serviceName, Map context, long startTime, int frequency, int interval, long endTime) | public void | schedule(String serviceName, Map context, long startTime, int frequency, int interval, int count, long endTime) | public void | schedule(String poolName, String serviceName, Map context, long startTime, int frequency, int interval, int count, long endTime) |
dispatcherName | final public static String dispatcherName(Code) | | |
finalize | public void finalize()(Code) | | Close out the scheduler thread.
|
killThread | public void killThread(String threadName)(Code) | | Kill a JobInvoker Thread.
Parameters: threadName - Name of the JobInvoker Thread to kill. |
processList | public List processList()(Code) | | Get a List of each threads current state.
List containing a Map of each thread's state. |
reloadCrashedJobs | public synchronized void reloadCrashedJobs()(Code) | | |
schedule | public void schedule(String serviceName, Map context, long startTime, int frequency, int interval, int count) throws JobManagerException(Code) | | Schedule a job to start at a specific time with specific recurrence info
Parameters: serviceName - The name of the service to invoke Parameters: context - The context for the service Parameters: startTime - The time in milliseconds the service should run Parameters: frequency - The frequency of the recurrence (HOURLY,DAILY,MONTHLY,etc) Parameters: interval - The interval of the frequency recurrence Parameters: count - The number of times to repeat |
schedule | public void schedule(String serviceName, Map context, long startTime, int frequency, int interval, long endTime) throws JobManagerException(Code) | | Schedule a job to start at a specific time with specific recurrence info
Parameters: serviceName - The name of the service to invoke Parameters: context - The context for the service Parameters: startTime - The time in milliseconds the service should run Parameters: frequency - The frequency of the recurrence (HOURLY,DAILY,MONTHLY,etc) Parameters: interval - The interval of the frequency recurrence Parameters: endTime - The time in milliseconds the service should expire |
schedule | public void schedule(String serviceName, Map context, long startTime, int frequency, int interval, int count, long endTime) throws JobManagerException(Code) | | Schedule a job to start at a specific time with specific recurrence info
Parameters: serviceName - The name of the service to invoke Parameters: context - The context for the service Parameters: startTime - The time in milliseconds the service should run Parameters: frequency - The frequency of the recurrence (HOURLY,DAILY,MONTHLY,etc) Parameters: interval - The interval of the frequency recurrence Parameters: count - The number of times to repeat Parameters: endTime - The time in milliseconds the service should expire |
schedule | public void schedule(String poolName, String serviceName, Map context, long startTime, int frequency, int interval, int count, long endTime) throws JobManagerException(Code) | | Schedule a job to start at a specific time with specific recurrence info
Parameters: poolName - The name of the pool to run the service from Parameters: serviceName - The name of the service to invoke Parameters: context - The context for the service Parameters: startTime - The time in milliseconds the service should run Parameters: frequency - The frequency of the recurrence (HOURLY,DAILY,MONTHLY,etc) Parameters: interval - The interval of the frequency recurrence Parameters: count - The number of times to repeat Parameters: endTime - The time in milliseconds the service should expire |
|
|