Class QueueMoverJob
- java.lang.Object
-
- com.swiftmq.impl.queue.standard.jobs.QueueMoverJob
-
-
Constructor Summary
Constructors Constructor Description QueueMoverJob(SwiftletContext ctx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
start(java.util.Properties properties, JobTerminationListener jobTerminationListener)
Starts a Job.void
stop()
Stops a Job asynchronously.java.lang.String
toString()
-
-
-
Constructor Detail
-
QueueMoverJob
public QueueMoverJob(SwiftletContext ctx)
-
-
Method Detail
-
start
public void start(java.util.Properties properties, JobTerminationListener jobTerminationListener) throws JobException
Description copied from interface:Job
Starts a Job. This method might block until the Job finished or it might return immediately. The Job is marked as running until the Job calls the JobTerminationListener or the Scheduler Swiftlet calles the stop method.- Specified by:
start
in interfaceJob
- Parameters:
properties
- parameter valuesjobTerminationListener
- JobTerminationListener- Throws:
JobException
- on error
-
stop
public void stop() throws JobException
Description copied from interface:Job
Stops a Job asynchronously. The Job is marked as terminated thereafter. This method must not block. The stop method is called when the maximum runtime for the Job is reached or for Scheduler Swiftlet internal reasons, e.g. a re-schedule or a router shutdown.- Specified by:
stop
in interfaceJob
- Throws:
JobException
- on error
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-