public class ProcessorResource extends ApplicationResource
ApplicationResource.ReplicationTarget, ApplicationResource.ResponseCreator
CLIENT_ID, FORWARDED_CONTEXT_HTTP_HEADER, FORWARDED_HOST_HTTP_HEADER, FORWARDED_PORT_HTTP_HEADER, FORWARDED_PROTO_HTTP_HEADER, NODEWISE, NON_GUARANTEED_ENDPOINT, properties, PROXY_CONTEXT_PATH_HTTP_HEADER, PROXY_HOST_HTTP_HEADER, PROXY_PORT_HTTP_HEADER, PROXY_SCHEME_HTTP_HEADER, VERSION
Constructor and Description |
---|
ProcessorResource() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
clearState(javax.servlet.http.HttpServletRequest httpServletRequest,
java.lang.String id)
Clears the state for a processor.
|
javax.ws.rs.core.Response |
deleteProcessor(javax.servlet.http.HttpServletRequest httpServletRequest,
LongParameter version,
ClientIdParameter clientId,
java.lang.String id)
Removes the specified processor.
|
javax.ws.rs.core.Response |
getProcessor(java.lang.String id)
Retrieves the specified processor.
|
javax.ws.rs.core.Response |
getPropertyDescriptor(ClientIdParameter clientId,
java.lang.String id,
java.lang.String propertyName)
Returns the descriptor for the specified property.
|
javax.ws.rs.core.Response |
getState(java.lang.String id)
Gets the state for a processor.
|
ProcessorDTO |
populateRemainingProcessorContent(ProcessorDTO processor)
Populate the uri's for the specified processor and its relationships.
|
java.util.Set<ProcessorEntity> |
populateRemainingProcessorEntitiesContent(java.util.Set<ProcessorEntity> processorEntities)
Populate the uri's for the specified processors and their relationships.
|
ProcessorEntity |
populateRemainingProcessorEntityContent(ProcessorEntity processorEntity)
Populate the uri's for the specified processors and their relationships.
|
void |
setAuthorizer(Authorizer authorizer) |
void |
setServiceFacade(NiFiServiceFacade serviceFacade) |
javax.ws.rs.core.Response |
updateProcessor(javax.servlet.http.HttpServletRequest httpServletRequest,
java.lang.String id,
ProcessorEntity requestProcessorEntity)
Updates the specified processor with the specified values.
|
authorizeProcessGroup, authorizeSnippet, generateContinueResponse, generateCreatedResponse, generateNotAuthorizedResponse, generateOkResponse, generateOkResponse, generateResourceUri, generateUuid, getAbsolutePath, getClusterCoordinator, getClusterCoordinatorNode, getHeaders, getHeaders, getIdGenerationSeed, getProperties, getReplicationTarget, getRequestParameters, getRequestReplicator, getRequestUri, getRevision, getRevision, isCancellationPhase, isExecutionPhase, isTwoPhaseRequest, isValidationPhase, negotiateTransportProtocolVersion, noCache, replicate, replicate, replicate, replicate, replicate, replicate, replicate, replicate, replicate, replicateNodeResponse, replicateNodeResponse, replicateNodeResponse, replicateToCoordinator, setClusterCoordinator, setCommonHeaders, setFlowController, setProperties, setRequestReplicator, withWriteLock, withWriteLock, withWriteLock
public java.util.Set<ProcessorEntity> populateRemainingProcessorEntitiesContent(java.util.Set<ProcessorEntity> processorEntities)
processorEntities
- processorspublic ProcessorEntity populateRemainingProcessorEntityContent(ProcessorEntity processorEntity)
processorEntity
- processorspublic ProcessorDTO populateRemainingProcessorContent(ProcessorDTO processor)
public javax.ws.rs.core.Response getProcessor(java.lang.String id) throws java.lang.InterruptedException
id
- The id of the processor to retrieve.java.lang.InterruptedException
- if interruptedpublic javax.ws.rs.core.Response getPropertyDescriptor(ClientIdParameter clientId, java.lang.String id, java.lang.String propertyName) throws java.lang.InterruptedException
id
- The id of the processorpropertyName
- The propertyjava.lang.InterruptedException
- if interruptedpublic javax.ws.rs.core.Response getState(java.lang.String id) throws java.lang.InterruptedException
id
- The id of the processorjava.lang.InterruptedException
- if interruptedpublic javax.ws.rs.core.Response clearState(@Context javax.servlet.http.HttpServletRequest httpServletRequest, java.lang.String id) throws java.lang.InterruptedException
httpServletRequest
- servlet requestid
- The id of the processorjava.lang.InterruptedException
- if interruptedpublic javax.ws.rs.core.Response updateProcessor(@Context javax.servlet.http.HttpServletRequest httpServletRequest, java.lang.String id, ProcessorEntity requestProcessorEntity) throws java.lang.InterruptedException
httpServletRequest
- requestid
- The id of the processor to update.requestProcessorEntity
- A processorEntity.java.lang.InterruptedException
- if interruptedpublic javax.ws.rs.core.Response deleteProcessor(@Context javax.servlet.http.HttpServletRequest httpServletRequest, LongParameter version, ClientIdParameter clientId, java.lang.String id) throws java.lang.InterruptedException
httpServletRequest
- requestversion
- 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 processor to remove.java.lang.InterruptedException
- if interruptedpublic void setServiceFacade(NiFiServiceFacade serviceFacade)
public void setAuthorizer(Authorizer authorizer)