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.AutoCloseablepublic boolean ping()
throws java.io.IOException
java.io.IOExceptionpublic Response status() throws java.io.IOException
java.io.IOExceptionpublic Response list(Job.JobState state, java.util.Optional<java.lang.String> tag) throws java.io.IOException
java.io.IOExceptionpublic Response getJob(int id) throws java.io.IOException
java.io.IOExceptionpublic Response getFile(int id, java.lang.String file, long offset, long length) throws java.io.IOException
java.io.IOExceptionpublic int getBinaryFile(int id,
java.lang.String file,
java.io.OutputStream out)
throws java.io.IOException
java.io.IOExceptionpublic Response listFiles(int id, java.lang.String path) throws java.io.IOException
java.io.IOExceptionpublic Response kill(int id) throws java.io.IOException
java.io.IOExceptionpublic Response getApp(java.lang.String appid) throws java.io.IOException
java.io.IOExceptionpublic Response load(Application application) throws java.io.IOException
java.io.IOExceptionpublic Response listApp() throws java.io.IOException
java.io.IOException@Deprecated public Response unload(java.lang.String appName) throws java.io.IOException
java.io.IOException