Package com.google.cloud.lustre.v1.stub
Class GrpcLustreStub
java.lang.Object
com.google.cloud.lustre.v1.stub.LustreStub
com.google.cloud.lustre.v1.stub.GrpcLustreStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
gRPC stub implementation for the Lustre service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcLustreStub(LustreStubSettings settings, ClientContext clientContext) Constructs an instance of GrpcLustreStub, using the given settings.protectedGrpcLustreStub(LustreStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcLustreStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final GrpcLustreStubcreate(ClientContext clientContext) static final GrpcLustreStubcreate(ClientContext clientContext, GrpcStubCallableFactory callableFactory) static final GrpcLustreStubcreate(LustreStubSettings settings) OperationCallable<DeleteInstanceRequest,com.google.protobuf.Empty, OperationMetadata> booleanbooleanvoidshutdown()voidMethods inherited from class com.google.cloud.lustre.v1.stub.LustreStub
getHttpJsonOperationsStub
-
Constructor Details
-
GrpcLustreStub
protected GrpcLustreStub(LustreStubSettings settings, ClientContext clientContext) throws IOException Constructs an instance of GrpcLustreStub, 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
-
GrpcLustreStub
protected GrpcLustreStub(LustreStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException Constructs an instance of GrpcLustreStub, 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 GrpcLustreStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getOperationsStub
- Overrides:
getOperationsStubin classLustreStub
-
listInstancesCallable
- Overrides:
listInstancesCallablein classLustreStub
-
listInstancesPagedCallable
public UnaryCallable<ListInstancesRequest,LustreClient.ListInstancesPagedResponse> listInstancesPagedCallable()- Overrides:
listInstancesPagedCallablein classLustreStub
-
getInstanceCallable
- Overrides:
getInstanceCallablein classLustreStub
-
createInstanceCallable
- Overrides:
createInstanceCallablein classLustreStub
-
createInstanceOperationCallable
public OperationCallable<CreateInstanceRequest,Instance, createInstanceOperationCallable()OperationMetadata> - Overrides:
createInstanceOperationCallablein classLustreStub
-
updateInstanceCallable
- Overrides:
updateInstanceCallablein classLustreStub
-
updateInstanceOperationCallable
public OperationCallable<UpdateInstanceRequest,Instance, updateInstanceOperationCallable()OperationMetadata> - Overrides:
updateInstanceOperationCallablein classLustreStub
-
deleteInstanceCallable
- Overrides:
deleteInstanceCallablein classLustreStub
-
deleteInstanceOperationCallable
public OperationCallable<DeleteInstanceRequest,com.google.protobuf.Empty, deleteInstanceOperationCallable()OperationMetadata> - Overrides:
deleteInstanceOperationCallablein classLustreStub
-
importDataCallable
- Overrides:
importDataCallablein classLustreStub
-
importDataOperationCallable
public OperationCallable<ImportDataRequest,ImportDataResponse, importDataOperationCallable()ImportDataMetadata> - Overrides:
importDataOperationCallablein classLustreStub
-
exportDataCallable
- Overrides:
exportDataCallablein classLustreStub
-
exportDataOperationCallable
public OperationCallable<ExportDataRequest,ExportDataResponse, exportDataOperationCallable()ExportDataMetadata> - Overrides:
exportDataOperationCallablein classLustreStub
-
listLocationsCallable
- Overrides:
listLocationsCallablein classLustreStub
-
listLocationsPagedCallable
public UnaryCallable<ListLocationsRequest,LustreClient.ListLocationsPagedResponse> listLocationsPagedCallable()- Overrides:
listLocationsPagedCallablein classLustreStub
-
getLocationCallable
- Overrides:
getLocationCallablein classLustreStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classLustreStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-