public class HostComponentService extends BaseService
Modifier and Type | Field and Description |
---|---|
static String |
HOST_ROLE_REQUEST_TYPE |
DATA_TYPE_INT, DATA_TYPE_STRING, DEFAULT_FROM, DEFAULT_PAGE_SIZE, FIELDS_SEPARATOR, MEDIA_TYPE_TEXT_CSV_TYPE, MSG_CLUSTER_NOT_FOUND, MSG_CLUSTER_OR_HOST_NOT_FOUND, MSG_INVALID_ARGUMENTS, MSG_INVALID_REQUEST, MSG_NOT_AUTHENTICATED, MSG_PERMISSION_DENIED, MSG_REQUEST_ACCEPTED, MSG_RESOURCE_ALREADY_EXISTS, MSG_RESOURCE_NOT_FOUND, MSG_SERVER_ERROR, MSG_SUCCESSFUL_OPERATION, MSG_VIEW_NOT_FOUND, PARAM_TYPE_BODY, PARAM_TYPE_QUERY, QUERY_FIELDS, QUERY_FILTER_DESCRIPTION, QUERY_FROM, QUERY_FROM_DESCRIPTION, QUERY_FROM_VALUES, QUERY_PAGE_SIZE, QUERY_PAGE_SIZE_DESCRIPTION, QUERY_PREDICATE, QUERY_PREDICATE_DESCRIPTION, QUERY_SORT, QUERY_SORT_DESCRIPTION, QUERY_TO, QUERY_TO_DESCRIPTION, QUERY_TO_TYPE, QUERY_TO_VALUES, requestAuditLogger, RESPONSE_CONTAINER_LIST
Constructor and Description |
---|
HostComponentService(String clusterName,
String hostName)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
createHostComponent(String body,
javax.ws.rs.core.HttpHeaders headers,
javax.ws.rs.core.UriInfo ui,
String hostComponentName)
Handles POST /clusters/{clusterID}/hosts/{hostID}/host_components/{hostComponentID}
Create a specific host_component.
|
javax.ws.rs.core.Response |
createHostComponents(String body,
javax.ws.rs.core.HttpHeaders headers,
javax.ws.rs.core.UriInfo ui)
Handles POST /clusters/{clusterID}/hosts/{hostID}/host_components
Create host components by specifying an array of host components in the http body.
|
javax.ws.rs.core.Response |
deleteHostComponent(javax.ws.rs.core.HttpHeaders headers,
javax.ws.rs.core.UriInfo ui,
String hostComponentName)
Handles DELETE /clusters/{clusterID}/hosts/{hostID}/host_components/{hostComponentID}
Delete a specific host_component.
|
javax.ws.rs.core.Response |
deleteHostComponents(String body,
javax.ws.rs.core.HttpHeaders headers,
javax.ws.rs.core.UriInfo ui)
Handles DELETE /clusters/{clusterID}/hosts/{hostID}/host_components
Deletes multiple host_component resources.
|
javax.ws.rs.core.Response |
getHostComponent(String body,
javax.ws.rs.core.HttpHeaders headers,
javax.ws.rs.core.UriInfo ui,
String hostComponentName,
String format)
Handles GET /clusters/{clusterID}/hosts/{hostID}/host_components/{hostComponentID}
Get a specific host_component.
|
javax.ws.rs.core.Response |
getHostComponents(String body,
javax.ws.rs.core.HttpHeaders headers,
javax.ws.rs.core.UriInfo ui,
String format)
Handles GET /clusters/{clusterID}/hosts/{hostID}/host_components/
Get all host components for a host.
|
javax.ws.rs.core.Response |
getProcesses(javax.ws.rs.core.HttpHeaders headers,
javax.ws.rs.core.UriInfo ui,
String hostComponentName) |
javax.ws.rs.core.Response |
updateHostComponent(String body,
javax.ws.rs.core.HttpHeaders headers,
javax.ws.rs.core.UriInfo ui,
String hostComponentName)
Handles PUT /clusters/{clusterID}/hosts/{hostID}/host_components/{hostComponentID}
Updates a specific host_component.
|
javax.ws.rs.core.Response |
updateHostComponents(String body,
javax.ws.rs.core.HttpHeaders headers,
javax.ws.rs.core.UriInfo ui)
Handles PUT /clusters/{clusterID}/hosts/{hostID}/host_components
Updates multiple host_component resources.
|
createResource, getBodyParser, getResultSerializer, getResultSerializer, handleRequest, handleRequest, init
public static final String HOST_ROLE_REQUEST_TYPE
public javax.ws.rs.core.Response getHostComponent(String body, @Context javax.ws.rs.core.HttpHeaders headers, @Context javax.ws.rs.core.UriInfo ui, String hostComponentName, String format)
headers
- http headersui
- uri infohostComponentName
- host_component idpublic javax.ws.rs.core.Response getHostComponents(String body, @Context javax.ws.rs.core.HttpHeaders headers, @Context javax.ws.rs.core.UriInfo ui, String format)
headers
- http headersui
- uri infopublic javax.ws.rs.core.Response createHostComponents(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 createHostComponent(String body, @Context javax.ws.rs.core.HttpHeaders headers, @Context javax.ws.rs.core.UriInfo ui, String hostComponentName)
body
- http bodyheaders
- http headersui
- uri infohostComponentName
- host_component idpublic javax.ws.rs.core.Response updateHostComponent(String body, @Context javax.ws.rs.core.HttpHeaders headers, @Context javax.ws.rs.core.UriInfo ui, String hostComponentName)
body
- http bodyheaders
- http headersui
- uri infohostComponentName
- host_component idpublic javax.ws.rs.core.Response updateHostComponents(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 deleteHostComponent(@Context javax.ws.rs.core.HttpHeaders headers, @Context javax.ws.rs.core.UriInfo ui, String hostComponentName)
headers
- http headersui
- uri infohostComponentName
- host_component idpublic javax.ws.rs.core.Response deleteHostComponents(String body, @Context javax.ws.rs.core.HttpHeaders headers, @Context javax.ws.rs.core.UriInfo ui)
headers
- http headersui
- uri infopublic javax.ws.rs.core.Response getProcesses(@Context javax.ws.rs.core.HttpHeaders headers, @Context javax.ws.rs.core.UriInfo ui, String hostComponentName)
Copyright © 2022 Apache Software Foundation. All rights reserved.