public class JerseyFlowClient extends AbstractJerseyClient implements FlowClient
AbstractJerseyClient.NiFiRegistryAction<T>| Modifier and Type | Field and Description |
|---|---|
private javax.ws.rs.client.WebTarget |
bucketFlowsTarget |
private javax.ws.rs.client.WebTarget |
flowsTarget |
| Constructor and Description |
|---|
JerseyFlowClient(javax.ws.rs.client.WebTarget baseTarget) |
JerseyFlowClient(javax.ws.rs.client.WebTarget baseTarget,
Map<String,String> headers) |
| Modifier and Type | Method and Description |
|---|---|
VersionedFlow |
create(VersionedFlow flow)
Create the given flow in the given bucket.
|
VersionedFlow |
delete(String bucketId,
String flowId)
Deletes the flow with the given id in the given bucket.
|
VersionedFlowDifference |
diff(String bucketId,
String flowId,
Integer versionA,
Integer versionB) |
VersionedFlow |
get(String flowId)
Gets the flow with the given id.
|
VersionedFlow |
get(String bucketId,
String flowId)
Gets the flow with the given id in the given bucket.
|
List<VersionedFlow> |
getByBucket(String bucketId)
Gets the flows for a given bucket.
|
Fields |
getFields()
Gets the field info for flows.
|
VersionedFlow |
update(String bucketId,
VersionedFlow flow)
Updates the given flow with in the given bucket.
|
executeAction, getHeaders, getIOExceptionCause, getRequestBuilderprivate final javax.ws.rs.client.WebTarget flowsTarget
private final javax.ws.rs.client.WebTarget bucketFlowsTarget
public JerseyFlowClient(javax.ws.rs.client.WebTarget baseTarget)
public VersionedFlow create(VersionedFlow flow) throws NiFiRegistryException, IOException
FlowClientcreate in interface FlowClientflow - the flow to createNiFiRegistryException - if an error is encountered other than IOExceptionIOException - if an I/O error is encounteredpublic VersionedFlow get(String bucketId, String flowId) throws NiFiRegistryException, IOException
FlowClientget in interface FlowClientbucketId - a bucket idflowId - a flow idNiFiRegistryException - if an error is encountered other than IOExceptionIOException - if an I/O error is encounteredpublic VersionedFlow get(String flowId) throws NiFiRegistryException, IOException
FlowClientget in interface FlowClientflowId - a flow idNiFiRegistryException - if an error is encountered other than IOExceptionIOException - if an I/O error is encounteredpublic VersionedFlow update(String bucketId, VersionedFlow flow) throws NiFiRegistryException, IOException
FlowClientupdate in interface FlowClientbucketId - a bucket idflow - the flow with updatesNiFiRegistryException - if an error is encountered other than IOExceptionIOException - if an I/O error is encounteredpublic VersionedFlow delete(String bucketId, String flowId) throws NiFiRegistryException, IOException
FlowClientdelete in interface FlowClientbucketId - a bucket idflowId - the id of the flow to deleteNiFiRegistryException - if an error is encountered other than IOExceptionIOException - if an I/O error is encounteredpublic Fields getFields() throws NiFiRegistryException, IOException
FlowClientgetFields in interface FlowClientNiFiRegistryException - if an error is encountered other than IOExceptionIOException - if an I/O error is encounteredpublic List<VersionedFlow> getByBucket(String bucketId) throws NiFiRegistryException, IOException
FlowClientgetByBucket in interface FlowClientbucketId - a bucket idNiFiRegistryException - if an error is encountered other than IOExceptionIOException - if an I/O error is encounteredpublic VersionedFlowDifference diff(String bucketId, String flowId, Integer versionA, Integer versionB) throws NiFiRegistryException, IOException
diff in interface FlowClientbucketId - a bucket idflowId - the flow that is under inspectionversionA - the first version to use in the comparisonversionB - the second flow to use in the comparisonNiFiRegistryException - if an error is encountered other than IOExceptionIOException - if an I/O error is encounteredCopyright © 2018 Apache NiFi Project. All rights reserved.