Class WeblogicManagementServiceAsyncClient
- java.lang.Object
-
- com.oracle.bmc.http.internal.BaseAsyncClient
-
- com.oracle.bmc.wlms.WeblogicManagementServiceAsyncClient
-
- All Implemented Interfaces:
WeblogicManagementServiceAsync
,AutoCloseable
@Generated(value="OracleSDKGenerator", comments="API Version: 20241101") public class WeblogicManagementServiceAsyncClient extends BaseAsyncClient implements WeblogicManagementServiceAsync
Async client implementation for WeblogicManagementService service.
There are two ways to use async client: 1. Use AsyncHandler: using AsyncHandler, if the response to the call is anInputStream
, 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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WeblogicManagementServiceAsyncClient.Builder
Builder class for this client.
-
Field Summary
Fields Modifier and Type Field 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 WeblogicManagementService.
-
Constructor Summary
Constructors Constructor Description WeblogicManagementServiceAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory)
Deprecated.Use thebuilder
instead.WeblogicManagementServiceAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators)
Deprecated.Use thebuilder
instead.WeblogicManagementServiceAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
Deprecated.Use thebuilder
instead.WeblogicManagementServiceAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
Deprecated.Use thebuilder
instead.WeblogicManagementServiceAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
Deprecated.Use thebuilder
instead.WeblogicManagementServiceAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration)
Deprecated.Use thebuilder
instead.WeblogicManagementServiceAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator)
Deprecated.Use thebuilder
instead.
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.AutoCloseable
close
-
Methods inherited from interface com.oracle.bmc.wlms.WeblogicManagementServiceAsync
getEndpoint, refreshClient, setEndpoint, useRealmSpecificEndpointTemplate
-
-
-
-
Constructor Detail
-
WeblogicManagementServiceAsyncClient
@Deprecated public WeblogicManagementServiceAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
Deprecated.Use thebuilder
instead.Create a new client instance.- Parameters:
authenticationDetailsProvider
- The authentication details (seeWeblogicManagementServiceAsyncClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)
-
WeblogicManagementServiceAsyncClient
@Deprecated public WeblogicManagementServiceAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration)
Deprecated.Use thebuilder
instead.Create a new client instance.- Parameters:
authenticationDetailsProvider
- The authentication details (seeWeblogicManagementServiceAsyncClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
-ClientBuilderBase.configuration
-
WeblogicManagementServiceAsyncClient
@Deprecated public WeblogicManagementServiceAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator)
Deprecated.Use thebuilder
instead.Create a new client instance.- Parameters:
authenticationDetailsProvider
- The authentication details (seeWeblogicManagementServiceAsyncClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
-ClientBuilderBase.configuration
clientConfigurator
-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
-
WeblogicManagementServiceAsyncClient
@Deprecated public WeblogicManagementServiceAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory)
Deprecated.Use thebuilder
instead.Create a new client instance.- Parameters:
authenticationDetailsProvider
- The authentication details (seeWeblogicManagementServiceAsyncClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
-ClientBuilderBase.configuration
clientConfigurator
-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
-ClientBuilderBase.requestSignerFactory
-
WeblogicManagementServiceAsyncClient
@Deprecated public WeblogicManagementServiceAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators)
Deprecated.Use thebuilder
instead.Create a new client instance.- Parameters:
authenticationDetailsProvider
- The authentication details (seeWeblogicManagementServiceAsyncClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
-ClientBuilderBase.configuration
clientConfigurator
-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
-ClientBuilderBase.requestSignerFactory
additionalClientConfigurators
-ClientBuilderBase.additionalClientConfigurators
-
WeblogicManagementServiceAsyncClient
@Deprecated public WeblogicManagementServiceAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
Deprecated.Use thebuilder
instead.Create a new client instance.- Parameters:
authenticationDetailsProvider
- The authentication details (seeWeblogicManagementServiceAsyncClient.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)
-
WeblogicManagementServiceAsyncClient
@Deprecated public WeblogicManagementServiceAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
Deprecated.Use thebuilder
instead.Create a new client instance.- Parameters:
authenticationDetailsProvider
- The authentication details (seeWeblogicManagementServiceAsyncClient.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
-
-
Method Detail
-
builder
public static WeblogicManagementServiceAsyncClient.Builder builder()
Create a builder for this client.- Returns:
- builder
-
setRegion
public void setRegion(Region region)
Description copied from interface:WeblogicManagementServiceAsync
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.- Specified by:
setRegion
in interfaceWeblogicManagementServiceAsync
- Parameters:
region
- The region of the service.
-
setRegion
public void setRegion(String regionId)
Description copied from interface:WeblogicManagementServiceAsync
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 callsetEndpoint
.- Specified by:
setRegion
in interfaceWeblogicManagementServiceAsync
- Parameters:
regionId
- The public region ID.
-
changeWlsDomainCompartment
public Future<ChangeWlsDomainCompartmentResponse> changeWlsDomainCompartment(ChangeWlsDomainCompartmentRequest request, AsyncHandler<ChangeWlsDomainCompartmentRequest,ChangeWlsDomainCompartmentResponse> handler)
Description copied from interface:WeblogicManagementServiceAsync
Moves a WebLogic domain into a different compartment within the same tenancy.- Specified by:
changeWlsDomainCompartment
in interfaceWeblogicManagementServiceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
createAgreementRecord
public Future<CreateAgreementRecordResponse> createAgreementRecord(CreateAgreementRecordRequest request, AsyncHandler<CreateAgreementRecordRequest,CreateAgreementRecordResponse> handler)
Description copied from interface:WeblogicManagementServiceAsync
Creates a terms of use agreement record for a WebLogic domain.- Specified by:
createAgreementRecord
in interfaceWeblogicManagementServiceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
deleteWlsDomain
public Future<DeleteWlsDomainResponse> deleteWlsDomain(DeleteWlsDomainRequest request, AsyncHandler<DeleteWlsDomainRequest,DeleteWlsDomainResponse> handler)
Description copied from interface:WeblogicManagementServiceAsync
Delete the WebLogic domain.- Specified by:
deleteWlsDomain
in interfaceWeblogicManagementServiceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
getAgreement
public Future<GetAgreementResponse> getAgreement(GetAgreementRequest request, AsyncHandler<GetAgreementRequest,GetAgreementResponse> handler)
Description copied from interface:WeblogicManagementServiceAsync
Returns the terms and conditions of use agreement.- Specified by:
getAgreement
in interfaceWeblogicManagementServiceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
getManagedInstance
public Future<GetManagedInstanceResponse> getManagedInstance(GetManagedInstanceRequest request, AsyncHandler<GetManagedInstanceRequest,GetManagedInstanceResponse> handler)
Description copied from interface:WeblogicManagementServiceAsync
Gets information about the specified managed instance.- Specified by:
getManagedInstance
in interfaceWeblogicManagementServiceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
getManagedInstanceServer
public Future<GetManagedInstanceServerResponse> getManagedInstanceServer(GetManagedInstanceServerRequest request, AsyncHandler<GetManagedInstanceServerRequest,GetManagedInstanceServerResponse> handler)
Description copied from interface:WeblogicManagementServiceAsync
Gets information about the specified server in a managed instance.- Specified by:
getManagedInstanceServer
in interfaceWeblogicManagementServiceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
getWlsDomain
public Future<GetWlsDomainResponse> getWlsDomain(GetWlsDomainRequest request, AsyncHandler<GetWlsDomainRequest,GetWlsDomainResponse> handler)
Description copied from interface:WeblogicManagementServiceAsync
Gets a specific WebLogic domain.- Specified by:
getWlsDomain
in interfaceWeblogicManagementServiceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
getWlsDomainCredential
public Future<GetWlsDomainCredentialResponse> getWlsDomainCredential(GetWlsDomainCredentialRequest request, AsyncHandler<GetWlsDomainCredentialRequest,GetWlsDomainCredentialResponse> handler)
Description copied from interface:WeblogicManagementServiceAsync
Gets WebLogic and Node Manager credentials of a specific WebLogic domain.- Specified by:
getWlsDomainCredential
in interfaceWeblogicManagementServiceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
getWlsDomainServer
public Future<GetWlsDomainServerResponse> getWlsDomainServer(GetWlsDomainServerRequest request, AsyncHandler<GetWlsDomainServerRequest,GetWlsDomainServerResponse> handler)
Description copied from interface:WeblogicManagementServiceAsync
Gets information about the specified server in a WebLogic domain.- Specified by:
getWlsDomainServer
in interfaceWeblogicManagementServiceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
getWlsDomainServerBackup
public Future<GetWlsDomainServerBackupResponse> getWlsDomainServerBackup(GetWlsDomainServerBackupRequest request, AsyncHandler<GetWlsDomainServerBackupRequest,GetWlsDomainServerBackupResponse> handler)
Description copied from interface:WeblogicManagementServiceAsync
Get details of specific backup for the WebLogic Domain.- Specified by:
getWlsDomainServerBackup
in interfaceWeblogicManagementServiceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
getWlsDomainServerBackupContent
public Future<GetWlsDomainServerBackupContentResponse> getWlsDomainServerBackupContent(GetWlsDomainServerBackupContentRequest request, AsyncHandler<GetWlsDomainServerBackupContentRequest,GetWlsDomainServerBackupContentResponse> handler)
Description copied from interface:WeblogicManagementServiceAsync
Get details of specific backup for the WebLogic Domain.- Specified by:
getWlsDomainServerBackupContent
in interfaceWeblogicManagementServiceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
getWorkRequest
public Future<GetWorkRequestResponse> getWorkRequest(GetWorkRequestRequest request, AsyncHandler<GetWorkRequestRequest,GetWorkRequestResponse> handler)
Description copied from interface:WeblogicManagementServiceAsync
Gets the details of a work request.- Specified by:
getWorkRequest
in interfaceWeblogicManagementServiceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
installLatestPatchesOnWlsDomain
public Future<InstallLatestPatchesOnWlsDomainResponse> installLatestPatchesOnWlsDomain(InstallLatestPatchesOnWlsDomainRequest request, AsyncHandler<InstallLatestPatchesOnWlsDomainRequest,InstallLatestPatchesOnWlsDomainResponse> handler)
Description copied from interface:WeblogicManagementServiceAsync
Install the latest patches on a WebLogic domain.- Specified by:
installLatestPatchesOnWlsDomain
in interfaceWeblogicManagementServiceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listAgreementRecords
public Future<ListAgreementRecordsResponse> listAgreementRecords(ListAgreementRecordsRequest request, AsyncHandler<ListAgreementRecordsRequest,ListAgreementRecordsResponse> handler)
Description copied from interface:WeblogicManagementServiceAsync
List the terms of use agreement record for the WebLogic domain.- Specified by:
listAgreementRecords
in interfaceWeblogicManagementServiceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listApplicablePatches
public Future<ListApplicablePatchesResponse> listApplicablePatches(ListApplicablePatchesRequest request, AsyncHandler<ListApplicablePatchesRequest,ListApplicablePatchesResponse> handler)
Description copied from interface:WeblogicManagementServiceAsync
Gets the latest patches that can be installed to the WebLogic domains.- Specified by:
listApplicablePatches
in interfaceWeblogicManagementServiceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listManagedInstanceScanResults
public Future<ListManagedInstanceScanResultsResponse> listManagedInstanceScanResults(ListManagedInstanceScanResultsRequest request, AsyncHandler<ListManagedInstanceScanResultsRequest,ListManagedInstanceScanResultsResponse> handler)
Description copied from interface:WeblogicManagementServiceAsync
Gets all the scan results for all WebLogic servers in the managed instance.- Specified by:
listManagedInstanceScanResults
in interfaceWeblogicManagementServiceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listManagedInstanceServerInstalledPatches
public Future<ListManagedInstanceServerInstalledPatchesResponse> listManagedInstanceServerInstalledPatches(ListManagedInstanceServerInstalledPatchesRequest request, AsyncHandler<ListManagedInstanceServerInstalledPatchesRequest,ListManagedInstanceServerInstalledPatchesResponse> handler)
Description copied from interface:WeblogicManagementServiceAsync
Gets a list of installed patches on a server in a managed instance.- Specified by:
listManagedInstanceServerInstalledPatches
in interfaceWeblogicManagementServiceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listManagedInstanceServers
public Future<ListManagedInstanceServersResponse> listManagedInstanceServers(ListManagedInstanceServersRequest request, AsyncHandler<ListManagedInstanceServersRequest,ListManagedInstanceServersResponse> handler)
Description copied from interface:WeblogicManagementServiceAsync
Gets list of servers in a specific managed instance.- Specified by:
listManagedInstanceServers
in interfaceWeblogicManagementServiceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listManagedInstances
public Future<ListManagedInstancesResponse> listManagedInstances(ListManagedInstancesRequest request, AsyncHandler<ListManagedInstancesRequest,ListManagedInstancesResponse> handler)
Description copied from interface:WeblogicManagementServiceAsync
Lists managed instances that match the specified compartment or managed instance OCID.Filter the list against a variety of criteria including but not limited to its name, status and compartment.
- Specified by:
listManagedInstances
in interfaceWeblogicManagementServiceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listRequiredPolicies
public Future<ListRequiredPoliciesResponse> listRequiredPolicies(ListRequiredPoliciesRequest request, AsyncHandler<ListRequiredPoliciesRequest,ListRequiredPoliciesResponse> handler)
Description copied from interface:WeblogicManagementServiceAsync
Gets all the required policies for the WebLogic Management Service.- Specified by:
listRequiredPolicies
in interfaceWeblogicManagementServiceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listWlsDomainCredentials
public Future<ListWlsDomainCredentialsResponse> listWlsDomainCredentials(ListWlsDomainCredentialsRequest request, AsyncHandler<ListWlsDomainCredentialsRequest,ListWlsDomainCredentialsResponse> handler)
Description copied from interface:WeblogicManagementServiceAsync
Gets domain credentials of a specific domain.- Specified by:
listWlsDomainCredentials
in interfaceWeblogicManagementServiceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listWlsDomainScanResults
public Future<ListWlsDomainScanResultsResponse> listWlsDomainScanResults(ListWlsDomainScanResultsRequest request, AsyncHandler<ListWlsDomainScanResultsRequest,ListWlsDomainScanResultsResponse> handler)
Description copied from interface:WeblogicManagementServiceAsync
Get all scan results for a server in a specific WebLogic domain.- Specified by:
listWlsDomainScanResults
in interfaceWeblogicManagementServiceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listWlsDomainServerBackups
public Future<ListWlsDomainServerBackupsResponse> listWlsDomainServerBackups(ListWlsDomainServerBackupsRequest request, AsyncHandler<ListWlsDomainServerBackupsRequest,ListWlsDomainServerBackupsResponse> handler)
Description copied from interface:WeblogicManagementServiceAsync
Gets a list of backups for the server of a specific WebLogic Domain.- Specified by:
listWlsDomainServerBackups
in interfaceWeblogicManagementServiceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listWlsDomainServerInstalledPatches
public Future<ListWlsDomainServerInstalledPatchesResponse> listWlsDomainServerInstalledPatches(ListWlsDomainServerInstalledPatchesRequest request, AsyncHandler<ListWlsDomainServerInstalledPatchesRequest,ListWlsDomainServerInstalledPatchesResponse> handler)
Description copied from interface:WeblogicManagementServiceAsync
Gets a list of installed patches on a server for a domain.- Specified by:
listWlsDomainServerInstalledPatches
in interfaceWeblogicManagementServiceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listWlsDomainServers
public Future<ListWlsDomainServersResponse> listWlsDomainServers(ListWlsDomainServersRequest request, AsyncHandler<ListWlsDomainServersRequest,ListWlsDomainServersResponse> handler)
Description copied from interface:WeblogicManagementServiceAsync
Gets list of servers in a specific WebLogic domain.- Specified by:
listWlsDomainServers
in interfaceWeblogicManagementServiceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listWlsDomains
public Future<ListWlsDomainsResponse> listWlsDomains(ListWlsDomainsRequest request, AsyncHandler<ListWlsDomainsRequest,ListWlsDomainsResponse> handler)
Description copied from interface:WeblogicManagementServiceAsync
Gets all WebLogic domains in a given compartment.- Specified by:
listWlsDomains
in interfaceWeblogicManagementServiceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listWlsDomainsSharingMiddlewares
public Future<ListWlsDomainsSharingMiddlewaresResponse> listWlsDomainsSharingMiddlewares(ListWlsDomainsSharingMiddlewaresRequest request, AsyncHandler<ListWlsDomainsSharingMiddlewaresRequest,ListWlsDomainsSharingMiddlewaresResponse> handler)
Description copied from interface:WeblogicManagementServiceAsync
Gets a list of WebLogic domains that share middleware with a specific domain.- Specified by:
listWlsDomainsSharingMiddlewares
in interfaceWeblogicManagementServiceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listWorkRequestErrors
public Future<ListWorkRequestErrorsResponse> listWorkRequestErrors(ListWorkRequestErrorsRequest request, AsyncHandler<ListWorkRequestErrorsRequest,ListWorkRequestErrorsResponse> handler)
Description copied from interface:WeblogicManagementServiceAsync
Lists the errors for a work request.- Specified by:
listWorkRequestErrors
in interfaceWeblogicManagementServiceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listWorkRequestLogs
public Future<ListWorkRequestLogsResponse> listWorkRequestLogs(ListWorkRequestLogsRequest request, AsyncHandler<ListWorkRequestLogsRequest,ListWorkRequestLogsResponse> handler)
Description copied from interface:WeblogicManagementServiceAsync
Lists the logs for a work request.- Specified by:
listWorkRequestLogs
in interfaceWeblogicManagementServiceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
listWorkRequests
public Future<ListWorkRequestsResponse> listWorkRequests(ListWorkRequestsRequest request, AsyncHandler<ListWorkRequestsRequest,ListWorkRequestsResponse> handler)
Description copied from interface:WeblogicManagementServiceAsync
Lists the work requests in a compartment.- Specified by:
listWorkRequests
in interfaceWeblogicManagementServiceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
restartWlsDomain
public Future<RestartWlsDomainResponse> restartWlsDomain(RestartWlsDomainRequest request, AsyncHandler<RestartWlsDomainRequest,RestartWlsDomainResponse> handler)
Description copied from interface:WeblogicManagementServiceAsync
Restarts all the servers in the WebLogic domains.Servers that are already stopped are ignored.
- Specified by:
restartWlsDomain
in interfaceWeblogicManagementServiceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
restoreWlsDomain
public Future<RestoreWlsDomainResponse> restoreWlsDomain(RestoreWlsDomainRequest request, AsyncHandler<RestoreWlsDomainRequest,RestoreWlsDomainResponse> handler)
Description copied from interface:WeblogicManagementServiceAsync
Restore a domain from backup.If the backup contains a MIDDLEWARE asset, then the middleware of the domain, including patches, will be restored.
- Specified by:
restoreWlsDomain
in interfaceWeblogicManagementServiceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
scanManagedInstance
public Future<ScanManagedInstanceResponse> scanManagedInstance(ScanManagedInstanceRequest request, AsyncHandler<ScanManagedInstanceRequest,ScanManagedInstanceResponse> handler)
Description copied from interface:WeblogicManagementServiceAsync
Scans a managed instance for WebLogic domains.- Specified by:
scanManagedInstance
in interfaceWeblogicManagementServiceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
scanWlsDomain
public Future<ScanWlsDomainResponse> scanWlsDomain(ScanWlsDomainRequest request, AsyncHandler<ScanWlsDomainRequest,ScanWlsDomainResponse> handler)
Description copied from interface:WeblogicManagementServiceAsync
Runs a series of checks in the WebLogic domain.- Specified by:
scanWlsDomain
in interfaceWeblogicManagementServiceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
setRestartOrder
public Future<SetRestartOrderResponse> setRestartOrder(SetRestartOrderRequest request, AsyncHandler<SetRestartOrderRequest,SetRestartOrderResponse> handler)
Description copied from interface:WeblogicManagementServiceAsync
Sets restart order of servers in specific WebLogic domain.- Specified by:
setRestartOrder
in interfaceWeblogicManagementServiceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
startWlsDomain
public Future<StartWlsDomainResponse> startWlsDomain(StartWlsDomainRequest request, AsyncHandler<StartWlsDomainRequest,StartWlsDomainResponse> handler)
Description copied from interface:WeblogicManagementServiceAsync
Starts all the servers in the WebLogic domain.Servers that are already started are ignored.
- Specified by:
startWlsDomain
in interfaceWeblogicManagementServiceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
stopWlsDomain
public Future<StopWlsDomainResponse> stopWlsDomain(StopWlsDomainRequest request, AsyncHandler<StopWlsDomainRequest,StopWlsDomainResponse> handler)
Description copied from interface:WeblogicManagementServiceAsync
Stops all the servers in the WebLogic domain.Servers that are already stopped are ignored.
- Specified by:
stopWlsDomain
in interfaceWeblogicManagementServiceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
summarizeResourceInventory
public Future<SummarizeResourceInventoryResponse> summarizeResourceInventory(SummarizeResourceInventoryRequest request, AsyncHandler<SummarizeResourceInventoryRequest,SummarizeResourceInventoryResponse> handler)
Description copied from interface:WeblogicManagementServiceAsync
Gets the data to be shown in the Overview page of the service in a given compartment.- Specified by:
summarizeResourceInventory
in interfaceWeblogicManagementServiceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
updateManagedInstance
public Future<UpdateManagedInstanceResponse> updateManagedInstance(UpdateManagedInstanceRequest request, AsyncHandler<UpdateManagedInstanceRequest,UpdateManagedInstanceResponse> handler)
Description copied from interface:WeblogicManagementServiceAsync
Updates the specified managed instance information, such as discovery interval and domain search path.- Specified by:
updateManagedInstance
in interfaceWeblogicManagementServiceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
updateWlsDomain
public Future<UpdateWlsDomainResponse> updateWlsDomain(UpdateWlsDomainRequest request, AsyncHandler<UpdateWlsDomainRequest,UpdateWlsDomainResponse> handler)
Description copied from interface:WeblogicManagementServiceAsync
Updates a specific WebLogic domain.- Specified by:
updateWlsDomain
in interfaceWeblogicManagementServiceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
updateWlsDomainCredential
public Future<UpdateWlsDomainCredentialResponse> updateWlsDomainCredential(UpdateWlsDomainCredentialRequest request, AsyncHandler<UpdateWlsDomainCredentialRequest,UpdateWlsDomainCredentialResponse> handler)
Description copied from interface:WeblogicManagementServiceAsync
Updates WebLogic domain credentials of specific WebLogic domain.- Specified by:
updateWlsDomainCredential
in interfaceWeblogicManagementServiceAsync
- Parameters:
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.- Returns:
- A Future that can be used to get the response if no AsyncHandler was provided. Note, if you provide an AsyncHandler and use the Future, some types of responses (like java.io.InputStream) may not be able to be read in both places as the underlying stream may only be consumed once.
-
getDefaultConfigurator
protected ClientConfigurator getDefaultConfigurator()
-
useRealmSpecificEndpointTemplate
public void useRealmSpecificEndpointTemplate(boolean useOfRealmSpecificEndpointTemplateEnabled)
This method should be used to enable or disable the use of realm-specific endpoint template.The default value is null. To enable the use of endpoint template defined for the realm in use, set the flag to true To disable the use of endpoint template defined for the realm in use, set the flag to false
- Parameters:
useOfRealmSpecificEndpointTemplateEnabled
- This flag can be set to true or false to enable or disable the use of realm-specific endpoint template respectively
-
populateServiceParametersInEndpoint
public final void populateServiceParametersInEndpoint(String endpoint, Map<String,Object> requiredParametersMap)
Populate the parameters in the endpoint with its corresponding value and update the base endpoint.The value will be populated iff the parameter in endpoint is a required request path parameter or a required request query parameter. If not, the parameter in the endpoint will be ignored and left blank.
- Parameters:
endpoint
- The endpoint template in userequiredParametersMap
- Map of parameter name as key and value set in request path or query parameter as value
-
updateBaseEndpoint
public final void updateBaseEndpoint(String endpoint)
This method should be used for parameterized endpoint templates only.This does not include {region} and {secondLevelDomain} parameters.
- Parameters:
endpoint
- The updated endpoint to use
-
setEndpoint
public final void setEndpoint(String endpoint)
-
getEndpoint
public final String getEndpoint()
-
refreshClient
public final void refreshClient()
Rebuild the backingHttpClient
.This will call
ClientConfigurator
s again, and can be used to e.g. refresh the SSL certificate.
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
-
getClientCommonLibraryVersion
public String getClientCommonLibraryVersion()
-
getMinimumClientCommonLibraryVersionFromClient
public Optional<String> getMinimumClientCommonLibraryVersionFromClient()
-
clientCall
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)
-
-