Class GrpcEnvironmentsStub
- java.lang.Object
-
- com.google.cloud.orchestration.airflow.service.v1beta1.stub.EnvironmentsStub
-
- com.google.cloud.orchestration.airflow.service.v1beta1.stub.GrpcEnvironmentsStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@BetaApi @Generated("by gapic-generator-java") public class GrpcEnvironmentsStub extends EnvironmentsStub
gRPC stub implementation for the Environments service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGrpcEnvironmentsStub(EnvironmentsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of GrpcEnvironmentsStub, using the given settings.protectedGrpcEnvironmentsStub(EnvironmentsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)Constructs an instance of GrpcEnvironmentsStub, using the given settings.
-
Method Summary
-
Methods inherited from class com.google.cloud.orchestration.airflow.service.v1beta1.stub.EnvironmentsStub
getHttpJsonOperationsStub
-
-
-
-
Constructor Detail
-
GrpcEnvironmentsStub
protected GrpcEnvironmentsStub(EnvironmentsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of GrpcEnvironmentsStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
IOException
-
GrpcEnvironmentsStub
protected GrpcEnvironmentsStub(EnvironmentsStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
Constructs an instance of GrpcEnvironmentsStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
IOException
-
-
Method Detail
-
create
public static final GrpcEnvironmentsStub create(EnvironmentsStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcEnvironmentsStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcEnvironmentsStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getOperationsStub
public com.google.longrunning.stub.GrpcOperationsStub getOperationsStub()
- Overrides:
getOperationsStubin classEnvironmentsStub
-
createEnvironmentCallable
public com.google.api.gax.rpc.UnaryCallable<CreateEnvironmentRequest,com.google.longrunning.Operation> createEnvironmentCallable()
- Overrides:
createEnvironmentCallablein classEnvironmentsStub
-
createEnvironmentOperationCallable
public com.google.api.gax.rpc.OperationCallable<CreateEnvironmentRequest,Environment,OperationMetadata> createEnvironmentOperationCallable()
- Overrides:
createEnvironmentOperationCallablein classEnvironmentsStub
-
getEnvironmentCallable
public com.google.api.gax.rpc.UnaryCallable<GetEnvironmentRequest,Environment> getEnvironmentCallable()
- Overrides:
getEnvironmentCallablein classEnvironmentsStub
-
listEnvironmentsCallable
public com.google.api.gax.rpc.UnaryCallable<ListEnvironmentsRequest,ListEnvironmentsResponse> listEnvironmentsCallable()
- Overrides:
listEnvironmentsCallablein classEnvironmentsStub
-
listEnvironmentsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListEnvironmentsRequest,EnvironmentsClient.ListEnvironmentsPagedResponse> listEnvironmentsPagedCallable()
- Overrides:
listEnvironmentsPagedCallablein classEnvironmentsStub
-
updateEnvironmentCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateEnvironmentRequest,com.google.longrunning.Operation> updateEnvironmentCallable()
- Overrides:
updateEnvironmentCallablein classEnvironmentsStub
-
updateEnvironmentOperationCallable
public com.google.api.gax.rpc.OperationCallable<UpdateEnvironmentRequest,Environment,OperationMetadata> updateEnvironmentOperationCallable()
- Overrides:
updateEnvironmentOperationCallablein classEnvironmentsStub
-
deleteEnvironmentCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteEnvironmentRequest,com.google.longrunning.Operation> deleteEnvironmentCallable()
- Overrides:
deleteEnvironmentCallablein classEnvironmentsStub
-
deleteEnvironmentOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteEnvironmentRequest,com.google.protobuf.Empty,OperationMetadata> deleteEnvironmentOperationCallable()
- Overrides:
deleteEnvironmentOperationCallablein classEnvironmentsStub
-
restartWebServerCallable
public com.google.api.gax.rpc.UnaryCallable<RestartWebServerRequest,com.google.longrunning.Operation> restartWebServerCallable()
- Overrides:
restartWebServerCallablein classEnvironmentsStub
-
restartWebServerOperationCallable
public com.google.api.gax.rpc.OperationCallable<RestartWebServerRequest,Environment,OperationMetadata> restartWebServerOperationCallable()
- Overrides:
restartWebServerOperationCallablein classEnvironmentsStub
-
checkUpgradeCallable
public com.google.api.gax.rpc.UnaryCallable<CheckUpgradeRequest,com.google.longrunning.Operation> checkUpgradeCallable()
- Overrides:
checkUpgradeCallablein classEnvironmentsStub
-
checkUpgradeOperationCallable
public com.google.api.gax.rpc.OperationCallable<CheckUpgradeRequest,CheckUpgradeResponse,OperationMetadata> checkUpgradeOperationCallable()
- Overrides:
checkUpgradeOperationCallablein classEnvironmentsStub
-
executeAirflowCommandCallable
public com.google.api.gax.rpc.UnaryCallable<ExecuteAirflowCommandRequest,ExecuteAirflowCommandResponse> executeAirflowCommandCallable()
- Overrides:
executeAirflowCommandCallablein classEnvironmentsStub
-
stopAirflowCommandCallable
public com.google.api.gax.rpc.UnaryCallable<StopAirflowCommandRequest,StopAirflowCommandResponse> stopAirflowCommandCallable()
- Overrides:
stopAirflowCommandCallablein classEnvironmentsStub
-
pollAirflowCommandCallable
public com.google.api.gax.rpc.UnaryCallable<PollAirflowCommandRequest,PollAirflowCommandResponse> pollAirflowCommandCallable()
- Overrides:
pollAirflowCommandCallablein classEnvironmentsStub
-
saveSnapshotCallable
public com.google.api.gax.rpc.UnaryCallable<SaveSnapshotRequest,com.google.longrunning.Operation> saveSnapshotCallable()
- Overrides:
saveSnapshotCallablein classEnvironmentsStub
-
saveSnapshotOperationCallable
public com.google.api.gax.rpc.OperationCallable<SaveSnapshotRequest,SaveSnapshotResponse,OperationMetadata> saveSnapshotOperationCallable()
- Overrides:
saveSnapshotOperationCallablein classEnvironmentsStub
-
loadSnapshotCallable
public com.google.api.gax.rpc.UnaryCallable<LoadSnapshotRequest,com.google.longrunning.Operation> loadSnapshotCallable()
- Overrides:
loadSnapshotCallablein classEnvironmentsStub
-
loadSnapshotOperationCallable
public com.google.api.gax.rpc.OperationCallable<LoadSnapshotRequest,LoadSnapshotResponse,OperationMetadata> loadSnapshotOperationCallable()
- Overrides:
loadSnapshotOperationCallablein classEnvironmentsStub
-
databaseFailoverCallable
public com.google.api.gax.rpc.UnaryCallable<DatabaseFailoverRequest,com.google.longrunning.Operation> databaseFailoverCallable()
- Overrides:
databaseFailoverCallablein classEnvironmentsStub
-
databaseFailoverOperationCallable
public com.google.api.gax.rpc.OperationCallable<DatabaseFailoverRequest,DatabaseFailoverResponse,OperationMetadata> databaseFailoverOperationCallable()
- Overrides:
databaseFailoverOperationCallablein classEnvironmentsStub
-
fetchDatabasePropertiesCallable
public com.google.api.gax.rpc.UnaryCallable<FetchDatabasePropertiesRequest,FetchDatabasePropertiesResponse> fetchDatabasePropertiesCallable()
- Overrides:
fetchDatabasePropertiesCallablein classEnvironmentsStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classEnvironmentsStub
-
shutdown
public void shutdown()
-
isShutdown
public boolean isShutdown()
-
isTerminated
public boolean isTerminated()
-
shutdownNow
public void shutdownNow()
-
awaitTermination
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException- Throws:
InterruptedException
-
-