public class ClusterResource extends ApplicationResource
| Modifier and Type | Field and Description |
|---|---|
private NiFiProperties |
properties |
private com.sun.jersey.api.core.ResourceContext |
resourceContext |
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 |
|---|
ClusterResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
getCluster(ClientIdParameter clientId)
Gets the contents of this NiFi cluster.
|
javax.ws.rs.core.Response |
getClusterHead()
Returns a 200 OK response to indicate this is a valid cluster endpoint.
|
javax.ws.rs.core.Response |
getClusterStatus(ClientIdParameter clientId)
Gets the status of this NiFi cluster.
|
javax.ws.rs.core.Response |
getConnectionStatus(ClientIdParameter clientId,
String id)
Gets the connection status for every node.
|
javax.ws.rs.core.Response |
getConnectionStatusHistory(ClientIdParameter clientId,
String id)
Gets the connections status history for every node.
|
javax.ws.rs.core.Response |
getInputPortStatus(ClientIdParameter clientId,
String id)
Gets the input port status for every node.
|
NodeResource |
getNodeResource()
Locates the ClusterConnection sub-resource.
|
javax.ws.rs.core.Response |
getOutputPortStatus(ClientIdParameter clientId,
String id)
Gets the output port status for every node.
|
javax.ws.rs.core.Response |
getProcessGroupStatusHistory(ClientIdParameter clientId,
String id)
Gets the process group status history for every node.
|
javax.ws.rs.core.Response |
getProcessor(ClientIdParameter clientId,
String id)
Gets the processor.
|
javax.ws.rs.core.Response |
getProcessorStatus(ClientIdParameter clientId,
String id)
Gets the processor status for every node.
|
javax.ws.rs.core.Response |
getProcessorStatusHistory(ClientIdParameter clientId,
String id)
Gets the processor status history for every node.
|
javax.ws.rs.core.Response |
getRemoteProcessGroupStatus(ClientIdParameter clientId,
String id)
Gets the remote process group status for every node.
|
javax.ws.rs.core.Response |
getRemoteProcessGroupStatusHistory(ClientIdParameter clientId,
String id)
Gets the remote process group status history for every node.
|
javax.ws.rs.core.Response |
searchCluster(String value)
Searches the cluster for a node with a given address.
|
void |
setProperties(NiFiProperties properties) |
void |
setServiceFacade(NiFiServiceFacade serviceFacade) |
javax.ws.rs.core.Response |
updateProcessor(javax.servlet.http.HttpServletRequest httpServletRequest,
LongParameter version,
ClientIdParameter clientId,
String processorId,
String annotationData)
Updates the processors annotation data.
|
javax.ws.rs.core.Response |
updateProcessor(javax.servlet.http.HttpServletRequest httpServletRequest,
String processorId,
ProcessorEntity processorEntity)
Updates the processors annotation data.
|
clusterContext, generateContinueResponse, generateCreatedResponse, generateOkResponse, generateOkResponse, generateResourceUri, getAbsolutePath, getClusterContextFromRequest, getHeaders, getHeaders, getRequestParameters, getRequestParameters, noCache, updateClientId@Context private com.sun.jersey.api.core.ResourceContext resourceContext
private NiFiServiceFacade serviceFacade
private NiFiProperties properties
public NodeResource getNodeResource()
@PreAuthorize(value="hasAnyRole(\'ROLE_MONITOR\', \'ROLE_DFM\', \'ROLE_ADMIN\')") public javax.ws.rs.core.Response getClusterStatus(ClientIdParameter clientId)
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.public javax.ws.rs.core.Response getClusterHead()
@PreAuthorize(value="hasAnyRole(\'ROLE_MONITOR\', \'ROLE_DFM\', \'ROLE_ADMIN\')") public javax.ws.rs.core.Response getCluster(ClientIdParameter clientId)
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.@PreAuthorize(value="hasAnyRole(\'ROLE_MONITOR\', \'ROLE_DFM\', \'ROLE_ADMIN\')") public javax.ws.rs.core.Response searchCluster(String value)
value - Search value that will be matched against a node's address@PreAuthorize(value="hasAnyRole(\'ROLE_MONITOR\', \'ROLE_DFM\', \'ROLE_ADMIN\')") public javax.ws.rs.core.Response getProcessor(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 processor@PreAuthorize(value="hasAnyRole(\'ROLE_DFM\')")
public javax.ws.rs.core.Response updateProcessor(@Context
javax.servlet.http.HttpServletRequest httpServletRequest,
LongParameter version,
ClientIdParameter clientId,
String processorId,
String annotationData)
httpServletRequest - version - The revision is used to verify the client is working with
the latest version of the flow.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.processorId - The id of the processor.annotationData - The annotation data to set.@PreAuthorize(value="hasAnyRole(\'ROLE_DFM\')")
public javax.ws.rs.core.Response updateProcessor(@Context
javax.servlet.http.HttpServletRequest httpServletRequest,
String processorId,
ProcessorEntity processorEntity)
httpServletRequest - processorId - The id of the processor.processorEntity - A processorEntity.@PreAuthorize(value="hasAnyRole(\'ROLE_MONITOR\', \'ROLE_DFM\', \'ROLE_ADMIN\')") public javax.ws.rs.core.Response getProcessorStatus(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 processor@PreAuthorize(value="hasAnyRole(\'ROLE_MONITOR\', \'ROLE_DFM\', \'ROLE_ADMIN\')") public javax.ws.rs.core.Response getProcessorStatusHistory(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 processor@PreAuthorize(value="hasAnyRole(\'ROLE_MONITOR\', \'ROLE_DFM\', \'ROLE_ADMIN\')") public javax.ws.rs.core.Response getConnectionStatus(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 processor@PreAuthorize(value="hasAnyRole(\'ROLE_MONITOR\', \'ROLE_DFM\', \'ROLE_ADMIN\')") public javax.ws.rs.core.Response getConnectionStatusHistory(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 processor@PreAuthorize(value="hasAnyRole(\'ROLE_MONITOR\', \'ROLE_DFM\', \'ROLE_ADMIN\')") public javax.ws.rs.core.Response getProcessGroupStatusHistory(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 process group@PreAuthorize(value="hasAnyRole(\'ROLE_MONITOR\', \'ROLE_DFM\', \'ROLE_ADMIN\')") public javax.ws.rs.core.Response getRemoteProcessGroupStatus(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 remote process group@PreAuthorize(value="hasAnyRole(\'ROLE_MONITOR\', \'ROLE_DFM\', \'ROLE_ADMIN\')") public javax.ws.rs.core.Response getInputPortStatus(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 input port@PreAuthorize(value="hasAnyRole(\'ROLE_MONITOR\', \'ROLE_DFM\', \'ROLE_ADMIN\')") public javax.ws.rs.core.Response getOutputPortStatus(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 output port@PreAuthorize(value="hasAnyRole(\'ROLE_MONITOR\', \'ROLE_DFM\', \'ROLE_ADMIN\')") public javax.ws.rs.core.Response getRemoteProcessGroupStatusHistory(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 processorpublic void setServiceFacade(NiFiServiceFacade serviceFacade)
public void setProperties(NiFiProperties properties)
Copyright © 2015 Apache NiFi (incubating). All rights reserved.