Class GrpcStorageControlStub (2.38.0)

public class GrpcStorageControlStub extends StorageControlStub

gRPC stub implementation for the StorageControl service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > StorageControlStub > GrpcStorageControlStub

Static Methods

create(ClientContext clientContext)

public static final GrpcStorageControlStub create(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
GrpcStorageControlStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcStorageControlStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory GrpcStubCallableFactory
Returns
Type Description
GrpcStorageControlStub
Exceptions
Type Description
IOException

create(StorageControlStubSettings settings)

public static final GrpcStorageControlStub create(StorageControlStubSettings settings)
Parameter
Name Description
settings StorageControlStubSettings
Returns
Type Description
GrpcStorageControlStub
Exceptions
Type Description
IOException

Constructors

GrpcStorageControlStub(StorageControlStubSettings settings, ClientContext clientContext)

protected GrpcStorageControlStub(StorageControlStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcStorageControlStub, 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.

Parameters
Name Description
settings StorageControlStubSettings
clientContext ClientContext

GrpcStorageControlStub(StorageControlStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcStorageControlStub(StorageControlStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcStorageControlStub, 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.

Parameters
Name Description
settings StorageControlStubSettings
clientContext ClientContext
callableFactory GrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

public final void close()
Overrides

createFolderCallable()

public UnaryCallable<CreateFolderRequest,Folder> createFolderCallable()
Returns
Type Description
UnaryCallable<CreateFolderRequest,Folder>
Overrides

createManagedFolderCallable()

public UnaryCallable<CreateManagedFolderRequest,ManagedFolder> createManagedFolderCallable()
Returns
Type Description
UnaryCallable<CreateManagedFolderRequest,ManagedFolder>
Overrides

deleteFolderCallable()

public UnaryCallable<DeleteFolderRequest,Empty> deleteFolderCallable()
Returns
Type Description
UnaryCallable<DeleteFolderRequest,Empty>
Overrides

deleteManagedFolderCallable()

public UnaryCallable<DeleteManagedFolderRequest,Empty> deleteManagedFolderCallable()
Returns
Type Description
UnaryCallable<DeleteManagedFolderRequest,Empty>
Overrides

getFolderCallable()

public UnaryCallable<GetFolderRequest,Folder> getFolderCallable()
Returns
Type Description
UnaryCallable<GetFolderRequest,Folder>
Overrides

getManagedFolderCallable()

public UnaryCallable<GetManagedFolderRequest,ManagedFolder> getManagedFolderCallable()
Returns
Type Description
UnaryCallable<GetManagedFolderRequest,ManagedFolder>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub
Overrides

getStorageLayoutCallable()

public UnaryCallable<GetStorageLayoutRequest,StorageLayout> getStorageLayoutCallable()
Returns
Type Description
UnaryCallable<GetStorageLayoutRequest,StorageLayout>
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listFoldersCallable()

public UnaryCallable<ListFoldersRequest,ListFoldersResponse> listFoldersCallable()
Returns
Type Description
UnaryCallable<ListFoldersRequest,ListFoldersResponse>
Overrides

listFoldersPagedCallable()

public UnaryCallable<ListFoldersRequest,StorageControlClient.ListFoldersPagedResponse> listFoldersPagedCallable()
Returns
Type Description
UnaryCallable<ListFoldersRequest,ListFoldersPagedResponse>
Overrides

listManagedFoldersCallable()

public UnaryCallable<ListManagedFoldersRequest,ListManagedFoldersResponse> listManagedFoldersCallable()
Returns
Type Description
UnaryCallable<ListManagedFoldersRequest,ListManagedFoldersResponse>
Overrides

listManagedFoldersPagedCallable()

public UnaryCallable<ListManagedFoldersRequest,StorageControlClient.ListManagedFoldersPagedResponse> listManagedFoldersPagedCallable()
Returns
Type Description
UnaryCallable<ListManagedFoldersRequest,ListManagedFoldersPagedResponse>
Overrides

renameFolderCallable()

public UnaryCallable<RenameFolderRequest,Operation> renameFolderCallable()
Returns
Type Description
UnaryCallable<RenameFolderRequest,Operation>
Overrides

renameFolderOperationCallable()

public OperationCallable<RenameFolderRequest,Folder,RenameFolderMetadata> renameFolderOperationCallable()
Returns
Type Description
OperationCallable<RenameFolderRequest,Folder,RenameFolderMetadata>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()