@Path(value="/hosts") public class HostsResource extends Object
| Constructor and Description |
|---|
HostsResource(MasterModel model) |
public HostsResource(MasterModel model)
@GET @Produces(value="application/json") public List<String> list(@QueryParam(value="namePattern") String namePattern, @QueryParam(value="selector") List<String> hostSelectors)
@PUT
@Path(value="{host}")
@Produces(value="application/json")
public javax.ws.rs.core.Response.Status put(@PathParam(value="host")
String host,
@QueryParam(value="id") @DefaultValue(value="")
String id)
host is the name of the host. It SHOULD be
the hostname of the machine. The id should be a persistent value for the host, but
initially randomly generated. This way we don't have two machines claiming to be the same
host: at least by accident.host - The host to register.id - The randomly generated ID for the host.@DELETE
@Path(value="{id}")
@Produces(value="application/json")
public com.spotify.helios.common.protocol.HostDeregisterResponse delete(@PathParam(value="id")
String host)
host - The host to deregister.@GET
@Path(value="{id}/status")
@Produces(value="application/json")
public com.google.common.base.Optional<com.spotify.helios.common.descriptors.HostStatus> hostStatus(@PathParam(value="id")
String host,
@QueryParam(value="status") @DefaultValue(value="")
String statusFilter)
host - The host id.statusFilter - An optional status filter.@POST @Path(value="/statuses") @Produces(value="application/json") public Map<String,com.spotify.helios.common.descriptors.HostStatus> hostStatuses(List<String> hosts, @QueryParam(value="status") @DefaultValue(value="") String statusFilter)
hosts - The hosts.statusFilter - An optional status filter.@PUT
@Path(value="/{host}/jobs/{job}")
@Produces(value="application/json")
public com.spotify.helios.common.protocol.JobDeployResponse jobPut(@PathParam(value="host")
String host,
@PathParam(value="job")
com.spotify.helios.common.descriptors.JobId jobId,
com.spotify.helios.common.descriptors.Deployment deployment,
String username,
@QueryParam(value="token") @DefaultValue(value="")
String token)
host - The host to deploy to.jobId - The job to deploy.deployment - Deployment information.username - The user deploying.token - The authorization token for this deployment.@DELETE
@Path(value="/{host}/jobs/{job}")
@Produces(value="application/json")
public com.spotify.helios.common.protocol.JobUndeployResponse jobDelete(@PathParam(value="host")
String host,
@PathParam(value="job")
com.spotify.helios.common.descriptors.JobId jobId,
@QueryParam(value="token") @DefaultValue(value="")
String token)
JobId to be undeployed from the specified host.
This call will fail if the host is not found or the job is not deployed on the host.host - The host to undeploy from.jobId - The job to undeploy.token - The authorization token.@Path(value="/{host}/jobs/{job}")
@Produces(value="application/json")
public com.spotify.helios.common.protocol.SetGoalResponse jobPatch(@PathParam(value="host")
String host,
@PathParam(value="job")
com.spotify.helios.common.descriptors.JobId jobId,
com.spotify.helios.common.descriptors.Deployment deployment,
@QueryParam(value="token") @DefaultValue(value="")
String token)
host - The host.jobId - The ID of the job.deployment - The new deployment.token - The authorization token for this job.@GET
@Path(value="/{host}/jobs/{job}")
@Produces(value="application/json")
public com.google.common.base.Optional<com.spotify.helios.common.descriptors.Deployment> jobGet(@PathParam(value="host")
String host,
@PathParam(value="job")
com.spotify.helios.common.descriptors.JobId jobId)
host - The host where the job is deployed.jobId - The ID of the job.Copyright © 2017. All rights reserved.