public interface AdminClient
| Modifier and Type | Method and Description |
|---|---|
void |
end()
Quits the connection to the Redis server.
|
void |
publish(Job job)
Publishes a job on the
ResqueConstants.ADMIN_CHANNEL channel. |
void |
publish(String channel,
Job job)
Publishes a job on the given channel.
|
void |
shutdownWorkers(boolean now)
Send a shutdown command on the
ResqueConstants.ADMIN_CHANNEL channel. |
void |
shutdownWorkers(String channel,
boolean now)
Send a shutdown command on the given channel.
|
void |
togglePausedWorkers(boolean paused)
Send a pause command on the
ResqueConstants.ADMIN_CHANNEL channel. |
void |
togglePausedWorkers(String channel,
boolean paused)
Send a pause command on the given channel.
|
void shutdownWorkers(boolean now)
ResqueConstants.ADMIN_CHANNEL channel.now - if true, an effort will be made to stop any job in progressvoid shutdownWorkers(String channel, boolean now)
channel - the channel to publish the pause command tonow - if true, an effort will be made to stop any job in progressvoid togglePausedWorkers(boolean paused)
ResqueConstants.ADMIN_CHANNEL channel.paused - if true, the workers will not process any new jobs;
if false, the workers will process new jobsvoid togglePausedWorkers(String channel, boolean paused)
channel - the channel to publish the pause command topaused - if true, the workers will not process any new jobs;
if false, the workers will process new jobsvoid publish(Job job)
ResqueConstants.ADMIN_CHANNEL channel.job - job the job to be publishedIllegalArgumentException - if the job is nullvoid publish(String channel, Job job)
channel - the channel to publish the job tojob - job the job to be publishedIllegalArgumentException - if the channel is null or empty or if the job is nullvoid end()
Copyright © 2011-2013. All Rights Reserved.