Class GrpcApplicationsStub (2.44.0)

public class GrpcApplicationsStub extends ApplicationsStub

gRPC stub implementation for the Applications service API.

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

Inheritance

java.lang.Object > ApplicationsStub > GrpcApplicationsStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(ApplicationsStubSettings settings)

public static final GrpcApplicationsStub create(ApplicationsStubSettings settings)
Parameter
Name Description
settings ApplicationsStubSettings
Returns
Type Description
GrpcApplicationsStub
Exceptions
Type Description
IOException

Constructors

GrpcApplicationsStub(ApplicationsStubSettings settings, ClientContext clientContext)

protected GrpcApplicationsStub(ApplicationsStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcApplicationsStub, 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 ApplicationsStubSettings
clientContext ClientContext

GrpcApplicationsStub(ApplicationsStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcApplicationsStub(ApplicationsStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcApplicationsStub, 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 ApplicationsStubSettings
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

createApplicationCallable()

public UnaryCallable<CreateApplicationRequest,Operation> createApplicationCallable()
Returns
Type Description
UnaryCallable<CreateApplicationRequest,Operation>
Overrides

createApplicationOperationCallable()

public OperationCallable<CreateApplicationRequest,Application,OperationMetadataV1> createApplicationOperationCallable()
Returns
Type Description
OperationCallable<CreateApplicationRequest,Application,OperationMetadataV1>
Overrides

getApplicationCallable()

public UnaryCallable<GetApplicationRequest,Application> getApplicationCallable()
Returns
Type Description
UnaryCallable<GetApplicationRequest,Application>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

repairApplicationCallable()

public UnaryCallable<RepairApplicationRequest,Operation> repairApplicationCallable()
Returns
Type Description
UnaryCallable<RepairApplicationRequest,Operation>
Overrides

repairApplicationOperationCallable()

public OperationCallable<RepairApplicationRequest,Application,OperationMetadataV1> repairApplicationOperationCallable()
Returns
Type Description
OperationCallable<RepairApplicationRequest,Application,OperationMetadataV1>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateApplicationCallable()

public UnaryCallable<UpdateApplicationRequest,Operation> updateApplicationCallable()
Returns
Type Description
UnaryCallable<UpdateApplicationRequest,Operation>
Overrides

updateApplicationOperationCallable()

public OperationCallable<UpdateApplicationRequest,Application,OperationMetadataV1> updateApplicationOperationCallable()
Returns
Type Description
OperationCallable<UpdateApplicationRequest,Application,OperationMetadataV1>
Overrides