public interface SnapshotsResource
| Modifier and Type | Method and Description |
|---|---|
ApiSnapshotPolicyList |
createPolicies(ApiSnapshotPolicyList policies)
Creates one or more snapshot policies.
|
ApiSnapshotPolicy |
deletePolicy(String policyName)
Deletes an existing snapshot policy.
|
ApiSnapshotCommandList |
readHistory(String policyName,
int limit,
int offset,
DataView dataView)
Returns a list of commands triggered by a snapshot policy.
|
ApiSnapshotPolicyList |
readPolicies(DataView view)
Returns information for all snapshot policies.
|
ApiSnapshotPolicy |
readPolicy(String policyName,
DataView view)
Returns information for a specific snapshot policy.
|
ApiSnapshotPolicy |
updatePolicy(String policyName,
ApiSnapshotPolicy policy)
Updates an existing snapshot policy.
|
@Path(value="/policies") ApiSnapshotPolicyList createPolicies(ApiSnapshotPolicyList policies)
policies - List of the snapshot policies to create.@Path(value="/policies") ApiSnapshotPolicyList readPolicies(DataView view)
view - The view to materialize.@Path(value="/policies/{policyName}")
ApiSnapshotPolicy readPolicy(String policyName,
DataView view)
policyName - Name of an existing snapshot policy.view - The view to materialize.@Path(value="/policies/{policyName}")
ApiSnapshotPolicy updatePolicy(String policyName,
ApiSnapshotPolicy policy)
policyName - Name of an existing snapshot policy.policy - Modified policy.@Path(value="/policies/{policyName}")
ApiSnapshotPolicy deletePolicy(String policyName)
policyName - Name of an existing snapshot policy.@Path(value="/policies/{policyName}/history")
ApiSnapshotCommandList readHistory(String policyName,
int limit,
int offset,
DataView dataView)
policyName - Name of an existing snapshot policy.limit - Maximum number of commands to retrieve.offset - Index of first command to retrieve.dataView - The view to materialize.Copyright © Cloudera, Inc. Released under Apache License, Version 2.0.