public class HostService extends BaseService
| Constructor and Description |
|---|
HostService()
Constructor.
|
HostService(String clusterName)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
createHost(String body,
javax.ws.rs.core.HttpHeaders headers,
javax.ws.rs.core.UriInfo ui,
String hostName)
Handles POST /clusters/{clusterID}/hosts/{hostID}
Create a specific host.
|
javax.ws.rs.core.Response |
createHosts(String body,
javax.ws.rs.core.HttpHeaders headers,
javax.ws.rs.core.UriInfo ui)
Handles POST /clusters/{clusterID}/hosts
Create hosts by specifying an array of hosts in the http body.
|
javax.ws.rs.core.Response |
deleteHost(javax.ws.rs.core.HttpHeaders headers,
javax.ws.rs.core.UriInfo ui,
String hostName)
Handles DELETE /clusters/{clusterID}/hosts/{hostID}
Deletes a specific host.
|
javax.ws.rs.core.Response |
getHost(javax.ws.rs.core.HttpHeaders headers,
javax.ws.rs.core.UriInfo ui,
String hostName)
Handles GET /clusters/{clusterID}/hosts/{hostID} and /hosts/{hostID}
Get a specific host.
|
HostComponentService |
getHostComponentHandler(String hostName)
Get the host_components sub-resource.
|
javax.ws.rs.core.Response |
getHosts(javax.ws.rs.core.HttpHeaders headers,
javax.ws.rs.core.UriInfo ui)
Handles GET /clusters/{clusterID}/hosts and /hosts
Get all hosts for a cluster.
|
javax.ws.rs.core.Response |
updateHost(String body,
javax.ws.rs.core.HttpHeaders headers,
javax.ws.rs.core.UriInfo ui,
String hostName)
Handles PUT /clusters/{clusterID}/hosts/{hostID}
Updates a specific host.
|
javax.ws.rs.core.Response |
updateHosts(String body,
javax.ws.rs.core.HttpHeaders headers,
javax.ws.rs.core.UriInfo ui)
Handles PUT /clusters/{clusterID}/hosts
Updates multiple hosts.
|
getBodyParser, getResultSerializer, handleRequestpublic HostService()
public HostService(String clusterName)
clusterName - cluster idpublic javax.ws.rs.core.Response getHost(@Context
javax.ws.rs.core.HttpHeaders headers,
@Context
javax.ws.rs.core.UriInfo ui,
String hostName)
headers - http headersui - uri infohostName - host idpublic javax.ws.rs.core.Response getHosts(@Context
javax.ws.rs.core.HttpHeaders headers,
@Context
javax.ws.rs.core.UriInfo ui)
headers - http headersui - uri infopublic javax.ws.rs.core.Response createHosts(String body, @Context javax.ws.rs.core.HttpHeaders headers, @Context javax.ws.rs.core.UriInfo ui)
body - http bodyheaders - http headersui - uri infopublic javax.ws.rs.core.Response createHost(String body, @Context javax.ws.rs.core.HttpHeaders headers, @Context javax.ws.rs.core.UriInfo ui, String hostName)
body - http bodyheaders - http headersui - uri infohostName - host idpublic javax.ws.rs.core.Response updateHost(String body, @Context javax.ws.rs.core.HttpHeaders headers, @Context javax.ws.rs.core.UriInfo ui, String hostName)
body - http bodyheaders - http headersui - uri infohostName - host idpublic javax.ws.rs.core.Response updateHosts(String body, @Context javax.ws.rs.core.HttpHeaders headers, @Context javax.ws.rs.core.UriInfo ui)
body - http bodyheaders - http headersui - uri infopublic javax.ws.rs.core.Response deleteHost(@Context
javax.ws.rs.core.HttpHeaders headers,
@Context
javax.ws.rs.core.UriInfo ui,
String hostName)
headers - http headersui - uri infohostName - host idpublic HostComponentService getHostComponentHandler(String hostName)
hostName - host idCopyright © 2016. All rights reserved.