public class NodeResource extends ApplicationResource
| Modifier and Type | Field and Description |
|---|---|
private NiFiProperties |
properties |
private NiFiServiceFacade |
serviceFacade |
CLIENT_ID, CLUSTER_CONTEXT_HTTP_HEADER, PROXIED_ENTITIES_CHAIN_HTTP_HEADER, PROXIED_ENTITY_USER_DETAILS_HTTP_HEADER, PROXY_CONTEXT_PATH_HTTP_HEADER, PROXY_HOST_HTTP_HEADER, PROXY_PORT_HTTP_HEADER, PROXY_SCHEME_HTTP_HEADER, VERSION| Constructor and Description |
|---|
NodeResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
deleteNode(ClientIdParameter clientId,
String id)
Removes the specified from this NiFi cluster.
|
javax.ws.rs.core.Response |
getNode(ClientIdParameter clientId,
String id)
Gets the contents of the specified node in this NiFi cluster.
|
javax.ws.rs.core.Response |
getNodeStatus(ClientIdParameter clientId,
String id)
Gets the status for the specified node.
|
javax.ws.rs.core.Response |
getNodeSystemDiagnostics(ClientIdParameter clientId,
String id)
Gets the system diagnositics for the specified node.
|
void |
setProperties(NiFiProperties properties) |
void |
setServiceFacade(NiFiServiceFacade serviceFacade) |
javax.ws.rs.core.Response |
updateNode(ClientIdParameter clientId,
String id,
String status,
Boolean primary)
Updates the contents of the specified node in this NiFi cluster.
|
javax.ws.rs.core.Response |
updateNode(String id,
NodeEntity nodeEntity)
Updates the contents of the specified node in this NiFi cluster.
|
clusterContext, generateContinueResponse, generateCreatedResponse, generateOkResponse, generateOkResponse, generateResourceUri, getAbsolutePath, getClusterContextFromRequest, getHeaders, getHeaders, getRequestParameters, getRequestParameters, noCache, updateClientIdprivate NiFiServiceFacade serviceFacade
private NiFiProperties properties
@PreAuthorize(value="hasAnyRole(\'ROLE_MONITOR\', \'ROLE_DFM\', \'ROLE_ADMIN\')") public javax.ws.rs.core.Response getNode(ClientIdParameter clientId, String id)
clientId - Optional client id. If the client id is not specified, a
new one will be generated. This value (whether specified or generated) is
included in the response.id - The node id.@PreAuthorize(value="hasAnyRole(\'ROLE_MONITOR\', \'ROLE_DFM\', \'ROLE_ADMIN\')") public javax.ws.rs.core.Response getNodeStatus(ClientIdParameter clientId, String id)
clientId - Optional client id. If the client id is not specified, a
new one will be generated. This value (whether specified or generated) is
included in the response.id - The id of the node.@PreAuthorize(value="hasAnyRole(\'ROLE_MONITOR\', \'ROLE_DFM\', \'ROLE_ADMIN\')") public javax.ws.rs.core.Response getNodeSystemDiagnostics(ClientIdParameter clientId, String id)
clientId - Optional client id. If the client id is not specified, a
new one will be generated. This value (whether specified or generated) is
included in the response.id - The id of the node.@PreAuthorize(value="hasAnyRole(\'ROLE_ADMIN\')") public javax.ws.rs.core.Response updateNode(ClientIdParameter clientId, String id, String status, Boolean primary)
clientId - Optional client id. If the client id is not specified, a
new one will be generated. This value (whether specified or generated) is
included in the response.id - The id of the node.status - The status of the node.primary - Whether the node should be make primary.@PreAuthorize(value="hasAnyRole(\'ROLE_ADMIN\')") public javax.ws.rs.core.Response updateNode(String id, NodeEntity nodeEntity)
id - The id of the nodenodeEntity - A nodeEntity@PreAuthorize(value="hasAnyRole(\'ROLE_ADMIN\')") public javax.ws.rs.core.Response deleteNode(ClientIdParameter clientId, String id)
clientId - Optional client id. If the client id is not specified, a
new one will be generated. This value (whether specified or generated) is
included in the response.id - The id of the nodepublic void setServiceFacade(NiFiServiceFacade serviceFacade)
public void setProperties(NiFiProperties properties)
Copyright © 2015 Apache NiFi (incubating). All rights reserved.