public class JerseyBucketClient extends AbstractJerseyClient implements BucketClient
AbstractJerseyClient.NiFiRegistryAction<T>| Modifier and Type | Field and Description |
|---|---|
private javax.ws.rs.client.WebTarget |
bucketsTarget |
| Constructor and Description |
|---|
JerseyBucketClient(javax.ws.rs.client.WebTarget baseTarget) |
JerseyBucketClient(javax.ws.rs.client.WebTarget baseTarget,
Map<String,String> headers) |
| Modifier and Type | Method and Description |
|---|---|
Bucket |
create(Bucket bucket)
Creates the given bucket.
|
Bucket |
delete(String bucketId)
Deletes the bucket with the given id.
|
Bucket |
get(String bucketId)
Gets the bucket with the given id.
|
List<Bucket> |
getAll()
Gets all buckets.
|
Fields |
getFields()
Gets the fields that can be used to sort/search buckets.
|
Bucket |
update(Bucket bucket)
Updates the given bucket.
|
executeAction, getHeaders, getIOExceptionCause, getRequestBuilderpublic JerseyBucketClient(javax.ws.rs.client.WebTarget baseTarget)
public Bucket create(Bucket bucket) throws NiFiRegistryException, IOException
BucketClientcreate in interface BucketClientbucket - the bucket to createNiFiRegistryExceptionIOExceptionpublic Bucket get(String bucketId) throws NiFiRegistryException, IOException
BucketClientget in interface BucketClientbucketId - the id of the bucket to retrieveNiFiRegistryExceptionIOExceptionpublic Bucket update(Bucket bucket) throws NiFiRegistryException, IOException
BucketClientupdate in interface BucketClientbucket - the bucket with updates, must contain the idNiFiRegistryExceptionIOExceptionpublic Bucket delete(String bucketId) throws NiFiRegistryException, IOException
BucketClientdelete in interface BucketClientbucketId - the id of the bucket to deleteNiFiRegistryExceptionIOExceptionpublic Fields getFields() throws NiFiRegistryException, IOException
BucketClientgetFields in interface BucketClientNiFiRegistryExceptionIOExceptionpublic List<Bucket> getAll() throws NiFiRegistryException, IOException
BucketClientgetAll in interface BucketClientNiFiRegistryExceptionIOExceptionCopyright © 2018 Apache NiFi Project. All rights reserved.