public class GearmanClient extends Object
| Constructor and Description |
|---|
GearmanClient() |
GearmanClient(org.gearman.net.Connection conn) |
GearmanClient(String host) |
GearmanClient(String host,
int port) |
| Modifier and Type | Method and Description |
|---|---|
void |
addConnection(org.gearman.net.Connection conn) |
void |
addHostToList(String host) |
void |
addHostToList(String host,
int port) |
void |
close() |
org.gearman.common.packets.response.StatusRes |
getStatus(String jobHandle) |
byte[] |
submitJob(String callback,
byte[] data) |
String |
submitJobInBackground(String callback,
byte[] data,
org.gearman.constants.JobPriority priority) |
public GearmanClient()
public GearmanClient(String host, int port) throws IOException
IOExceptionpublic GearmanClient(String host) throws IOException
IOExceptionpublic GearmanClient(org.gearman.net.Connection conn)
public void addConnection(org.gearman.net.Connection conn)
public void addHostToList(String host, int port) throws IOException
IOExceptionpublic void addHostToList(String host) throws IOException
IOExceptionpublic void close()
public byte[] submitJob(String callback, byte[] data)
public String submitJobInBackground(String callback, byte[] data, org.gearman.constants.JobPriority priority) throws org.gearman.exceptions.NoServersAvailableException
org.gearman.exceptions.NoServersAvailableExceptionpublic org.gearman.common.packets.response.StatusRes getStatus(String jobHandle)
Copyright © 2013. All Rights Reserved.