public class JerseyFlowSnapshotClient extends AbstractJerseyClient implements FlowSnapshotClient
AbstractJerseyClient.NiFiRegistryAction<T>| Modifier and Type | Field and Description |
|---|---|
(package private) javax.ws.rs.client.WebTarget |
bucketFlowSnapshotTarget |
(package private) javax.ws.rs.client.WebTarget |
flowsFlowSnapshotTarget |
| Constructor and Description |
|---|
JerseyFlowSnapshotClient(javax.ws.rs.client.WebTarget baseTarget) |
JerseyFlowSnapshotClient(javax.ws.rs.client.WebTarget baseTarget,
Map<String,String> headers) |
| Modifier and Type | Method and Description |
|---|---|
VersionedFlowSnapshot |
create(VersionedFlowSnapshot snapshot)
Creates a new snapshot/version for the given flow.
|
VersionedFlowSnapshot |
get(String flowId,
int version)
Gets the snapshot for the given flow and version.
|
VersionedFlowSnapshot |
get(String bucketId,
String flowId,
int version)
Gets the snapshot for the given bucket, flow, and version.
|
VersionedFlowSnapshot |
getLatest(String flowId)
Gets the latest snapshot for the given flow.
|
VersionedFlowSnapshot |
getLatest(String bucketId,
String flowId)
Gets the latest snapshot for the given flow.
|
VersionedFlowSnapshotMetadata |
getLatestMetadata(String flowId)
Gets the latest snapshot metadata for the given flow.
|
VersionedFlowSnapshotMetadata |
getLatestMetadata(String bucketId,
String flowId)
Gets the latest snapshot metadata for the given flow.
|
List<VersionedFlowSnapshotMetadata> |
getSnapshotMetadata(String flowId)
Gets a list of the metadata for all snapshots of a given flow.
|
List<VersionedFlowSnapshotMetadata> |
getSnapshotMetadata(String bucketId,
String flowId)
Gets a list of the metadata for all snapshots of a given flow.
|
executeAction, getHeaders, getIOExceptionCause, getRequestBuilderfinal javax.ws.rs.client.WebTarget bucketFlowSnapshotTarget
final javax.ws.rs.client.WebTarget flowsFlowSnapshotTarget
public JerseyFlowSnapshotClient(javax.ws.rs.client.WebTarget baseTarget)
public VersionedFlowSnapshot create(VersionedFlowSnapshot snapshot) throws NiFiRegistryException, IOException
FlowSnapshotClientcreate in interface FlowSnapshotClientsnapshot - the new snapshotNiFiRegistryException - if an error is encountered other than IOExceptionIOException - if an I/O error is encounteredpublic VersionedFlowSnapshot get(String bucketId, String flowId, int version) throws NiFiRegistryException, IOException
FlowSnapshotClientget in interface FlowSnapshotClientbucketId - the bucket idflowId - the flow idversion - the versionNiFiRegistryException - if an error is encountered other than IOExceptionIOException - if an I/O error is encounteredpublic VersionedFlowSnapshot get(String flowId, int version) throws NiFiRegistryException, IOException
FlowSnapshotClientget in interface FlowSnapshotClientflowId - the flow idversion - the versionNiFiRegistryException - if an error is encountered other than IOExceptionIOException - if an I/O error is encounteredpublic VersionedFlowSnapshot getLatest(String bucketId, String flowId) throws NiFiRegistryException, IOException
FlowSnapshotClientgetLatest in interface FlowSnapshotClientbucketId - the bucket idflowId - the flow idNiFiRegistryException - if an error is encountered other than IOExceptionIOException - if an I/O error is encounteredpublic VersionedFlowSnapshot getLatest(String flowId) throws NiFiRegistryException, IOException
FlowSnapshotClientgetLatest in interface FlowSnapshotClientflowId - the flow idNiFiRegistryException - if an error is encountered other than IOExceptionIOException - if an I/O error is encounteredpublic VersionedFlowSnapshotMetadata getLatestMetadata(String bucketId, String flowId) throws NiFiRegistryException, IOException
FlowSnapshotClientgetLatestMetadata in interface FlowSnapshotClientbucketId - the bucket idflowId - the flow idNiFiRegistryException - if an error is encountered other than IOExceptionIOException - if an I/O error is encounteredpublic VersionedFlowSnapshotMetadata getLatestMetadata(String flowId) throws NiFiRegistryException, IOException
FlowSnapshotClientgetLatestMetadata in interface FlowSnapshotClientflowId - the flow idNiFiRegistryException - if an error is encountered other than IOExceptionIOException - if an I/O error is encounteredpublic List<VersionedFlowSnapshotMetadata> getSnapshotMetadata(String bucketId, String flowId) throws NiFiRegistryException, IOException
FlowSnapshotClientgetSnapshotMetadata in interface FlowSnapshotClientbucketId - the bucket idflowId - the flow idNiFiRegistryException - if an error is encountered other than IOExceptionIOException - if an I/O error is encounteredpublic List<VersionedFlowSnapshotMetadata> getSnapshotMetadata(String flowId) throws NiFiRegistryException, IOException
FlowSnapshotClientgetSnapshotMetadata in interface FlowSnapshotClientflowId - the flow idNiFiRegistryException - if an error is encountered other than IOExceptionIOException - if an I/O error is encounteredCopyright © 2018 Apache NiFi Project. All rights reserved.