Class GrpcSessionControllerStub
java.lang.Object
com.google.cloud.dataproc.v1.stub.SessionControllerStub
com.google.cloud.dataproc.v1.stub.GrpcSessionControllerStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java")
public class GrpcSessionControllerStub
extends SessionControllerStub
gRPC stub implementation for the SessionController service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcSessionControllerStub(SessionControllerStubSettings settings, ClientContext clientContext) Constructs an instance of GrpcSessionControllerStub, using the given settings.protectedGrpcSessionControllerStub(SessionControllerStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcSessionControllerStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final GrpcSessionControllerStubcreate(ClientContext clientContext) static final GrpcSessionControllerStubcreate(ClientContext clientContext, GrpcStubCallableFactory callableFactory) static final GrpcSessionControllerStubcreate(SessionControllerStubSettings settings) booleanbooleanvoidshutdown()voidMethods inherited from class com.google.cloud.dataproc.v1.stub.SessionControllerStub
getHttpJsonOperationsStub
-
Constructor Details
-
GrpcSessionControllerStub
protected GrpcSessionControllerStub(SessionControllerStubSettings settings, ClientContext clientContext) throws IOException Constructs an instance of GrpcSessionControllerStub, 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
-
GrpcSessionControllerStub
protected GrpcSessionControllerStub(SessionControllerStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException Constructs an instance of GrpcSessionControllerStub, 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 Details
-
create
public static final GrpcSessionControllerStub create(SessionControllerStubSettings settings) throws IOException - Throws:
IOException
-
create
public static final GrpcSessionControllerStub create(ClientContext clientContext) throws IOException - Throws:
IOException
-
create
public static final GrpcSessionControllerStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getOperationsStub
- Overrides:
getOperationsStubin classSessionControllerStub
-
createSessionCallable
- Overrides:
createSessionCallablein classSessionControllerStub
-
createSessionOperationCallable
public OperationCallable<CreateSessionRequest,Session, createSessionOperationCallable()SessionOperationMetadata> - Overrides:
createSessionOperationCallablein classSessionControllerStub
-
getSessionCallable
- Overrides:
getSessionCallablein classSessionControllerStub
-
listSessionsCallable
- Overrides:
listSessionsCallablein classSessionControllerStub
-
listSessionsPagedCallable
public UnaryCallable<ListSessionsRequest,SessionControllerClient.ListSessionsPagedResponse> listSessionsPagedCallable()- Overrides:
listSessionsPagedCallablein classSessionControllerStub
-
terminateSessionCallable
- Overrides:
terminateSessionCallablein classSessionControllerStub
-
terminateSessionOperationCallable
public OperationCallable<TerminateSessionRequest,Session, terminateSessionOperationCallable()SessionOperationMetadata> - Overrides:
terminateSessionOperationCallablein classSessionControllerStub
-
deleteSessionCallable
- Overrides:
deleteSessionCallablein classSessionControllerStub
-
deleteSessionOperationCallable
public OperationCallable<DeleteSessionRequest,Session, deleteSessionOperationCallable()SessionOperationMetadata> - Overrides:
deleteSessionOperationCallablein classSessionControllerStub
-
setIamPolicyCallable
- Overrides:
setIamPolicyCallablein classSessionControllerStub
-
getIamPolicyCallable
- Overrides:
getIamPolicyCallablein classSessionControllerStub
-
testIamPermissionsCallable
public UnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsCallable()- Overrides:
testIamPermissionsCallablein classSessionControllerStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classSessionControllerStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-