public class ControllerResource extends ApplicationResource
| Modifier and Type | Field and Description |
|---|---|
private WebClusterManager |
clusterManager |
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 |
|---|
ControllerResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
createArchive(javax.servlet.http.HttpServletRequest httpServletRequest,
LongParameter version,
ClientIdParameter clientId)
Creates a new archive of this flow controller.
|
javax.ws.rs.core.Response |
getAboutInfo(ClientIdParameter clientId)
Retrieves details about this NiFi to put in the About dialog.
|
javax.ws.rs.core.Response |
getAuthorities(ClientIdParameter clientId)
Retrieves the user details, including the authorities, about the user
making the request.
|
javax.ws.rs.core.Response |
getBanners(ClientIdParameter clientId)
Retrieves the banners for this NiFi.
|
BulletinBoardResource |
getBulletinBoardResource()
Locates the History sub-resource.
|
javax.ws.rs.core.Response |
getController(ClientIdParameter clientId)
Returns the details of this NiFi.
|
javax.ws.rs.core.Response |
getControllerConfig(ClientIdParameter clientId)
Retrieves the configuration for this NiFi.
|
javax.ws.rs.core.Response |
getControllerHead()
Returns a 200 OK response to indicate this is a valid controller
endpoint.
|
javax.ws.rs.core.Response |
getControllerStatus(ClientIdParameter clientId)
Retrieves the status for this NiFi.
|
javax.ws.rs.core.Response |
getCounters(ClientIdParameter clientId)
Retrieves the counters report for this NiFi.
|
ProcessGroupResource |
getGroupResource(String groupId)
Locates the Group sub-resource.
|
HistoryResource |
getHistoryResource()
Locates the History sub-resource.
|
javax.ws.rs.core.Response |
getPrioritizers(ClientIdParameter clientId)
Retrieves the types of prioritizers that this NiFi supports.
|
javax.ws.rs.core.Response |
getProcessorTypes(ClientIdParameter clientId)
Retrieves the types of processors that this NiFi supports.
|
ProvenanceResource |
getProvenanceResource()
Locates the Provenance sub-resource.
|
javax.ws.rs.core.Response |
getRevision()
Gets current revision of this NiFi.
|
SnippetResource |
getSnippetResource()
Locates the Template sub-resource.
|
TemplateResource |
getTemplateResource()
Locates the Template sub-resource.
|
UserGroupResource |
getUserGroupResource()
Locates the User sub-resource.
|
UserResource |
getUserResource()
Locates the User sub-resource.
|
javax.ws.rs.core.Response |
searchController(String value)
Performs a search request for this controller.
|
void |
setClusterManager(WebClusterManager clusterManager) |
void |
setProperties(NiFiProperties properties) |
void |
setServiceFacade(NiFiServiceFacade serviceFacade) |
javax.ws.rs.core.Response |
updateControllerConfig(javax.servlet.http.HttpServletRequest httpServletRequest,
ControllerConfigurationEntity configEntity)
Update the configuration for this NiFi.
|
javax.ws.rs.core.Response |
updateControllerConfig(javax.servlet.http.HttpServletRequest httpServletRequest,
LongParameter version,
ClientIdParameter clientId,
String name,
String comments,
IntegerParameter maxTimerDrivenThreadCount,
IntegerParameter maxEventDrivenThreadCount)
Update the configuration for this NiFi.
|
javax.ws.rs.core.Response |
updateCounter(javax.servlet.http.HttpServletRequest httpServletRequest,
ClientIdParameter clientId,
String id)
Update the specified counter.
|
clusterContext, generateContinueResponse, generateCreatedResponse, generateOkResponse, generateOkResponse, generateResourceUri, getAbsolutePath, getClusterContextFromRequest, getHeaders, getHeaders, getRequestParameters, getRequestParameters, noCache, updateClientIdprivate NiFiServiceFacade serviceFacade
private WebClusterManager clusterManager
private NiFiProperties properties
@Context private com.sun.jersey.api.core.ResourceContext resourceContext
public ProvenanceResource getProvenanceResource()
public UserResource getUserResource()
public UserGroupResource getUserGroupResource()
public HistoryResource getHistoryResource()
public BulletinBoardResource getBulletinBoardResource()
public TemplateResource getTemplateResource()
public SnippetResource getSnippetResource()
public ProcessGroupResource getGroupResource(String groupId)
groupId - The process group idpublic javax.ws.rs.core.Response getControllerHead()
@PreAuthorize(value="hasRole(\'ROLE_NIFI\')") public javax.ws.rs.core.Response getController(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 searchController(String value)
value - Search string@PreAuthorize(value="hasRole(\'ROLE_DFM\')")
public javax.ws.rs.core.Response createArchive(@Context
javax.servlet.http.HttpServletRequest httpServletRequest,
LongParameter version,
ClientIdParameter clientId)
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.@PreAuthorize(value="hasAnyRole(\'ROLE_MONITOR\', \'ROLE_DFM\', \'ROLE_ADMIN\')") public javax.ws.rs.core.Response getRevision()
@PreAuthorize(value="hasAnyRole(\'ROLE_MONITOR\', \'ROLE_DFM\', \'ROLE_ADMIN\')") public javax.ws.rs.core.Response getControllerStatus(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 getCounters(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 updateCounter(@Context
javax.servlet.http.HttpServletRequest httpServletRequest,
ClientIdParameter clientId,
String id)
httpServletRequest - 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 counter.@PreAuthorize(value="hasAnyRole(\'ROLE_MONITOR\', \'ROLE_DFM\', \'ROLE_ADMIN\', \'ROLE_NIFI\')") public javax.ws.rs.core.Response getControllerConfig(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="hasRole(\'ROLE_DFM\')")
public javax.ws.rs.core.Response updateControllerConfig(@Context
javax.servlet.http.HttpServletRequest httpServletRequest,
LongParameter version,
ClientIdParameter clientId,
String name,
String comments,
IntegerParameter maxTimerDrivenThreadCount,
IntegerParameter maxEventDrivenThreadCount)
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.name - The name of this controller.comments - The comments of this controller.maxTimerDrivenThreadCount - The maximum number of timer driven
threads this controller has available.maxEventDrivenThreadCount - The maximum number of timer driven
threads this controller has available.@PreAuthorize(value="hasRole(\'ROLE_DFM\')")
public javax.ws.rs.core.Response updateControllerConfig(@Context
javax.servlet.http.HttpServletRequest httpServletRequest,
ControllerConfigurationEntity configEntity)
httpServletRequest - configEntity - A controllerConfigurationEntity.@PreAuthorize(value="hasAnyRole(\'ROLE_MONITOR\', \'ROLE_DFM\', \'ROLE_ADMIN\')") public javax.ws.rs.core.Response getAuthorities(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 getBanners(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 getProcessorTypes(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 getPrioritizers(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 getAboutInfo(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 void setServiceFacade(NiFiServiceFacade serviceFacade)
public void setClusterManager(WebClusterManager clusterManager)
public void setProperties(NiFiProperties properties)
Copyright © 2015 Apache NiFi (incubating). All rights reserved.