@Generated(value="OracleSDKGenerator", comments="API Version: 20210610") public interface JavaManagementServiceAsync extends AutoCloseable
API for the Java Management Service. Use this API to view, create, and manage Fleets.
close
void refreshClient()
Rebuilds the client from scratch. Useful to refresh certificates.
void setEndpoint(String endpoint)
Sets the endpoint to call (ex, https://www.example.com).
endpoint
- The endpoint of the serice.String getEndpoint()
Gets the set endpoint for REST call (ex, https://www.example.com)
void setRegion(Region region)
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.
region
- The region of the service.void setRegion(String regionId)
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
.
regionId
- The public region ID.void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled)
Determines whether realm specific endpoint should be used or not. Set realmSpecificEndpointTemplateEnabled to “true” if the user wants to enable use of realm specific endpoint template, otherwise set it to “false”
realmSpecificEndpointTemplateEnabled
- flag to enable the use of realm specific endpoint
templateFuture<AddFleetInstallationSitesResponse> addFleetInstallationSites(AddFleetInstallationSitesRequest request, AsyncHandler<AddFleetInstallationSitesRequest,AddFleetInstallationSitesResponse> handler)
Add Java installation sites in a Fleet.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<CancelWorkRequestResponse> cancelWorkRequest(CancelWorkRequestRequest request, AsyncHandler<CancelWorkRequestRequest,CancelWorkRequestResponse> handler)
Deletes the work request specified by an identifier.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ChangeFleetCompartmentResponse> changeFleetCompartment(ChangeFleetCompartmentRequest request, AsyncHandler<ChangeFleetCompartmentRequest,ChangeFleetCompartmentResponse> handler)
Move a specified Fleet into the compartment identified in the POST form. When provided, If-Match is checked against ETag values of the resource.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<CreateBlocklistResponse> createBlocklist(CreateBlocklistRequest request, AsyncHandler<CreateBlocklistRequest,CreateBlocklistResponse> handler)
Add a new record to the fleet blocklist.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<CreateFleetResponse> createFleet(CreateFleetRequest request, AsyncHandler<CreateFleetRequest,CreateFleetResponse> handler)
Create a new Fleet using the information provided.
`inventoryLog` is now a required parameter for CreateFleet API. Update existing applications using this API before July 15, 2022 to ensure the applications continue to work. See the [Service Change Notice](https://docs.oracle.com/en-us/iaas/Content/servicechanges.htm#JMS) for more details. Migrate existing fleets using the `UpdateFleet` API to set the `inventoryLog` parameter.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DeleteBlocklistResponse> deleteBlocklist(DeleteBlocklistRequest request, AsyncHandler<DeleteBlocklistRequest,DeleteBlocklistResponse> handler)
Deletes the blocklist record specified by an identifier.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DeleteCryptoAnalysisResultResponse> deleteCryptoAnalysisResult(DeleteCryptoAnalysisResultRequest request, AsyncHandler<DeleteCryptoAnalysisResultRequest,DeleteCryptoAnalysisResultResponse> handler)
Deletes only the metadata of the Crypto Event Analysis result, but the file remains in the object storage.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DeleteFleetResponse> deleteFleet(DeleteFleetRequest request, AsyncHandler<DeleteFleetRequest,DeleteFleetResponse> handler)
Deletes the Fleet specified by an identifier.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GenerateAgentDeployScriptResponse> generateAgentDeployScript(GenerateAgentDeployScriptRequest request, AsyncHandler<GenerateAgentDeployScriptRequest,GenerateAgentDeployScriptResponse> handler)
Generates Agent Deploy Script for Fleet using the information provided.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetCryptoAnalysisResultResponse> getCryptoAnalysisResult(GetCryptoAnalysisResultRequest request, AsyncHandler<GetCryptoAnalysisResultRequest,GetCryptoAnalysisResultResponse> handler)
Retrieve metadata of the Crypto Event Analysis result.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetFleetResponse> getFleet(GetFleetRequest request, AsyncHandler<GetFleetRequest,GetFleetResponse> handler)
Retrieve a Fleet with the specified identifier.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetFleetAdvancedFeatureConfigurationResponse> getFleetAdvancedFeatureConfiguration(GetFleetAdvancedFeatureConfigurationRequest request, AsyncHandler<GetFleetAdvancedFeatureConfigurationRequest,GetFleetAdvancedFeatureConfigurationResponse> handler)
Returns fleet level advanced feature configuration
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetFleetAgentConfigurationResponse> getFleetAgentConfiguration(GetFleetAgentConfigurationRequest request, AsyncHandler<GetFleetAgentConfigurationRequest,GetFleetAgentConfigurationResponse> handler)
Retrieve a Fleet Agent Configuration for the specified Fleet.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetJavaFamilyResponse> getJavaFamily(GetJavaFamilyRequest request, AsyncHandler<GetJavaFamilyRequest,GetJavaFamilyResponse> handler)
Returns metadata associated with a specific Java release family.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetJavaReleaseResponse> getJavaRelease(GetJavaReleaseRequest request, AsyncHandler<GetJavaReleaseRequest,GetJavaReleaseResponse> handler)
Returns detail of a Java release.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetWorkRequestResponse> getWorkRequest(GetWorkRequestRequest request, AsyncHandler<GetWorkRequestRequest,GetWorkRequestResponse> handler)
Retrieve the details of a work request with the specified ID.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListBlocklistsResponse> listBlocklists(ListBlocklistsRequest request, AsyncHandler<ListBlocklistsRequest,ListBlocklistsResponse> handler)
Returns a list of blocklist entities contained by a fleet.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListCryptoAnalysisResultsResponse> listCryptoAnalysisResults(ListCryptoAnalysisResultsRequest request, AsyncHandler<ListCryptoAnalysisResultsRequest,ListCryptoAnalysisResultsResponse> handler)
List Crypto Event Analysis results.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListFleetsResponse> listFleets(ListFleetsRequest request, AsyncHandler<ListFleetsRequest,ListFleetsResponse> handler)
Returns a list of all the Fleets contained by a compartment. The query parameter
compartmentId
is required unless the query parameter id
is specified.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListInstallationSitesResponse> listInstallationSites(ListInstallationSitesRequest request, AsyncHandler<ListInstallationSitesRequest,ListInstallationSitesResponse> handler)
List Java installation sites in a Fleet filtered by query parameters.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListJavaFamiliesResponse> listJavaFamilies(ListJavaFamiliesRequest request, AsyncHandler<ListJavaFamiliesRequest,ListJavaFamiliesResponse> handler)
Returns a list of the Java release family information. A Java release family is typically a major version in the Java version identifier.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListJavaReleasesResponse> listJavaReleases(ListJavaReleasesRequest request, AsyncHandler<ListJavaReleasesRequest,ListJavaReleasesResponse> handler)
Returns a list of Java releases.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListJreUsageResponse> listJreUsage(ListJreUsageRequest request, AsyncHandler<ListJreUsageRequest,ListJreUsageResponse> handler)
List Java Runtime usage in a specified host filtered by query parameters.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListWorkItemsResponse> listWorkItems(ListWorkItemsRequest request, AsyncHandler<ListWorkItemsRequest,ListWorkItemsResponse> handler)
Retrieve a (paginated) list of work items for a specified work request.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListWorkRequestErrorsResponse> listWorkRequestErrors(ListWorkRequestErrorsRequest request, AsyncHandler<ListWorkRequestErrorsRequest,ListWorkRequestErrorsResponse> handler)
Retrieve a (paginated) list of errors for a specified work request.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListWorkRequestLogsResponse> listWorkRequestLogs(ListWorkRequestLogsRequest request, AsyncHandler<ListWorkRequestLogsRequest,ListWorkRequestLogsResponse> handler)
Retrieve a (paginated) list of logs for a specified work request.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListWorkRequestsResponse> listWorkRequests(ListWorkRequestsRequest request, AsyncHandler<ListWorkRequestsRequest,ListWorkRequestsResponse> handler)
List the work requests in a compartment. The query parameter compartmentId
is required
unless the query parameter id
or fleetId
is specified.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<RemoveFleetInstallationSitesResponse> removeFleetInstallationSites(RemoveFleetInstallationSitesRequest request, AsyncHandler<RemoveFleetInstallationSitesRequest,RemoveFleetInstallationSitesResponse> handler)
Remove Java installation sites in a Fleet.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<RequestCryptoAnalysesResponse> requestCryptoAnalyses(RequestCryptoAnalysesRequest request, AsyncHandler<RequestCryptoAnalysesRequest,RequestCryptoAnalysesResponse> handler)
Request to perform crypto analyses. The result of crypto analysis will be uploaded to the object storage bucket desiginated when enable Crypto Event Analysis feature.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<RequestJfrRecordingsResponse> requestJfrRecordings(RequestJfrRecordingsRequest request, AsyncHandler<RequestJfrRecordingsRequest,RequestJfrRecordingsResponse> handler)
Request to collect the JFR recordings on the selected target. The JFR files are uploaded to the object storage bucket that you designated when you enabled the recording feature.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ScanJavaServerUsageResponse> scanJavaServerUsage(ScanJavaServerUsageRequest request, AsyncHandler<ScanJavaServerUsageRequest,ScanJavaServerUsageResponse> handler)
Scan Java server usage in a fleet.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ScanLibraryUsageResponse> scanLibraryUsage(ScanLibraryUsageRequest request, AsyncHandler<ScanLibraryUsageRequest,ScanLibraryUsageResponse> handler)
Scan library usage in a fleet.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<SummarizeApplicationUsageResponse> summarizeApplicationUsage(SummarizeApplicationUsageRequest request, AsyncHandler<SummarizeApplicationUsageRequest,SummarizeApplicationUsageResponse> handler)
List application usage in a Fleet filtered by query parameters.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<SummarizeDeployedApplicationUsageResponse> summarizeDeployedApplicationUsage(SummarizeDeployedApplicationUsageRequest request, AsyncHandler<SummarizeDeployedApplicationUsageRequest,SummarizeDeployedApplicationUsageResponse> handler)
List deployed applications in a fleet filtered by query parameters.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<SummarizeInstallationUsageResponse> summarizeInstallationUsage(SummarizeInstallationUsageRequest request, AsyncHandler<SummarizeInstallationUsageRequest,SummarizeInstallationUsageResponse> handler)
List Java installation usage in a Fleet filtered by query parameters.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<SummarizeJavaServerInstanceUsageResponse> summarizeJavaServerInstanceUsage(SummarizeJavaServerInstanceUsageRequest request, AsyncHandler<SummarizeJavaServerInstanceUsageRequest,SummarizeJavaServerInstanceUsageResponse> handler)
List Java server instances in a fleet filtered by query parameters.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<SummarizeJavaServerUsageResponse> summarizeJavaServerUsage(SummarizeJavaServerUsageRequest request, AsyncHandler<SummarizeJavaServerUsageRequest,SummarizeJavaServerUsageResponse> handler)
List Java servers in a fleet filtered by query parameters.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<SummarizeJreUsageResponse> summarizeJreUsage(SummarizeJreUsageRequest request, AsyncHandler<SummarizeJreUsageRequest,SummarizeJreUsageResponse> handler)
List Java Runtime usage in a specified Fleet filtered by query parameters.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<SummarizeLibraryUsageResponse> summarizeLibraryUsage(SummarizeLibraryUsageRequest request, AsyncHandler<SummarizeLibraryUsageRequest,SummarizeLibraryUsageResponse> handler)
List libraries in a fleet filtered by query parameters.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<SummarizeManagedInstanceUsageResponse> summarizeManagedInstanceUsage(SummarizeManagedInstanceUsageRequest request, AsyncHandler<SummarizeManagedInstanceUsageRequest,SummarizeManagedInstanceUsageResponse> handler)
List managed instance usage in a Fleet filtered by query parameters.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<SummarizeResourceInventoryResponse> summarizeResourceInventory(SummarizeResourceInventoryRequest request, AsyncHandler<SummarizeResourceInventoryRequest,SummarizeResourceInventoryResponse> handler)
Retrieve the inventory of JMS resources in the specified compartment: a list of the number of active fleets, managed instances, Java Runtimes, Java installations, and applications.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<UpdateFleetResponse> updateFleet(UpdateFleetRequest request, AsyncHandler<UpdateFleetRequest,UpdateFleetResponse> handler)
Update the Fleet specified by an identifier.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<UpdateFleetAdvancedFeatureConfigurationResponse> updateFleetAdvancedFeatureConfiguration(UpdateFleetAdvancedFeatureConfigurationRequest request, AsyncHandler<UpdateFleetAdvancedFeatureConfigurationRequest,UpdateFleetAdvancedFeatureConfigurationResponse> handler)
Update advanced feature configurations for the fleet Ensure that the namespace and bucket storage are created prior to turning on the JfrRecording or CryptoEventAnalysis feature
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<UpdateFleetAgentConfigurationResponse> updateFleetAgentConfiguration(UpdateFleetAgentConfigurationRequest request, AsyncHandler<UpdateFleetAgentConfigurationRequest,UpdateFleetAgentConfigurationResponse> handler)
Update the Fleet Agent Configuration for the specified Fleet.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Copyright © 2016–2023. All rights reserved.