Package com.google.cloud.tpu.v1.stub
Class GrpcTpuStub
java.lang.Object
com.google.cloud.tpu.v1.stub.TpuStub
com.google.cloud.tpu.v1.stub.GrpcTpuStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
gRPC stub implementation for the Tpu service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcTpuStub(TpuStubSettings settings, ClientContext clientContext) Constructs an instance of GrpcTpuStub, using the given settings.protectedGrpcTpuStub(TpuStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcTpuStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final GrpcTpuStubcreate(ClientContext clientContext) static final GrpcTpuStubcreate(ClientContext clientContext, GrpcStubCallableFactory callableFactory) static final GrpcTpuStubcreate(TpuStubSettings settings) booleanbooleanvoidshutdown()void
-
Constructor Details
-
GrpcTpuStub
Constructs an instance of GrpcTpuStub, 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
-
GrpcTpuStub
protected GrpcTpuStub(TpuStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException Constructs an instance of GrpcTpuStub, 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
- Throws:
IOException
-
create
- Throws:
IOException
-
create
public static final GrpcTpuStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getOperationsStub
- Overrides:
getOperationsStubin classTpuStub
-
listNodesCallable
- Overrides:
listNodesCallablein classTpuStub
-
listNodesPagedCallable
- Overrides:
listNodesPagedCallablein classTpuStub
-
getNodeCallable
- Overrides:
getNodeCallablein classTpuStub
-
createNodeCallable
- Overrides:
createNodeCallablein classTpuStub
-
createNodeOperationCallable
- Overrides:
createNodeOperationCallablein classTpuStub
-
deleteNodeCallable
- Overrides:
deleteNodeCallablein classTpuStub
-
deleteNodeOperationCallable
- Overrides:
deleteNodeOperationCallablein classTpuStub
-
reimageNodeCallable
- Overrides:
reimageNodeCallablein classTpuStub
-
reimageNodeOperationCallable
- Overrides:
reimageNodeOperationCallablein classTpuStub
-
stopNodeCallable
- Overrides:
stopNodeCallablein classTpuStub
-
stopNodeOperationCallable
- Overrides:
stopNodeOperationCallablein classTpuStub
-
startNodeCallable
- Overrides:
startNodeCallablein classTpuStub
-
startNodeOperationCallable
- Overrides:
startNodeOperationCallablein classTpuStub
-
listTensorFlowVersionsCallable
public UnaryCallable<ListTensorFlowVersionsRequest,ListTensorFlowVersionsResponse> listTensorFlowVersionsCallable()- Overrides:
listTensorFlowVersionsCallablein classTpuStub
-
listTensorFlowVersionsPagedCallable
public UnaryCallable<ListTensorFlowVersionsRequest,TpuClient.ListTensorFlowVersionsPagedResponse> listTensorFlowVersionsPagedCallable()- Overrides:
listTensorFlowVersionsPagedCallablein classTpuStub
-
getTensorFlowVersionCallable
- Overrides:
getTensorFlowVersionCallablein classTpuStub
-
listAcceleratorTypesCallable
public UnaryCallable<ListAcceleratorTypesRequest,ListAcceleratorTypesResponse> listAcceleratorTypesCallable()- Overrides:
listAcceleratorTypesCallablein classTpuStub
-
listAcceleratorTypesPagedCallable
public UnaryCallable<ListAcceleratorTypesRequest,TpuClient.ListAcceleratorTypesPagedResponse> listAcceleratorTypesPagedCallable()- Overrides:
listAcceleratorTypesPagedCallablein classTpuStub
-
getAcceleratorTypeCallable
- Overrides:
getAcceleratorTypeCallablein classTpuStub
-
listLocationsCallable
- Overrides:
listLocationsCallablein classTpuStub
-
listLocationsPagedCallable
public UnaryCallable<ListLocationsRequest,TpuClient.ListLocationsPagedResponse> listLocationsPagedCallable()- Overrides:
listLocationsPagedCallablein classTpuStub
-
getLocationCallable
- Overrides:
getLocationCallablein classTpuStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classTpuStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-