@Generated(value="OracleSDKGenerator", comments="API Version: 20171215") public class FileStorageAsyncClient extends BaseAsyncClient implements FileStorageAsync
Async client implementation for FileStorage service.
There are two ways to use async client: 1. Use AsyncHandler: using AsyncHandler, if the response
to the call is an InputStream
, like getObject Api in object storage service,
developers need to process the stream in AsyncHandler, and not anywhere else, because the stream
will be closed right after the AsyncHandler is invoked.
2. Use Java Future: using Java Future, developers need to close the stream after they are done
with the Java Future.
Accessing the result should be done in a mutually exclusive manner, either through the Future or
the AsyncHandler, but not both. If the Future is used, the caller should pass in null as the
AsyncHandler. If the AsyncHandler is used, it is still safe to use the Future to determine
whether or not the request was completed via Future.isDone/isCancelled.
Please refer to
https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/ResteasyClientWithObjectStorageExample.java
Modifier and Type | Class and Description |
---|---|
static class |
FileStorageAsyncClient.Builder
Builder class for this client.
|
Modifier and Type | Field and Description |
---|---|
String |
clientCommonLibraryVersion
Compatible SDK version, provided by the codegen.
|
Optional<String> |
minimumClientCommonLibraryVersionFromClient
Minimum compatible SDK version, maybe provided by the codegen.
|
static Service |
SERVICE
Service instance for FileStorage.
|
Constructor and Description |
---|
FileStorageAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory)
Deprecated.
Use the
builder instead. |
FileStorageAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
List<ClientConfigurator> additionalClientConfigurators)
Deprecated.
Use the
builder instead. |
FileStorageAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint)
Deprecated.
Use the
builder instead. |
FileStorageAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint)
Deprecated.
Use the
builder instead. |
FileStorageAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
Deprecated.
Use the
builder instead. |
FileStorageAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration)
Deprecated.
Use the
builder instead. |
FileStorageAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator)
Deprecated.
Use the
builder instead. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEndpoint, refreshClient, setEndpoint, useRealmSpecificEndpointTemplate
close
public static final Service SERVICE
Service instance for FileStorage.
public final String clientCommonLibraryVersion
@Deprecated public FileStorageAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see FileStorageAsyncClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)@Deprecated public FileStorageAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see FileStorageAsyncClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
@Deprecated public FileStorageAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see FileStorageAsyncClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
@Deprecated public FileStorageAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see FileStorageAsyncClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
- ClientBuilderBase.requestSignerFactory
@Deprecated public FileStorageAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see FileStorageAsyncClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
- ClientBuilderBase.requestSignerFactory
additionalClientConfigurators
- ClientBuilderBase.additionalClientConfigurators
@Deprecated public FileStorageAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see FileStorageAsyncClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
- ClientBuilderBase.requestSignerFactory
additionalClientConfigurators
- ClientBuilderBase.additionalClientConfigurators
endpoint
- ClientBuilderBase.endpoint(java.lang.String)
@Deprecated public FileStorageAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see FileStorageAsyncClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
- ClientBuilderBase.requestSignerFactory
additionalClientConfigurators
- ClientBuilderBase.additionalClientConfigurators
endpoint
- ClientBuilderBase.endpoint(java.lang.String)
signingStrategyRequestSignerFactories
- ClientBuilderBase.signingStrategyRequestSignerFactories
public static FileStorageAsyncClient.Builder builder()
Create a builder for this client.
public void setRegion(Region region)
FileStorageAsync
Sets the region to call (ex, Region.US_PHOENIX_1).
Note, this will call setEndpoint
after resolving the
endpoint. If the service is not available in this region, however, an
IllegalArgumentException will be raised.
setRegion
in interface FileStorageAsync
region
- The region of the service.public void setRegion(String regionId)
FileStorageAsync
Sets the region to call (ex, ‘us-phoenix-1’).
Note, this will first try to map the region ID to a known Region and call setRegion
.
If no known Region could be determined, it will create an endpoint based on the default
endpoint format (Region.formatDefaultRegionEndpoint(Service, String)
and then call setEndpoint
.
setRegion
in interface FileStorageAsync
regionId
- The public region ID.public Future<CancelDowngradeShapeMountTargetResponse> cancelDowngradeShapeMountTarget(CancelDowngradeShapeMountTargetRequest request, AsyncHandler<CancelDowngradeShapeMountTargetRequest,CancelDowngradeShapeMountTargetResponse> handler)
FileStorageAsync
Cancel scheduled downgrade shape request for mount target.
cancelDowngradeShapeMountTarget
in interface FileStorageAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ChangeFileSystemCompartmentResponse> changeFileSystemCompartment(ChangeFileSystemCompartmentRequest request, AsyncHandler<ChangeFileSystemCompartmentRequest,ChangeFileSystemCompartmentResponse> handler)
FileStorageAsync
Moves a file system and its associated snapshots into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment
changeFileSystemCompartment
in interface FileStorageAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ChangeFilesystemSnapshotPolicyCompartmentResponse> changeFilesystemSnapshotPolicyCompartment(ChangeFilesystemSnapshotPolicyCompartmentRequest request, AsyncHandler<ChangeFilesystemSnapshotPolicyCompartmentRequest,ChangeFilesystemSnapshotPolicyCompartmentResponse> handler)
FileStorageAsync
Moves a file system snapshot policy into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment.
changeFilesystemSnapshotPolicyCompartment
in interface FileStorageAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ChangeMountTargetCompartmentResponse> changeMountTargetCompartment(ChangeMountTargetCompartmentRequest request, AsyncHandler<ChangeMountTargetCompartmentRequest,ChangeMountTargetCompartmentResponse> handler)
FileStorageAsync
Moves a mount target and its associated export set or share set into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment
changeMountTargetCompartment
in interface FileStorageAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ChangeOutboundConnectorCompartmentResponse> changeOutboundConnectorCompartment(ChangeOutboundConnectorCompartmentRequest request, AsyncHandler<ChangeOutboundConnectorCompartmentRequest,ChangeOutboundConnectorCompartmentResponse> handler)
FileStorageAsync
Moves an outbound connector into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment
changeOutboundConnectorCompartment
in interface FileStorageAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ChangeReplicationCompartmentResponse> changeReplicationCompartment(ChangeReplicationCompartmentRequest request, AsyncHandler<ChangeReplicationCompartmentRequest,ChangeReplicationCompartmentResponse> handler)
FileStorageAsync
Moves a replication and its replication target into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment.
changeReplicationCompartment
in interface FileStorageAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<CreateExportResponse> createExport(CreateExportRequest request, AsyncHandler<CreateExportRequest,CreateExportResponse> handler)
FileStorageAsync
Creates a new export in the specified export set, path, and file system.
createExport
in interface FileStorageAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<CreateFileSystemResponse> createFileSystem(CreateFileSystemRequest request, AsyncHandler<CreateFileSystemRequest,CreateFileSystemResponse> handler)
FileStorageAsync
Creates a new file system in the specified compartment and availability domain. Instances can mount file systems in another availability domain, but doing so might increase latency when compared to mounting instances in the same availability domain.
After you create a file system, you can associate it with a mount target. Instances can then mount the file system by connecting to the mount target's IP address. You can associate a file system with more than one mount target at a time.
For information about access control and compartments, see [Overview of the IAM Service](https://docs.cloud.oracle.com/Content/Identity/Concepts/overview.htm).
For information about Network Security Groups access control, see [Network Security Groups](https://docs.cloud.oracle.com/Content/Network/Concepts/networksecuritygroups.htm).
For information about availability domains, see [Regions and Availability Domains](https://docs.cloud.oracle.com/Content/General/Concepts/regions.htm). To get a list of availability domains, use the `ListAvailabilityDomains` operation in the Identity and Access Management Service API.
All Oracle Cloud Infrastructure resources, including file systems, get an Oracle-assigned, unique ID called an Oracle Cloud Identifier ([OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)). When you create a resource, you can find its OCID in the response. You can also retrieve a resource's OCID by using a List API operation on that resource type or by viewing the resource in the Console.
createFileSystem
in interface FileStorageAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<CreateFilesystemSnapshotPolicyResponse> createFilesystemSnapshotPolicy(CreateFilesystemSnapshotPolicyRequest request, AsyncHandler<CreateFilesystemSnapshotPolicyRequest,CreateFilesystemSnapshotPolicyResponse> handler)
FileStorageAsync
Creates a new file system snapshot policy in the specified compartment and availability domain.
After you create a file system snapshot policy, you can associate it with file systems.
createFilesystemSnapshotPolicy
in interface FileStorageAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<CreateMountTargetResponse> createMountTarget(CreateMountTargetRequest request, AsyncHandler<CreateMountTargetRequest,CreateMountTargetResponse> handler)
FileStorageAsync
Creates a new mount target in the specified compartment and subnet. You can associate a file system with a mount target only when they exist in the same availability domain. Instances can connect to mount targets in another availablity domain, but you might see higher latency than with instances in the same availability domain as the mount target.
Mount targets have one or more private IP addresses that you can provide as the host portion of remote target parameters in client mount commands. These private IP addresses are listed in the privateIpIds property of the mount target and are highly available. Mount targets also consume additional IP addresses in their subnet. Do not use /30 or smaller subnets for mount target creation because they do not have sufficient available IP addresses. Allow at least three IP addresses for each mount target.
For information about access control and compartments, see [Overview of the IAM Service](https://docs.cloud.oracle.com/Content/Identity/Concepts/overview.htm).
For information about availability domains, see [Regions and Availability Domains](https://docs.cloud.oracle.com/Content/General/Concepts/regions.htm). To get a list of availability domains, use the `ListAvailabilityDomains` operation in the Identity and Access Management Service API.
All Oracle Cloud Infrastructure Services resources, including mount targets, get an Oracle-assigned, unique ID called an Oracle Cloud Identifier ([OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)). When you create a resource, you can find its OCID in the response. You can also retrieve a resource's OCID by using a List API operation on that resource type, or by viewing the resource in the Console.
createMountTarget
in interface FileStorageAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<CreateOutboundConnectorResponse> createOutboundConnector(CreateOutboundConnectorRequest request, AsyncHandler<CreateOutboundConnectorRequest,CreateOutboundConnectorResponse> handler)
FileStorageAsync
Creates a new outbound connector in the specified compartment. You can associate an outbound connector with a mount target only when they exist in the same availability domain.
For information about access control and compartments, see [Overview of the IAM Service](https://docs.cloud.oracle.com/Content/Identity/Concepts/overview.htm).
For information about availability domains, see [Regions and Availability Domains](https://docs.cloud.oracle.com/Content/General/Concepts/regions.htm). To get a list of availability domains, use the `ListAvailabilityDomains` operation in the Identity and Access Management Service API.
All Oracle Cloud Infrastructure Services resources, including outbound connectors, get an Oracle-assigned, unique ID called an Oracle Cloud Identifier ([OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)). When you create a resource, you can find its OCID in the response. You can also retrieve a resource's OCID by using a List API operation on that resource type, or by viewing the resource in the Console.
createOutboundConnector
in interface FileStorageAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<CreateReplicationResponse> createReplication(CreateReplicationRequest request, AsyncHandler<CreateReplicationRequest,CreateReplicationResponse> handler)
FileStorageAsync
Creates a new replication in the specified compartment. Replications are the primary resource
that governs the policy of cross-region replication between source and target file systems.
Replications are associated with a secondary resource called a ReplicationTarget
located in another availability domain. The associated replication target resource is
automatically created along with the replication resource. The replication retrieves the
delta of data between two snapshots of a source file system and sends it to the associated
ReplicationTarget
, which retrieves the delta and applies it to the target file system. Only
unexported file systems can be used as target file systems. For more information, see Using
Replication.
For information about access control and compartments, see [Overview of the IAM Service](https://docs.cloud.oracle.com/Content/Identity/Concepts/overview.htm).
For information about availability domains, see [Regions and Availability Domains](https://docs.cloud.oracle.com/Content/General/Concepts/regions.htm). To get a list of availability domains, use the `ListAvailabilityDomains` operation in the Identity and Access Management Service API.
All Oracle Cloud Infrastructure Services resources, including replications, get an Oracle-assigned, unique ID called an Oracle Cloud Identifier ([OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)). When you create a resource, you can find its OCID in the response. You can also retrieve a resource's OCID by using a List API operation on that resource type, or by viewing the resource in the Console.
createReplication
in interface FileStorageAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<CreateSnapshotResponse> createSnapshot(CreateSnapshotRequest request, AsyncHandler<CreateSnapshotRequest,CreateSnapshotResponse> handler)
FileStorageAsync
Creates a new snapshot of the specified file system. You can access the snapshot at
.snapshot/<name>
.
createSnapshot
in interface FileStorageAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DeleteExportResponse> deleteExport(DeleteExportRequest request, AsyncHandler<DeleteExportRequest,DeleteExportResponse> handler)
FileStorageAsync
Deletes the specified export.
deleteExport
in interface FileStorageAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DeleteFileSystemResponse> deleteFileSystem(DeleteFileSystemRequest request, AsyncHandler<DeleteFileSystemRequest,DeleteFileSystemResponse> handler)
FileStorageAsync
Deletes the specified file system. Before you delete the file system, verify that no remaining export resources still reference it. Deleting a file system also deletes all of its snapshots.
deleteFileSystem
in interface FileStorageAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DeleteFilesystemSnapshotPolicyResponse> deleteFilesystemSnapshotPolicy(DeleteFilesystemSnapshotPolicyRequest request, AsyncHandler<DeleteFilesystemSnapshotPolicyRequest,DeleteFilesystemSnapshotPolicyResponse> handler)
FileStorageAsync
Deletes the specified file system snapshot policy.
deleteFilesystemSnapshotPolicy
in interface FileStorageAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DeleteMountTargetResponse> deleteMountTarget(DeleteMountTargetRequest request, AsyncHandler<DeleteMountTargetRequest,DeleteMountTargetResponse> handler)
FileStorageAsync
Deletes the specified mount target. This operation also deletes the mount target’s VNICs.
deleteMountTarget
in interface FileStorageAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DeleteOutboundConnectorResponse> deleteOutboundConnector(DeleteOutboundConnectorRequest request, AsyncHandler<DeleteOutboundConnectorRequest,DeleteOutboundConnectorResponse> handler)
FileStorageAsync
Deletes the specified outbound connector.
deleteOutboundConnector
in interface FileStorageAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DeleteReplicationResponse> deleteReplication(DeleteReplicationRequest request, AsyncHandler<DeleteReplicationRequest,DeleteReplicationResponse> handler)
FileStorageAsync
Deletes the specified replication and the the associated replication target.
deleteReplication
in interface FileStorageAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DeleteReplicationTargetResponse> deleteReplicationTarget(DeleteReplicationTargetRequest request, AsyncHandler<DeleteReplicationTargetRequest,DeleteReplicationTargetResponse> handler)
FileStorageAsync
Deletes the specified replication target. This operation causes the immediate release of the target file system if there are currently no delta application operations. If there is any current delta being applied the delete operation is blocked until the current delta has been completely applied.
deleteReplicationTarget
in interface FileStorageAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DeleteSnapshotResponse> deleteSnapshot(DeleteSnapshotRequest request, AsyncHandler<DeleteSnapshotRequest,DeleteSnapshotResponse> handler)
FileStorageAsync
Deletes the specified snapshot.
deleteSnapshot
in interface FileStorageAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DetachCloneResponse> detachClone(DetachCloneRequest request, AsyncHandler<DetachCloneRequest,DetachCloneResponse> handler)
FileStorageAsync
Detaches the file system from its parent file system
detachClone
in interface FileStorageAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<EstimateReplicationResponse> estimateReplication(EstimateReplicationRequest request, AsyncHandler<EstimateReplicationRequest,EstimateReplicationResponse> handler)
FileStorageAsync
Provides estimates for replication created using specific file system.
estimateReplication
in interface FileStorageAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetExportResponse> getExport(GetExportRequest request, AsyncHandler<GetExportRequest,GetExportResponse> handler)
FileStorageAsync
Gets the specified export’s information.
getExport
in interface FileStorageAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetExportSetResponse> getExportSet(GetExportSetRequest request, AsyncHandler<GetExportSetRequest,GetExportSetResponse> handler)
FileStorageAsync
Gets the specified export set’s information.
getExportSet
in interface FileStorageAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetFileSystemResponse> getFileSystem(GetFileSystemRequest request, AsyncHandler<GetFileSystemRequest,GetFileSystemResponse> handler)
FileStorageAsync
Gets the specified file system’s information.
getFileSystem
in interface FileStorageAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetFilesystemSnapshotPolicyResponse> getFilesystemSnapshotPolicy(GetFilesystemSnapshotPolicyRequest request, AsyncHandler<GetFilesystemSnapshotPolicyRequest,GetFilesystemSnapshotPolicyResponse> handler)
FileStorageAsync
Gets the specified file system snapshot policy’s information.
getFilesystemSnapshotPolicy
in interface FileStorageAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetMountTargetResponse> getMountTarget(GetMountTargetRequest request, AsyncHandler<GetMountTargetRequest,GetMountTargetResponse> handler)
FileStorageAsync
Gets the specified mount target’s information.
getMountTarget
in interface FileStorageAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetOutboundConnectorResponse> getOutboundConnector(GetOutboundConnectorRequest request, AsyncHandler<GetOutboundConnectorRequest,GetOutboundConnectorResponse> handler)
FileStorageAsync
Gets the specified outbound connector’s information.
getOutboundConnector
in interface FileStorageAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetReplicationResponse> getReplication(GetReplicationRequest request, AsyncHandler<GetReplicationRequest,GetReplicationResponse> handler)
FileStorageAsync
Gets the specified replication’s information.
getReplication
in interface FileStorageAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetReplicationTargetResponse> getReplicationTarget(GetReplicationTargetRequest request, AsyncHandler<GetReplicationTargetRequest,GetReplicationTargetResponse> handler)
FileStorageAsync
Gets the specified replication target’s information.
getReplicationTarget
in interface FileStorageAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetSnapshotResponse> getSnapshot(GetSnapshotRequest request, AsyncHandler<GetSnapshotRequest,GetSnapshotResponse> handler)
FileStorageAsync
Gets the specified snapshot’s information.
getSnapshot
in interface FileStorageAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListExportSetsResponse> listExportSets(ListExportSetsRequest request, AsyncHandler<ListExportSetsRequest,ListExportSetsResponse> handler)
FileStorageAsync
Lists the export set resources in the specified compartment.
listExportSets
in interface FileStorageAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListExportsResponse> listExports(ListExportsRequest request, AsyncHandler<ListExportsRequest,ListExportsResponse> handler)
FileStorageAsync
Lists export resources by compartment, file system, or export set. You must specify an export set ID, a file system ID, and / or a compartment ID.
listExports
in interface FileStorageAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListFileSystemsResponse> listFileSystems(ListFileSystemsRequest request, AsyncHandler<ListFileSystemsRequest,ListFileSystemsResponse> handler)
FileStorageAsync
Lists the file system resources in the specified compartment, or by the specified compartment and file system snapshot policy.
listFileSystems
in interface FileStorageAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListFilesystemSnapshotPoliciesResponse> listFilesystemSnapshotPolicies(ListFilesystemSnapshotPoliciesRequest request, AsyncHandler<ListFilesystemSnapshotPoliciesRequest,ListFilesystemSnapshotPoliciesResponse> handler)
FileStorageAsync
Lists file system snapshot policies in the specified compartment.
listFilesystemSnapshotPolicies
in interface FileStorageAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListMountTargetsResponse> listMountTargets(ListMountTargetsRequest request, AsyncHandler<ListMountTargetsRequest,ListMountTargetsResponse> handler)
FileStorageAsync
Lists the mount target resources in the specified compartment.
listMountTargets
in interface FileStorageAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListOutboundConnectorsResponse> listOutboundConnectors(ListOutboundConnectorsRequest request, AsyncHandler<ListOutboundConnectorsRequest,ListOutboundConnectorsResponse> handler)
FileStorageAsync
Lists the outbound connector resources in the specified compartment.
listOutboundConnectors
in interface FileStorageAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListReplicationTargetsResponse> listReplicationTargets(ListReplicationTargetsRequest request, AsyncHandler<ListReplicationTargetsRequest,ListReplicationTargetsResponse> handler)
FileStorageAsync
Lists the replication target resources in the specified compartment.
listReplicationTargets
in interface FileStorageAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListReplicationsResponse> listReplications(ListReplicationsRequest request, AsyncHandler<ListReplicationsRequest,ListReplicationsResponse> handler)
FileStorageAsync
Lists the replication resources in the specified compartment.
listReplications
in interface FileStorageAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListSnapshotsResponse> listSnapshots(ListSnapshotsRequest request, AsyncHandler<ListSnapshotsRequest,ListSnapshotsResponse> handler)
FileStorageAsync
Lists snapshots of the specified file system, or by file system snapshot policy and compartment, or by file system snapshot policy and file system.
If file system ID is not specified, a file system snapshot policy ID and compartment ID must be specified.
Users can only sort by time created when listing snapshots by file system snapshot policy ID and compartment ID (sort by name is NOT supported for listing snapshots by policy and compartment).
listSnapshots
in interface FileStorageAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<PauseFilesystemSnapshotPolicyResponse> pauseFilesystemSnapshotPolicy(PauseFilesystemSnapshotPolicyRequest request, AsyncHandler<PauseFilesystemSnapshotPolicyRequest,PauseFilesystemSnapshotPolicyResponse> handler)
FileStorageAsync
This operation pauses the scheduled snapshot creation and snapshot deletion of the policy and updates the lifecycle state of the file system snapshot policy from ACTIVE to INACTIVE. When a file system snapshot policy is paused, file systems that are associated with the policy will not have scheduled snapshots created or deleted.
If the policy is already paused, or in the INACTIVE state, you cannot pause it again. You can't pause a policy that is in a DELETING, DELETED, FAILED, CREATING or INACTIVE state; attempts to pause a policy in these states result in a 409 conflict error.
pauseFilesystemSnapshotPolicy
in interface FileStorageAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ScheduleDowngradeShapeMountTargetResponse> scheduleDowngradeShapeMountTarget(ScheduleDowngradeShapeMountTargetRequest request, AsyncHandler<ScheduleDowngradeShapeMountTargetRequest,ScheduleDowngradeShapeMountTargetResponse> handler)
FileStorageAsync
Schedule a downgrade shape of the mount target.
scheduleDowngradeShapeMountTarget
in interface FileStorageAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<UnpauseFilesystemSnapshotPolicyResponse> unpauseFilesystemSnapshotPolicy(UnpauseFilesystemSnapshotPolicyRequest request, AsyncHandler<UnpauseFilesystemSnapshotPolicyRequest,UnpauseFilesystemSnapshotPolicyResponse> handler)
FileStorageAsync
This operation unpauses a paused file system snapshot policy and updates the lifecycle state of the file system snapshot policy from INACTIVE to ACTIVE. By default, file system snapshot policies are in the ACTIVE state. When a file system snapshot policy is not paused, or in the ACTIVE state, file systems that are associated with the policy will have snapshots created and deleted according to the schedules defined in the policy.
If the policy is already in the ACTIVE state, you cannot unpause it. You can't unpause a policy that is in a DELETING, DELETED, FAILED, CREATING, or ACTIVE state; attempts to unpause a policy in these states result in a 409 conflict error.
unpauseFilesystemSnapshotPolicy
in interface FileStorageAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<UpdateExportResponse> updateExport(UpdateExportRequest request, AsyncHandler<UpdateExportRequest,UpdateExportResponse> handler)
FileStorageAsync
Updates the specified export’s information.
updateExport
in interface FileStorageAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<UpdateExportSetResponse> updateExportSet(UpdateExportSetRequest request, AsyncHandler<UpdateExportSetRequest,UpdateExportSetResponse> handler)
FileStorageAsync
Updates the specified export set’s information.
updateExportSet
in interface FileStorageAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<UpdateFileSystemResponse> updateFileSystem(UpdateFileSystemRequest request, AsyncHandler<UpdateFileSystemRequest,UpdateFileSystemResponse> handler)
FileStorageAsync
Updates the specified file system’s information. You can use this operation to rename a file system.
updateFileSystem
in interface FileStorageAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<UpdateFilesystemSnapshotPolicyResponse> updateFilesystemSnapshotPolicy(UpdateFilesystemSnapshotPolicyRequest request, AsyncHandler<UpdateFilesystemSnapshotPolicyRequest,UpdateFilesystemSnapshotPolicyResponse> handler)
FileStorageAsync
Updates the specified file system snapshot policy’s information.
updateFilesystemSnapshotPolicy
in interface FileStorageAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<UpdateMountTargetResponse> updateMountTarget(UpdateMountTargetRequest request, AsyncHandler<UpdateMountTargetRequest,UpdateMountTargetResponse> handler)
FileStorageAsync
Updates the specified mount target’s information.
updateMountTarget
in interface FileStorageAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<UpdateOutboundConnectorResponse> updateOutboundConnector(UpdateOutboundConnectorRequest request, AsyncHandler<UpdateOutboundConnectorRequest,UpdateOutboundConnectorResponse> handler)
FileStorageAsync
Updates the specified outbound connector’s information.
updateOutboundConnector
in interface FileStorageAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<UpdateReplicationResponse> updateReplication(UpdateReplicationRequest request, AsyncHandler<UpdateReplicationRequest,UpdateReplicationResponse> handler)
FileStorageAsync
Updates the information for the specified replication and its associated replication target.
updateReplication
in interface FileStorageAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<UpdateSnapshotResponse> updateSnapshot(UpdateSnapshotRequest request, AsyncHandler<UpdateSnapshotRequest,UpdateSnapshotResponse> handler)
FileStorageAsync
Updates the specified snapshot’s information.
updateSnapshot
in interface FileStorageAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<UpgradeShapeMountTargetResponse> upgradeShapeMountTarget(UpgradeShapeMountTargetRequest request, AsyncHandler<UpgradeShapeMountTargetRequest,UpgradeShapeMountTargetResponse> handler)
FileStorageAsync
Upgrade shape request for mount target.
upgradeShapeMountTarget
in interface FileStorageAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ValidateKeyTabsResponse> validateKeyTabs(ValidateKeyTabsRequest request, AsyncHandler<ValidateKeyTabsRequest,ValidateKeyTabsResponse> handler)
FileStorageAsync
Validates keytab contents for the secret details passed on the request or validte keytab contents associated with the mount target passed in the request. The keytabs are deserialized, the contents are validated for compatibility and the principal, key version number and encryption type of each entry is provided as part of the response.
validateKeyTabs
in interface FileStorageAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.protected ClientConfigurator getDefaultConfigurator()
public void useRealmSpecificEndpointTemplate(boolean useOfRealmSpecificEndpointTemplateEnabled)
useOfRealmSpecificEndpointTemplateEnabled
- This flag can be set to true or false to
enable or disable the use of realm-specific endpoint template respectivelypublic final void populateServiceParametersInEndpoint(String endpoint, Map<String,Object> requiredParametersMap)
endpoint
- The endpoint template in userequiredParametersMap
- Map of parameter name as key and value set in request path or
query parameter as valuepublic final void updateBaseEndpoint(String endpoint)
endpoint
- The updated endpoint to usepublic final void setEndpoint(String endpoint)
public final String getEndpoint()
public final void refreshClient()
HttpClient
. This will call ClientConfigurator
s again, and
can be used to e.g. refresh the SSL certificate.public final void close()
close
in interface AutoCloseable
public String getClientCommonLibraryVersion()
public Optional<String> getMinimumClientCommonLibraryVersionFromClient()
protected <REQ extends BmcRequest<?>,RESP extends BmcResponse,RESP_BUILDER extends BmcResponse.Builder<RESP>> ClientCall<REQ,RESP,RESP_BUILDER> clientCall(REQ request, Supplier<RESP_BUILDER> responseBuilder)
Copyright © 2016–2024. All rights reserved.