public class Client
extends java.lang.Object
implements java.lang.AutoCloseable
Modifier and Type | Field and Description |
---|---|
static int |
MAX_BIN_SIZE |
static java.lang.String |
VERSION_STRING |
Modifier | Constructor and Description |
---|---|
protected |
Client(java.net.URI uri,
Authenticator authenticator) |
protected |
Client(java.net.URI uri,
Authenticator authenticator,
boolean checkCert) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
Response |
getApp(java.lang.String appid) |
int |
getBinaryFile(int id,
java.lang.String file,
java.io.OutputStream out) |
Response |
getFile(int id,
java.lang.String file,
long offset,
long length) |
Response |
getJob(int id) |
Response |
kill(int id) |
Response |
list(Job.JobState state,
java.util.Optional<java.lang.String> tag) |
Response |
listApp() |
Response |
listFiles(int id,
java.lang.String path) |
Response |
load(Application application) |
static ClientBuilder |
newBuilder(java.net.URI uri) |
boolean |
ping() |
Job |
run(Job job) |
Response |
schedule(Job job) |
void |
setVerboseLog(boolean b) |
Response |
status() |
Response |
unload(java.lang.String appName)
Deprecated.
|
public static final java.lang.String VERSION_STRING
public static final int MAX_BIN_SIZE
protected Client(java.net.URI uri, Authenticator authenticator)
protected Client(java.net.URI uri, Authenticator authenticator, boolean checkCert)
public static ClientBuilder newBuilder(java.net.URI uri)
public void setVerboseLog(boolean b)
public void close()
close
in interface java.lang.AutoCloseable
public boolean ping() throws java.io.IOException
java.io.IOException
public Response status() throws java.io.IOException
java.io.IOException
public Response list(Job.JobState state, java.util.Optional<java.lang.String> tag) throws java.io.IOException
java.io.IOException
public Response getJob(int id) throws java.io.IOException
java.io.IOException
public Response getFile(int id, java.lang.String file, long offset, long length) throws java.io.IOException
java.io.IOException
public int getBinaryFile(int id, java.lang.String file, java.io.OutputStream out) throws java.io.IOException
java.io.IOException
public Response listFiles(int id, java.lang.String path) throws java.io.IOException
java.io.IOException
public Response kill(int id) throws java.io.IOException
java.io.IOException
public Response getApp(java.lang.String appid) throws java.io.IOException
java.io.IOException
public Response load(Application application) throws java.io.IOException
java.io.IOException
public Response listApp() throws java.io.IOException
java.io.IOException
@Deprecated public Response unload(java.lang.String appName) throws java.io.IOException
java.io.IOException