public class HeliosClient extends Object implements AutoCloseable
| Modifier and Type | Class and Description |
|---|---|
static class |
HeliosClient.Builder |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static HeliosClient |
create(String domain,
String user)
Create a new helios client as a specific user, connecting to a helios master cluster in a
specific domain.
|
com.google.common.util.concurrent.ListenableFuture<CreateJobResponse> |
createJob(Job descriptor) |
com.google.common.util.concurrent.ListenableFuture<JobDeleteResponse> |
deleteJob(JobId id) |
com.google.common.util.concurrent.ListenableFuture<JobDeleteResponse> |
deleteJob(JobId id,
String token) |
com.google.common.util.concurrent.ListenableFuture<JobDeployResponse> |
deploy(Deployment job,
String host) |
com.google.common.util.concurrent.ListenableFuture<JobDeployResponse> |
deploy(Deployment job,
String host,
String token) |
com.google.common.util.concurrent.ListenableFuture<Deployment> |
deployment(String host,
JobId job) |
com.google.common.util.concurrent.ListenableFuture<HostDeregisterResponse> |
deregisterHost(String host) |
com.google.common.util.concurrent.ListenableFuture<HostStatus> |
hostStatus(String host) |
com.google.common.util.concurrent.ListenableFuture<Map<String,HostStatus>> |
hostStatuses(List<String> hosts) |
com.google.common.util.concurrent.ListenableFuture<TaskStatusEvents> |
jobHistory(JobId jobId) |
com.google.common.util.concurrent.ListenableFuture<Map<JobId,Job>> |
jobs() |
com.google.common.util.concurrent.ListenableFuture<Map<JobId,Job>> |
jobs(String query) |
com.google.common.util.concurrent.ListenableFuture<JobStatus> |
jobStatus(JobId jobId) |
com.google.common.util.concurrent.ListenableFuture<Map<JobId,JobStatus>> |
jobStatuses(Set<JobId> jobs) |
com.google.common.util.concurrent.ListenableFuture<List<String>> |
listHosts() |
com.google.common.util.concurrent.ListenableFuture<List<String>> |
listMasters() |
static HeliosClient.Builder |
newBuilder() |
com.google.common.util.concurrent.ListenableFuture<Integer> |
registerHost(String host,
String id) |
com.google.common.util.concurrent.ListenableFuture<SetGoalResponse> |
setGoal(Deployment job,
String host) |
com.google.common.util.concurrent.ListenableFuture<SetGoalResponse> |
setGoal(Deployment job,
String host,
String token) |
com.google.common.util.concurrent.ListenableFuture<JobUndeployResponse> |
undeploy(JobId jobId,
String host) |
com.google.common.util.concurrent.ListenableFuture<JobUndeployResponse> |
undeploy(JobId jobId,
String host,
String token) |
com.google.common.util.concurrent.ListenableFuture<VersionResponse> |
version() |
public void close()
close in interface AutoCloseablepublic com.google.common.util.concurrent.ListenableFuture<JobDeployResponse> deploy(Deployment job, String host)
public com.google.common.util.concurrent.ListenableFuture<JobDeployResponse> deploy(Deployment job, String host, String token)
public com.google.common.util.concurrent.ListenableFuture<SetGoalResponse> setGoal(Deployment job, String host)
public com.google.common.util.concurrent.ListenableFuture<SetGoalResponse> setGoal(Deployment job, String host, String token)
public com.google.common.util.concurrent.ListenableFuture<Deployment> deployment(String host, JobId job)
public com.google.common.util.concurrent.ListenableFuture<HostStatus> hostStatus(String host)
public com.google.common.util.concurrent.ListenableFuture<Map<String,HostStatus>> hostStatuses(List<String> hosts)
public com.google.common.util.concurrent.ListenableFuture<Integer> registerHost(String host, String id)
public com.google.common.util.concurrent.ListenableFuture<JobDeleteResponse> deleteJob(JobId id)
public com.google.common.util.concurrent.ListenableFuture<JobDeleteResponse> deleteJob(JobId id, String token)
public com.google.common.util.concurrent.ListenableFuture<JobUndeployResponse> undeploy(JobId jobId, String host)
public com.google.common.util.concurrent.ListenableFuture<JobUndeployResponse> undeploy(JobId jobId, String host, String token)
public com.google.common.util.concurrent.ListenableFuture<HostDeregisterResponse> deregisterHost(String host)
public com.google.common.util.concurrent.ListenableFuture<VersionResponse> version()
public com.google.common.util.concurrent.ListenableFuture<CreateJobResponse> createJob(Job descriptor)
public com.google.common.util.concurrent.ListenableFuture<TaskStatusEvents> jobHistory(JobId jobId)
public com.google.common.util.concurrent.ListenableFuture<JobStatus> jobStatus(JobId jobId)
public com.google.common.util.concurrent.ListenableFuture<Map<JobId,JobStatus>> jobStatuses(Set<JobId> jobs)
public static HeliosClient.Builder newBuilder()
public static HeliosClient create(String domain, String user)
domain - The target domain.user - The user to identify as.Copyright © 2015. All rights reserved.