public class GrpcInstanceAdminStub extends InstanceAdminStub
gRPC stub implementation for the InstanceAdmin service API.
This class is for advanced usage and reflects the underlying API directly.
Static Methods
create(ClientContext clientContext)
public static final GrpcInstanceAdminStub create(ClientContext clientContext)
Parameter | |
---|---|
Name | Description |
clientContext |
ClientContext |
Returns | |
---|---|
Type | Description |
GrpcInstanceAdminStub |
Exceptions | |
---|---|
Type | Description |
IOException |
create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
public static final GrpcInstanceAdminStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters | |
---|---|
Name | Description |
clientContext |
ClientContext |
callableFactory |
GrpcStubCallableFactory |
Returns | |
---|---|
Type | Description |
GrpcInstanceAdminStub |
Exceptions | |
---|---|
Type | Description |
IOException |
create(InstanceAdminStubSettings settings)
public static final GrpcInstanceAdminStub create(InstanceAdminStubSettings settings)
Parameter | |
---|---|
Name | Description |
settings |
InstanceAdminStubSettings |
Returns | |
---|---|
Type | Description |
GrpcInstanceAdminStub |
Exceptions | |
---|---|
Type | Description |
IOException |
Constructors
GrpcInstanceAdminStub(InstanceAdminStubSettings settings, ClientContext clientContext)
protected GrpcInstanceAdminStub(InstanceAdminStubSettings settings, ClientContext clientContext)
Constructs an instance of GrpcInstanceAdminStub, 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 |
InstanceAdminStubSettings |
clientContext |
ClientContext |
GrpcInstanceAdminStub(InstanceAdminStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)
protected GrpcInstanceAdminStub(InstanceAdminStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcInstanceAdminStub, 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 |
InstanceAdminStubSettings |
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()
createInstanceCallable()
public UnaryCallable<CreateInstanceRequest,Operation> createInstanceCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateInstanceRequest,Operation> |
createInstanceConfigCallable()
public UnaryCallable<CreateInstanceConfigRequest,Operation> createInstanceConfigCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateInstanceConfigRequest,Operation> |
createInstanceConfigOperationCallable()
public OperationCallable<CreateInstanceConfigRequest,InstanceConfig,CreateInstanceConfigMetadata> createInstanceConfigOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<CreateInstanceConfigRequest,InstanceConfig,CreateInstanceConfigMetadata> |
createInstanceOperationCallable()
public OperationCallable<CreateInstanceRequest,Instance,CreateInstanceMetadata> createInstanceOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<CreateInstanceRequest,Instance,CreateInstanceMetadata> |
createInstancePartitionCallable()
public UnaryCallable<CreateInstancePartitionRequest,Operation> createInstancePartitionCallable()
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateInstancePartitionRequest,Operation> |
createInstancePartitionOperationCallable()
public OperationCallable<CreateInstancePartitionRequest,InstancePartition,CreateInstancePartitionMetadata> createInstancePartitionOperationCallable()
Returns | |
---|---|
Type | Description |
OperationCallable<CreateInstancePartitionRequest,InstancePartition,CreateInstancePartitionMetadata> |