| Modifier and Type | Method and Description |
|---|---|
Job |
WorkerStatus.getPayload() |
Job |
JobFailure.getPayload() |
| Modifier and Type | Method and Description |
|---|---|
void |
WorkerStatus.setPayload(Job payload)
Set the job.
|
void |
JobFailure.setPayload(Job payload)
Set the job.
|
| Constructor and Description |
|---|
Job(Job origJob)
Cloning constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected Object |
AdminImpl.execute(Job job,
String curQueue,
Object instance)
Executes the given job.
|
void |
AdminClient.publish(Job job)
Publishes a job on the
ResqueConstants.ADMIN_CHANNEL channel. |
void |
AbstractAdminClient.publish(Job job) |
void |
AdminClient.publish(String channel,
Job job)
Publishes a job on the given channel.
|
void |
AbstractAdminClient.publish(String channel,
Job job) |
| Modifier and Type | Method and Description |
|---|---|
void |
Client.enqueue(String queue,
Job job)
Queues a job in a given queue to be run.
|
void |
AbstractClient.enqueue(String queue,
Job job) |
void |
Client.priorityEnqueue(String queue,
Job job)
Queues a job with high priority in a given queue to be run.
|
void |
AbstractClient.priorityEnqueue(String queue,
Job job) |
| Modifier and Type | Method and Description |
|---|---|
Job |
JobJsonDeserializer.deserialize(com.fasterxml.jackson.core.JsonParser jp,
com.fasterxml.jackson.databind.DeserializationContext ctxt) |
| Modifier and Type | Method and Description |
|---|---|
void |
JobJsonSerializer.serialize(Job job,
com.fasterxml.jackson.core.JsonGenerator jgen,
com.fasterxml.jackson.databind.SerializerProvider provider) |
| Modifier and Type | Method and Description |
|---|---|
List<Job> |
QueueInfo.getJobs() |
| Modifier and Type | Method and Description |
|---|---|
void |
QueueInfo.setJobs(List<Job> jobs) |
| Modifier and Type | Method and Description |
|---|---|
static Object |
JesqueUtils.materializeJob(Job job)
Materializes a job by assuming the
getClassName() is a fully-qualified Java type. |
static Object |
JesqueUtils.materializeJob(Job job,
Map<String,Class<?>> jobTypes)
Materializes a job by looking up
getClassName() in the provided map of job types. |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
WorkerImpl.execute(Job job,
String curQueue,
Object instance)
Executes the given job.
|
protected String |
WorkerImpl.failMsg(Exception ex,
String queue,
Job job)
Create and serialize a JobFailure.
|
protected void |
WorkerImpl.failure(Exception ex,
Job job,
String curQueue)
Update the status in Redis on failure
|
void |
WorkerListenerDelegate.fireEvent(WorkerEvent event,
Worker worker,
String queue,
Job job,
Object runner,
Object result,
Exception ex)
Notify all WorkerListeners currently registered for the given WorkerEvent.
|
void |
WorkerListener.onEvent(WorkerEvent event,
Worker worker,
String queue,
Job job,
Object runner,
Object result,
Exception ex)
This method is called by the Worker upon the occurence of a registered WorkerEvent.
|
void |
LoggingWorkerListener.onEvent(WorkerEvent event,
Worker worker,
String queue,
Job job,
Object runner,
Object result,
Exception ex)
If there is an Exception, it is logged as an error, otherwise it is logged as a debug message.
|
protected void |
WorkerImpl.process(Job job,
String curQueue)
Materializes and executes the given job.
|
protected String |
WorkerImpl.statusMsg(String queue,
Job job)
Create and serialize a WorkerStatus.
|
protected void |
WorkerImpl.success(Job job,
Object runner,
Object result,
String curQueue)
Update the status in Redis on success.
|
Copyright © 2011-2013. All Rights Reserved.