Class HttpJsonApplicationsStub (2.44.0)

public class HttpJsonApplicationsStub extends ApplicationsStub

REST stub implementation for the Applications service API.

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

Inheritance

java.lang.Object > ApplicationsStub > HttpJsonApplicationsStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(ApplicationsStubSettings settings)

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

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Type Description
List<ApiMethodDescriptor>

Constructors

HttpJsonApplicationsStub(ApplicationsStubSettings settings, ClientContext clientContext)

protected HttpJsonApplicationsStub(ApplicationsStubSettings settings, ClientContext clientContext)

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

HttpJsonApplicationsStub(ApplicationsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonApplicationsStub(ApplicationsStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonApplicationsStub, 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 HttpJsonStubCallableFactory

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

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
Type Description
HttpJsonOperationsStub
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