public class ProcessGroupResource extends ApplicationResource
| Modifier and Type | Field and Description |
|---|---|
private WebClusterManager |
clusterManager |
private String |
groupId |
private NiFiProperties |
properties |
private static String |
RECURSIVE |
private com.sun.jersey.api.core.ResourceContext |
resourceContext |
private NiFiServiceFacade |
serviceFacade |
private static String |
VERBOSE |
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 |
|---|
ProcessGroupResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
copySnippet(javax.servlet.http.HttpServletRequest httpServletRequest,
LongParameter version,
ClientIdParameter clientId,
String snippetId,
DoubleParameter originX,
DoubleParameter originY)
Copies the specified snippet within this ProcessGroup.
|
javax.ws.rs.core.Response |
createProcessGroupReference(javax.servlet.http.HttpServletRequest httpServletRequest,
LongParameter version,
ClientIdParameter clientId,
String name,
DoubleParameter x,
DoubleParameter y)
Adds the specified process group.
|
javax.ws.rs.core.Response |
createProcessGroupReference(javax.servlet.http.HttpServletRequest httpServletRequest,
ProcessGroupEntity processGroupEntity)
Adds the specified process group.
|
ConnectionResource |
getConnectionResource()
Get the connection sub-resource within the specified group.
|
FunnelResource |
getFunnelResource()
Locates the funnel sub-resource within the specified group.
|
InputPortResource |
getInputPortResource()
Get the input ports sub-resource within the specified group.
|
LabelResource |
getLabelResource()
Locates the label sub-resource within the specified group.
|
OutputPortResource |
getOutputPortResource()
Get the output ports sub-resource within the specified group.
|
javax.ws.rs.core.Response |
getProcessGroup(ClientIdParameter clientId,
Boolean recursive,
Boolean verbose)
Retrieves the content of the specified group.
|
javax.ws.rs.core.Response |
getProcessGroup(ClientIdParameter clientId,
String processGroupReferenceId,
Boolean recursive,
Boolean verbose)
Retrieves the contents of the specified group.
|
javax.ws.rs.core.Response |
getProcessGroupReferences(ClientIdParameter clientId,
Boolean verbose)
Retrieves the content of the specified group reference.
|
private String |
getProcessGroupReferenceUri(ProcessGroupDTO processGroup)
Generates a URI for a process group reference.
|
javax.ws.rs.core.Response |
getProcessGroupStatus(ClientIdParameter clientId,
Boolean recursive)
Retrieves the status report for this NiFi.
|
javax.ws.rs.core.Response |
getProcessGroupStatusHistory(ClientIdParameter clientId)
Retrieves the specified remote process groups status history.
|
private String |
getProcessGroupUri(String processGroupId)
Generates a URI for a process group.
|
ProcessorResource |
getProcessorResource()
Get the processor resource within the specified group.
|
RemoteProcessGroupResource |
getRemoteProcessGroupResource()
Locates the remote process group sub-resource within the specified group.
|
javax.ws.rs.core.Response |
instantiateTemplate(javax.servlet.http.HttpServletRequest httpServletRequest,
LongParameter version,
ClientIdParameter clientId,
String templateId,
DoubleParameter originX,
DoubleParameter originY)
Instantiates the specified template within this ProcessGroup.
|
private ProcessGroupDTO |
populateRemainingProcessGroupContent(ProcessGroupDTO processGroup,
String processGroupUri)
Populates the remaining fields in the specified process group.
|
Set<ProcessGroupDTO> |
populateRemainingProcessGroupsContent(Set<ProcessGroupDTO> processGroups)
Populates the remaining fields in the specified process groups.
|
private FlowSnippetDTO |
populateRemainingSnippetContent(FlowSnippetDTO snippet)
Populates the remaining content of the specified snippet.
|
javax.ws.rs.core.Response |
removeProcessGroupReference(javax.servlet.http.HttpServletRequest httpServletRequest,
LongParameter version,
ClientIdParameter clientId,
String id)
Removes the specified process group reference.
|
void |
setClusterManager(WebClusterManager clusterManager) |
void |
setGroupId(String groupId) |
void |
setProperties(NiFiProperties properties) |
void |
setServiceFacade(NiFiServiceFacade serviceFacade) |
javax.ws.rs.core.Response |
updateProcessGroup(javax.servlet.http.HttpServletRequest httpServletRequest,
LongParameter version,
ClientIdParameter clientId,
Boolean running)
Updates the state of all processors in the process group.
|
javax.ws.rs.core.Response |
updateProcessGroup(javax.servlet.http.HttpServletRequest httpServletRequest,
ProcessGroupEntity processGroupEntity)
Updates the state of all processors in the process group.
|
javax.ws.rs.core.Response |
updateProcessGroupReference(javax.servlet.http.HttpServletRequest httpServletRequest,
LongParameter version,
ClientIdParameter clientId,
String id,
String name,
String comments,
Boolean running,
DoubleParameter x,
DoubleParameter y)
Updates the specified process group.
|
javax.ws.rs.core.Response |
updateProcessGroupReference(javax.servlet.http.HttpServletRequest httpServletRequest,
String id,
ProcessGroupEntity processGroupEntity)
Updates the specified process group.
|
clusterContext, generateContinueResponse, generateCreatedResponse, generateOkResponse, generateOkResponse, generateResourceUri, getAbsolutePath, getClusterContextFromRequest, getHeaders, getHeaders, getRequestParameters, getRequestParameters, noCache, updateClientIdprivate static final String VERBOSE
private static final String RECURSIVE
@Context private com.sun.jersey.api.core.ResourceContext resourceContext
private NiFiServiceFacade serviceFacade
private WebClusterManager clusterManager
private NiFiProperties properties
private String groupId
public ProcessorResource getProcessorResource()
public ConnectionResource getConnectionResource()
public InputPortResource getInputPortResource()
public OutputPortResource getOutputPortResource()
public LabelResource getLabelResource()
public FunnelResource getFunnelResource()
public RemoteProcessGroupResource getRemoteProcessGroupResource()
public Set<ProcessGroupDTO> populateRemainingProcessGroupsContent(Set<ProcessGroupDTO> processGroups)
processGroups - private ProcessGroupDTO populateRemainingProcessGroupContent(ProcessGroupDTO processGroup, String processGroupUri)
processGroup - verbose - private FlowSnippetDTO populateRemainingSnippetContent(FlowSnippetDTO snippet)
snippet - private String getProcessGroupUri(String processGroupId)
processGroupId - private String getProcessGroupReferenceUri(ProcessGroupDTO processGroup)
processGroupId - @PreAuthorize(value="hasAnyRole(\'ROLE_MONITOR\', \'ROLE_DFM\', \'ROLE_ADMIN\')") public javax.ws.rs.core.Response getProcessGroup(ClientIdParameter clientId, Boolean recursive, Boolean verbose)
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.recursive - Optional recursive flag that defaults to false. If set
to true, all descendent groups and their content will be included if the
verbose flag is also set to true.verbose - Optional verbose flag that defaults to false. If the
verbose flag is set to true processor configuration and property details
will be included in the response.@PreAuthorize(value="hasRole(\'ROLE_DFM\')")
public javax.ws.rs.core.Response copySnippet(@Context
javax.servlet.http.HttpServletRequest httpServletRequest,
LongParameter version,
ClientIdParameter clientId,
String snippetId,
DoubleParameter originX,
DoubleParameter originY)
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.snippetId - The id of the snippet to copy.originX - The x coordinate of the origin of the bounding box.originY - The y coordinate of the origin of the bounding box.@PreAuthorize(value="hasRole(\'ROLE_DFM\')")
public javax.ws.rs.core.Response instantiateTemplate(@Context
javax.servlet.http.HttpServletRequest httpServletRequest,
LongParameter version,
ClientIdParameter clientId,
String templateId,
DoubleParameter originX,
DoubleParameter originY)
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.templateId - The id of the template to instantiate.originX - The x coordinate of the origin of the bounding box.originY - The y coordinate of the origin of the bounding box.@PreAuthorize(value="hasRole(\'ROLE_DFM\')")
public javax.ws.rs.core.Response updateProcessGroup(@Context
javax.servlet.http.HttpServletRequest httpServletRequest,
LongParameter version,
ClientIdParameter clientId,
Boolean running)
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.running - Optional flag that indicates whether all processors in
this group should be started/stopped.@PreAuthorize(value="hasRole(\'ROLE_DFM\')")
public javax.ws.rs.core.Response updateProcessGroup(@Context
javax.servlet.http.HttpServletRequest httpServletRequest,
ProcessGroupEntity processGroupEntity)
httpServletRequest - processGroupEntity - A processGroupEntity@PreAuthorize(value="hasAnyRole(\'ROLE_MONITOR\', \'ROLE_DFM\', \'ROLE_ADMIN\')") public javax.ws.rs.core.Response getProcessGroup(ClientIdParameter clientId, String processGroupReferenceId, Boolean recursive, Boolean verbose)
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.recursive - Optional recursive flag that defaults to false. If set
to true, all descendent groups and their content will be included if the
verbose flag is also set to true.processGroupReferenceId - The id of the process group.verbose - Optional verbose flag that defaults to false. If the
verbose flag is set to true processor configuration and property details
will be included in the response.@PreAuthorize(value="hasAnyRole(\'ROLE_MONITOR\', \'ROLE_DFM\', \'ROLE_ADMIN\')") public javax.ws.rs.core.Response getProcessGroupReferences(ClientIdParameter clientId, Boolean verbose)
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.verbose - Optional verbose flag that defaults to false. If the
verbose flag is set to true processor configuration and property details
will be included in the response.@PreAuthorize(value="hasRole(\'ROLE_DFM\')")
public javax.ws.rs.core.Response createProcessGroupReference(@Context
javax.servlet.http.HttpServletRequest httpServletRequest,
LongParameter version,
ClientIdParameter clientId,
String name,
DoubleParameter x,
DoubleParameter y)
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 the process groupx - The x coordinate for this funnels position.y - The y coordinate for this funnels position.@PreAuthorize(value="hasRole(\'ROLE_DFM\')")
public javax.ws.rs.core.Response createProcessGroupReference(@Context
javax.servlet.http.HttpServletRequest httpServletRequest,
ProcessGroupEntity processGroupEntity)
httpServletRequest - processGroupEntity - A processGroupEntity@PreAuthorize(value="hasRole(\'ROLE_DFM\')")
public javax.ws.rs.core.Response updateProcessGroupReference(@Context
javax.servlet.http.HttpServletRequest httpServletRequest,
LongParameter version,
ClientIdParameter clientId,
String id,
String name,
String comments,
Boolean running,
DoubleParameter x,
DoubleParameter y)
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.id - The id of the process groupname - The name of the process group.comments - The comments for the process group.running - Optional flag that indicates whether all processors should
be started/stopped.x - The x coordinate for this funnels position.y - The y coordinate for this funnels position.@PreAuthorize(value="hasRole(\'ROLE_DFM\')")
public javax.ws.rs.core.Response updateProcessGroupReference(@Context
javax.servlet.http.HttpServletRequest httpServletRequest,
String id,
ProcessGroupEntity processGroupEntity)
httpServletRequest - id - The id of the process group.processGroupEntity - A processGroupEntity.@PreAuthorize(value="hasRole(\'ROLE_DFM\')")
public javax.ws.rs.core.Response removeProcessGroupReference(@Context
javax.servlet.http.HttpServletRequest httpServletRequest,
LongParameter version,
ClientIdParameter clientId,
String id)
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.id - The id of the process group to be removed.@PreAuthorize(value="hasAnyRole(\'ROLE_MONITOR\', \'ROLE_DFM\', \'ROLE_ADMIN\', \'ROLE_NIFI\')") public javax.ws.rs.core.Response getProcessGroupStatus(ClientIdParameter clientId, Boolean recursive)
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.recursive - Optional recursive flag that defaults to false. If set
to true, all descendent groups and their content will be included if the
verbose flag is also set to true.@PreAuthorize(value="hasAnyRole(\'ROLE_MONITOR\', \'ROLE_DFM\', \'ROLE_ADMIN\')") public javax.ws.rs.core.Response getProcessGroupStatusHistory(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 setGroupId(String groupId)
public void setClusterManager(WebClusterManager clusterManager)
public void setProperties(NiFiProperties properties)
Copyright © 2015 Apache NiFi (incubating). All rights reserved.