@Generated(value="OracleSDKGenerator", comments="API Version: 20200531") public class LoggingManagementAsyncClient extends Object implements LoggingManagementAsync
Async client implementation for LoggingManagement service.
There are two ways to use async client:
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. Modifier and Type | Class and Description |
---|---|
static class |
LoggingManagementAsyncClient.Builder
Builder class for this client.
|
Modifier and Type | Field and Description |
---|---|
static Service |
SERVICE
Service instance for LoggingManagement.
|
Constructor and Description |
---|
LoggingManagementAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory)
Creates a new service instance using the given authentication provider and client configuration.
|
LoggingManagementAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
List<ClientConfigurator> additionalClientConfigurators)
Creates a new service instance using the given authentication provider and client configuration.
|
LoggingManagementAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint)
Creates a new service instance using the given authentication provider and client configuration.
|
LoggingManagementAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint)
Creates a new service instance using the given authentication provider and client configuration.
|
LoggingManagementAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint,
RestClientFactoryBuilder restClientFactoryBuilder)
Creates a new service instance using the given authentication provider and client configuration.
|
LoggingManagementAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
Creates a new service instance using the given authentication provider.
|
LoggingManagementAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration)
Creates a new service instance using the given authentication provider and client configuration.
|
LoggingManagementAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator)
Creates a new service instance using the given authentication provider and client configuration.
|
public static final Service SERVICE
Service instance for LoggingManagement.
public LoggingManagementAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
Creates a new service instance using the given authentication provider.
authenticationDetailsProvider
- The authentication details provider, required.public LoggingManagementAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration)
Creates a new service instance using the given authentication provider and client configuration.
authenticationDetailsProvider
- The authentication details provider, required.configuration
- The client configuration, optional.public LoggingManagementAsyncClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator)
Creates a new service instance using the given authentication provider and client configuration. Additionally, a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization.
authenticationDetailsProvider
- The authentication details provider, required.configuration
- The client configuration, optional.clientConfigurator
- ClientConfigurator that will be invoked for additional configuration of a REST client, optional.public LoggingManagementAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory)
Creates a new service instance using the given authentication provider and client configuration. Additionally, a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization.
This is an advanced constructor for clients that want to take control over how requests are signed.
authenticationDetailsProvider
- The authentication details provider, required.configuration
- The client configuration, optional.clientConfigurator
- ClientConfigurator that will be invoked for additional configuration of a REST client, optional.defaultRequestSignerFactory
- The request signer factory used to create the request signer for this service.public LoggingManagementAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators)
Creates a new service instance using the given authentication provider and client configuration. Additionally, a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization.
This is an advanced constructor for clients that want to take control over how requests are signed.
authenticationDetailsProvider
- The authentication details provider, required.configuration
- The client configuration, optional.clientConfigurator
- ClientConfigurator that will be invoked for additional configuration of a REST client, optional.defaultRequestSignerFactory
- The request signer factory used to create the request signer for this service.additionalClientConfigurators
- Additional client configurators to be run after the primary configurator.public LoggingManagementAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
Creates a new service instance using the given authentication provider and client configuration. Additionally, a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization.
This is an advanced constructor for clients that want to take control over how requests are signed.
authenticationDetailsProvider
- The authentication details provider, required.configuration
- The client configuration, optional.clientConfigurator
- ClientConfigurator that will be invoked for additional configuration of a REST client, optional.defaultRequestSignerFactory
- The request signer factory used to create the request signer for this service.additionalClientConfigurators
- Additional client configurators to be run after the primary configurator.endpoint
- Endpoint, or null to leave unset (note, may be overridden by authenticationDetailsProvider
)public LoggingManagementAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
Creates a new service instance using the given authentication provider and client configuration. Additionally, a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization.
This is an advanced constructor for clients that want to take control over how requests are signed.
authenticationDetailsProvider
- The authentication details provider, required.configuration
- The client configuration, optional.clientConfigurator
- ClientConfigurator that will be invoked for additional configuration of a REST client, optional.defaultRequestSignerFactory
- The request signer factory used to create the request signer for this service.signingStrategyRequestSignerFactories
- The request signer factories for each signing strategy used to create the request signeradditionalClientConfigurators
- Additional client configurators to be run after the primary configurator.endpoint
- Endpoint, or null to leave unset (note, may be overridden by authenticationDetailsProvider
)public LoggingManagementAsyncClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint, RestClientFactoryBuilder restClientFactoryBuilder)
Creates a new service instance using the given authentication provider and client configuration. Additionally, a Consumer can be provided that will be invoked whenever a REST Client is created to allow for additional configuration/customization.
This is an advanced constructor for clients that want to take control over how requests are signed.
authenticationDetailsProvider
- The authentication details provider, required.configuration
- The client configuration, optional.clientConfigurator
- ClientConfigurator that will be invoked for additional configuration of a REST client, optional.defaultRequestSignerFactory
- The request signer factory used to create the request signer for this service.signingStrategyRequestSignerFactories
- The request signer factories for each signing strategy used to create the request signeradditionalClientConfigurators
- Additional client configurators to be run after the primary configurator.endpoint
- Endpoint, or null to leave unset (note, may be overridden by authenticationDetailsProvider
)restClientFactoryBuilder
- the builder for the RestClientFactory
public static LoggingManagementAsyncClient.Builder builder()
Create a builder for this client.
public void setEndpoint(String endpoint)
LoggingManagementAsync
Sets the endpoint to call (ex, https://www.example.com).
setEndpoint
in interface LoggingManagementAsync
endpoint
- The endpoint of the serice.public String getEndpoint()
LoggingManagementAsync
Gets the set endpoint for REST call (ex, https://www.example.com)
getEndpoint
in interface LoggingManagementAsync
public void setRegion(Region region)
LoggingManagementAsync
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 LoggingManagementAsync
region
- The region of the service.public void setRegion(String regionId)
LoggingManagementAsync
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 LoggingManagementAsync
regionId
- The public region ID.public void close()
close
in interface AutoCloseable
public Future<ChangeLogGroupCompartmentResponse> changeLogGroupCompartment(ChangeLogGroupCompartmentRequest request, AsyncHandler<ChangeLogGroupCompartmentRequest,ChangeLogGroupCompartmentResponse> handler)
LoggingManagementAsync
Moves a log group into a different compartment within the same tenancy. When provided, the If-Match is checked against the resource ETag values. For information about moving resources between compartments, see Moving Resources Between Compartments.
changeLogGroupCompartment
in interface LoggingManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ChangeLogLogGroupResponse> changeLogLogGroup(ChangeLogLogGroupRequest request, AsyncHandler<ChangeLogLogGroupRequest,ChangeLogLogGroupResponse> handler)
LoggingManagementAsync
Moves a log into a different log group within the same tenancy. When provided, the If-Match is checked against the ETag values of the resource.
changeLogLogGroup
in interface LoggingManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ChangeLogSavedSearchCompartmentResponse> changeLogSavedSearchCompartment(ChangeLogSavedSearchCompartmentRequest request, AsyncHandler<ChangeLogSavedSearchCompartmentRequest,ChangeLogSavedSearchCompartmentResponse> handler)
LoggingManagementAsync
Moves a saved search into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment.
changeLogSavedSearchCompartment
in interface LoggingManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ChangeUnifiedAgentConfigurationCompartmentResponse> changeUnifiedAgentConfigurationCompartment(ChangeUnifiedAgentConfigurationCompartmentRequest request, AsyncHandler<ChangeUnifiedAgentConfigurationCompartmentRequest,ChangeUnifiedAgentConfigurationCompartmentResponse> handler)
LoggingManagementAsync
Moves the unified agent configuration into a different compartment within the same tenancy. When provided, the If-Match is checked against the ETag values of the resource. For information about moving resources between compartments, see Moving Resources Between Compartments.
changeUnifiedAgentConfigurationCompartment
in interface LoggingManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<CreateLogResponse> createLog(CreateLogRequest request, AsyncHandler<CreateLogRequest,CreateLogResponse> handler)
LoggingManagementAsync
Creates a log within the specified log group. This call fails if a log group has already been created with the same displayName or (service, resource, category) triplet.
createLog
in interface LoggingManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<CreateLogGroupResponse> createLogGroup(CreateLogGroupRequest request, AsyncHandler<CreateLogGroupRequest,CreateLogGroupResponse> handler)
LoggingManagementAsync
Create a new log group with a unique display name. This call fails if the log group is already created with the same displayName in the compartment.
createLogGroup
in interface LoggingManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<CreateLogSavedSearchResponse> createLogSavedSearch(CreateLogSavedSearchRequest request, AsyncHandler<CreateLogSavedSearchRequest,CreateLogSavedSearchResponse> handler)
LoggingManagementAsync
Creates a new LogSavedSearch.
createLogSavedSearch
in interface LoggingManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<CreateUnifiedAgentConfigurationResponse> createUnifiedAgentConfiguration(CreateUnifiedAgentConfigurationRequest request, AsyncHandler<CreateUnifiedAgentConfigurationRequest,CreateUnifiedAgentConfigurationResponse> handler)
LoggingManagementAsync
Create unified agent configuration registration.
createUnifiedAgentConfiguration
in interface LoggingManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DeleteLogResponse> deleteLog(DeleteLogRequest request, AsyncHandler<DeleteLogRequest,DeleteLogResponse> handler)
LoggingManagementAsync
Deletes the log object in a log group.
deleteLog
in interface LoggingManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DeleteLogGroupResponse> deleteLogGroup(DeleteLogGroupRequest request, AsyncHandler<DeleteLogGroupRequest,DeleteLogGroupResponse> handler)
LoggingManagementAsync
Deletes the specified log group.
deleteLogGroup
in interface LoggingManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DeleteLogSavedSearchResponse> deleteLogSavedSearch(DeleteLogSavedSearchRequest request, AsyncHandler<DeleteLogSavedSearchRequest,DeleteLogSavedSearchResponse> handler)
LoggingManagementAsync
Deletes the specified log saved search.
deleteLogSavedSearch
in interface LoggingManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DeleteUnifiedAgentConfigurationResponse> deleteUnifiedAgentConfiguration(DeleteUnifiedAgentConfigurationRequest request, AsyncHandler<DeleteUnifiedAgentConfigurationRequest,DeleteUnifiedAgentConfigurationResponse> handler)
LoggingManagementAsync
Delete unified agent configuration.
deleteUnifiedAgentConfiguration
in interface LoggingManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<DeleteWorkRequestResponse> deleteWorkRequest(DeleteWorkRequestRequest request, AsyncHandler<DeleteWorkRequestRequest,DeleteWorkRequestResponse> handler)
LoggingManagementAsync
Cancel a work request that has not started yet.
deleteWorkRequest
in interface LoggingManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetLogResponse> getLog(GetLogRequest request, AsyncHandler<GetLogRequest,GetLogResponse> handler)
LoggingManagementAsync
Gets the log object configuration for the log object OCID.
getLog
in interface LoggingManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetLogGroupResponse> getLogGroup(GetLogGroupRequest request, AsyncHandler<GetLogGroupRequest,GetLogGroupResponse> handler)
LoggingManagementAsync
Get the specified log group’s information.
getLogGroup
in interface LoggingManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetLogIncludedSearchResponse> getLogIncludedSearch(GetLogIncludedSearchRequest request, AsyncHandler<GetLogIncludedSearchRequest,GetLogIncludedSearchResponse> handler)
LoggingManagementAsync
Retrieves a LogIncludedSearch.
getLogIncludedSearch
in interface LoggingManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetLogSavedSearchResponse> getLogSavedSearch(GetLogSavedSearchRequest request, AsyncHandler<GetLogSavedSearchRequest,GetLogSavedSearchResponse> handler)
LoggingManagementAsync
Retrieves a log saved search.
getLogSavedSearch
in interface LoggingManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetUnifiedAgentConfigurationResponse> getUnifiedAgentConfiguration(GetUnifiedAgentConfigurationRequest request, AsyncHandler<GetUnifiedAgentConfigurationRequest,GetUnifiedAgentConfigurationResponse> handler)
LoggingManagementAsync
Get the unified agent configuration for an ID.
getUnifiedAgentConfiguration
in interface LoggingManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<GetWorkRequestResponse> getWorkRequest(GetWorkRequestRequest request, AsyncHandler<GetWorkRequestRequest,GetWorkRequestResponse> handler)
LoggingManagementAsync
Gets the details of the work request with the given ID.
getWorkRequest
in interface LoggingManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListLogGroupsResponse> listLogGroups(ListLogGroupsRequest request, AsyncHandler<ListLogGroupsRequest,ListLogGroupsResponse> handler)
LoggingManagementAsync
Lists all log groups for the specified compartment or tenancy.
listLogGroups
in interface LoggingManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListLogIncludedSearchesResponse> listLogIncludedSearches(ListLogIncludedSearchesRequest request, AsyncHandler<ListLogIncludedSearchesRequest,ListLogIncludedSearchesResponse> handler)
LoggingManagementAsync
Lists Logging Included Searches for this compartment.
listLogIncludedSearches
in interface LoggingManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListLogSavedSearchesResponse> listLogSavedSearches(ListLogSavedSearchesRequest request, AsyncHandler<ListLogSavedSearchesRequest,ListLogSavedSearchesResponse> handler)
LoggingManagementAsync
Lists Logging Saved Searches for this compartment.
listLogSavedSearches
in interface LoggingManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListLogsResponse> listLogs(ListLogsRequest request, AsyncHandler<ListLogsRequest,ListLogsResponse> handler)
LoggingManagementAsync
Lists the specified log group’s log objects.
listLogs
in interface LoggingManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListServicesResponse> listServices(ListServicesRequest request, AsyncHandler<ListServicesRequest,ListServicesResponse> handler)
LoggingManagementAsync
Lists all services that support logging.
listServices
in interface LoggingManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListUnifiedAgentConfigurationsResponse> listUnifiedAgentConfigurations(ListUnifiedAgentConfigurationsRequest request, AsyncHandler<ListUnifiedAgentConfigurationsRequest,ListUnifiedAgentConfigurationsResponse> handler)
LoggingManagementAsync
Lists all unified agent configurations in the specified compartment.
listUnifiedAgentConfigurations
in interface LoggingManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListWorkRequestErrorsResponse> listWorkRequestErrors(ListWorkRequestErrorsRequest request, AsyncHandler<ListWorkRequestErrorsRequest,ListWorkRequestErrorsResponse> handler)
LoggingManagementAsync
Return a list of errors for a given work request.
listWorkRequestErrors
in interface LoggingManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListWorkRequestLogsResponse> listWorkRequestLogs(ListWorkRequestLogsRequest request, AsyncHandler<ListWorkRequestLogsRequest,ListWorkRequestLogsResponse> handler)
LoggingManagementAsync
Return a list of logs for a given work request.
listWorkRequestLogs
in interface LoggingManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<ListWorkRequestsResponse> listWorkRequests(ListWorkRequestsRequest request, AsyncHandler<ListWorkRequestsRequest,ListWorkRequestsResponse> handler)
LoggingManagementAsync
Lists the work requests in a compartment.
listWorkRequests
in interface LoggingManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<UpdateLogResponse> updateLog(UpdateLogRequest request, AsyncHandler<UpdateLogRequest,UpdateLogResponse> handler)
LoggingManagementAsync
Updates the existing log object with the associated configuration. This call fails if the log object does not exist.
updateLog
in interface LoggingManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<UpdateLogGroupResponse> updateLogGroup(UpdateLogGroupRequest request, AsyncHandler<UpdateLogGroupRequest,UpdateLogGroupResponse> handler)
LoggingManagementAsync
Updates the existing log group with the associated configuration. This call fails if the log group does not exist.
updateLogGroup
in interface LoggingManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<UpdateLogSavedSearchResponse> updateLogSavedSearch(UpdateLogSavedSearchRequest request, AsyncHandler<UpdateLogSavedSearchRequest,UpdateLogSavedSearchResponse> handler)
LoggingManagementAsync
Updates an existing log saved search.
updateLogSavedSearch
in interface LoggingManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.public Future<UpdateUnifiedAgentConfigurationResponse> updateUnifiedAgentConfiguration(UpdateUnifiedAgentConfigurationRequest request, AsyncHandler<UpdateUnifiedAgentConfigurationRequest,UpdateUnifiedAgentConfigurationResponse> handler)
LoggingManagementAsync
Update an existing unified agent configuration. This call fails if the log group does not exist.
updateUnifiedAgentConfiguration
in interface LoggingManagementAsync
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Copyright © 2016–2022. All rights reserved.