public class ProvenanceResource extends ApplicationResource
| Modifier and Type | Field and Description |
|---|---|
private WebClusterManager |
clusterManager |
private static org.slf4j.Logger |
logger |
private static int |
MAX_MAX_RESULTS |
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 |
|---|
ProvenanceResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
deleteLineage(javax.servlet.http.HttpServletRequest httpServletRequest,
ClientIdParameter clientId,
String clusterNodeId,
String id)
Deletes the lineage with the specified id.
|
javax.ws.rs.core.Response |
deleteProvenance(javax.servlet.http.HttpServletRequest httpServletRequest,
ClientIdParameter clientId,
String clusterNodeId,
String id)
Deletes the provenance with the specified id.
|
javax.ws.rs.core.Response |
getInputContent(ClientIdParameter clientId,
String clusterNodeId,
LongParameter id)
Gets the content for the input of the specified event.
|
javax.ws.rs.core.Response |
getLineage(ClientIdParameter clientId,
String clusterNodeId,
String id)
Gets the lineage with the specified id.
|
javax.ws.rs.core.Response |
getOutputContent(ClientIdParameter clientId,
String clusterNodeId,
LongParameter id)
Gets the content for the output of the specified event.
|
javax.ws.rs.core.Response |
getProvenance(ClientIdParameter clientId,
String clusterNodeId,
String id)
Gets the provenance with the specified id.
|
javax.ws.rs.core.Response |
getProvenanceEvent(ClientIdParameter clientId,
String clusterNodeId,
LongParameter id)
Gets the details for a provenance event.
|
javax.ws.rs.core.Response |
getSearchOptions(ClientIdParameter clientId)
Gets the provenance search options for this NiFi.
|
private LineageDTO |
populateRemainingLineageContent(LineageDTO lineage)
Populates the uri for the specified lineage.
|
private ProvenanceDTO |
populateRemainingProvenanceContent(ProvenanceDTO provenance)
Populates the uri for the specified provenance.
|
void |
setClusterManager(WebClusterManager clusterManager) |
void |
setProperties(NiFiProperties properties) |
void |
setServiceFacade(NiFiServiceFacade serviceFacade) |
javax.ws.rs.core.Response |
submitLineageRequest(javax.servlet.http.HttpServletRequest httpServletRequest,
ClientIdParameter clientId,
String lineageRequest,
LongParameter eventId,
String uuid,
String clusterNodeId)
Submits a lineage request based on an event or a flowfile uuid.
|
javax.ws.rs.core.Response |
submitLineageRequest(javax.servlet.http.HttpServletRequest httpServletRequest,
LineageEntity lineageEntity)
Submits a lineage request based on an event or a flowfile uuid.
|
javax.ws.rs.core.Response |
submitProvenanceRequest(javax.servlet.http.HttpServletRequest httpServletRequest,
ClientIdParameter clientId,
DateTimeParameter startDate,
DateTimeParameter endDate,
String minimumFileSize,
String maximumFileSize,
IntegerParameter maxResults,
String clusterNodeId,
javax.ws.rs.core.MultivaluedMap<String,String> formParams)
Creates provenance using the specified query criteria.
|
javax.ws.rs.core.Response |
submitProvenanceRequest(javax.servlet.http.HttpServletRequest httpServletRequest,
ProvenanceEntity provenanceEntity)
Creates provenance using the specified query criteria.
|
javax.ws.rs.core.Response |
submitReplay(javax.servlet.http.HttpServletRequest httpServletRequest,
ClientIdParameter clientId,
String clusterNodeId,
LongParameter eventId)
Creates a new replay request for the content associated with the
specified provenance event id.
|
clusterContext, generateContinueResponse, generateCreatedResponse, generateOkResponse, generateOkResponse, generateResourceUri, getAbsolutePath, getClusterContextFromRequest, getHeaders, getHeaders, getRequestParameters, getRequestParameters, noCache, updateClientIdprivate static final org.slf4j.Logger logger
private static final int MAX_MAX_RESULTS
private NiFiProperties properties
private NiFiServiceFacade serviceFacade
private WebClusterManager clusterManager
private ProvenanceDTO populateRemainingProvenanceContent(ProvenanceDTO provenance)
private LineageDTO populateRemainingLineageContent(LineageDTO lineage)
@PreAuthorize(value="hasRole(\'ROLE_PROVENANCE\')") public javax.ws.rs.core.Response getSearchOptions(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_PROVENANCE\') and hasRole(\'ROLE_DFM\')")
public javax.ws.rs.core.Response submitReplay(@Context
javax.servlet.http.HttpServletRequest httpServletRequest,
ClientIdParameter clientId,
String clusterNodeId,
LongParameter eventId)
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.clusterNodeId - The id of the node in the cluster that has the
specified event. Required if clustered.eventId - The provenance event id.@PreAuthorize(value="hasRole(\'ROLE_PROVENANCE\')") public javax.ws.rs.core.Response getInputContent(ClientIdParameter clientId, String clusterNodeId, LongParameter 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.clusterNodeId - The id of the node within the cluster this content
is on. Required if clustered.id - The id of the provenance event associated with this content.@PreAuthorize(value="hasRole(\'ROLE_PROVENANCE\')") public javax.ws.rs.core.Response getOutputContent(ClientIdParameter clientId, String clusterNodeId, LongParameter 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.clusterNodeId - The id of the node within the cluster this content
is on. Required if clustered.id - The id of the provenance event associated with this content.@PreAuthorize(value="hasRole(\'ROLE_PROVENANCE\')")
public javax.ws.rs.core.Response submitProvenanceRequest(@Context
javax.servlet.http.HttpServletRequest httpServletRequest,
ClientIdParameter clientId,
DateTimeParameter startDate,
DateTimeParameter endDate,
String minimumFileSize,
String maximumFileSize,
IntegerParameter maxResults,
String clusterNodeId,
javax.ws.rs.core.MultivaluedMap<String,String> formParams)
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.startDate - The start date.endDate - The end date.minimumFileSize - The minimum size of the content after the event.maximumFileSize - The maximum size of the content after the event.maxResults - The maximum number of results to return.clusterNodeId - The id of node in the cluster to search. This is
optional and only relevant when clustered. If clustered and it is not
specified the entire cluster is searched.formParams - Additionally, the search parameters are specified in
the form parameters. Because the search parameters differ based on
configuration they are specified in a map-like fashion:
@PreAuthorize(value="hasRole(\'ROLE_PROVENANCE\')")
public javax.ws.rs.core.Response submitProvenanceRequest(@Context
javax.servlet.http.HttpServletRequest httpServletRequest,
ProvenanceEntity provenanceEntity)
httpServletRequest - provenanceEntity - A provenanceEntity@PreAuthorize(value="hasRole(\'ROLE_PROVENANCE\')") public javax.ws.rs.core.Response getProvenance(ClientIdParameter clientId, String clusterNodeId, 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 provenanceclusterNodeId - The id of node in the cluster to search. This is
optional and only relevant when clustered. If clustered and it is not
specified the entire cluster is searched.@PreAuthorize(value="hasRole(\'ROLE_PROVENANCE\')")
public javax.ws.rs.core.Response deleteProvenance(@Context
javax.servlet.http.HttpServletRequest httpServletRequest,
ClientIdParameter clientId,
String clusterNodeId,
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 provenanceclusterNodeId - The id of node in the cluster to search. This is
optional and only relevant when clustered. If clustered and it is not
specified the entire cluster is searched.@PreAuthorize(value="hasRole(\'ROLE_PROVENANCE\')") public javax.ws.rs.core.Response getProvenanceEvent(ClientIdParameter clientId, String clusterNodeId, LongParameter 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 eventclusterNodeId - The id of node in the cluster that the
event/flowfile originated from. This is only required when clustered.@PreAuthorize(value="hasRole(\'ROLE_PROVENANCE\')")
public javax.ws.rs.core.Response submitLineageRequest(@Context
javax.servlet.http.HttpServletRequest httpServletRequest,
ClientIdParameter clientId,
String lineageRequest,
LongParameter eventId,
String uuid,
String clusterNodeId)
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.eventId - The id of an event to get the lineage for. Must also
specify the eventDirection and not the uuid.lineageRequest - Either 'PARENTS', 'CHILDREN', or 'FLOWFILE'.
PARENTS will return the lineage for the flowfiles that are parents of the
specified event. CHILDREN will return the lineage of for the flowfiles
that are children of the specified event. FLOWFILE will return the
lineage for the specified flowfile.uuid - The uuid of the flowfile to get the lineage for. Must not
specify the eventId or eventDirection.clusterNodeId - The id of node in the cluster that the
event/flowfile originated from. This is only required when clustered.@PreAuthorize(value="hasRole(\'ROLE_PROVENANCE\')")
public javax.ws.rs.core.Response submitLineageRequest(@Context
javax.servlet.http.HttpServletRequest httpServletRequest,
LineageEntity lineageEntity)
httpServletRequest - lineageEntity - A lineageEntity@PreAuthorize(value="hasRole(\'ROLE_PROVENANCE\')") public javax.ws.rs.core.Response getLineage(ClientIdParameter clientId, String clusterNodeId, 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.clusterNodeId - The id of node in the cluster that the
event/flowfile originated from. This is only required when clustered.id - The id of the lineage@PreAuthorize(value="hasRole(\'ROLE_PROVENANCE\')")
public javax.ws.rs.core.Response deleteLineage(@Context
javax.servlet.http.HttpServletRequest httpServletRequest,
ClientIdParameter clientId,
String clusterNodeId,
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.clusterNodeId - The id of node in the cluster that the
event/flowfile originated from. This is only required when clustered.id - The id of the lineagepublic void setClusterManager(WebClusterManager clusterManager)
public void setProperties(NiFiProperties properties)
public void setServiceFacade(NiFiServiceFacade serviceFacade)
Copyright © 2015 Apache NiFi (incubating). All rights reserved.