Class HttpJsonApplicationsStub (2.34.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
NameDescription
clientContextClientContext
Returns
TypeDescription
HttpJsonApplicationsStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonApplicationsStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Returns
TypeDescription
HttpJsonApplicationsStub
Exceptions
TypeDescription
IOException

create(ApplicationsStubSettings settings)

public static final HttpJsonApplicationsStub create(ApplicationsStubSettings settings)
Parameter
NameDescription
settingsApplicationsStubSettings
Returns
TypeDescription
HttpJsonApplicationsStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
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
NameDescription
settingsApplicationsStubSettings
clientContextClientContext

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
NameDescription
settingsApplicationsStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

createApplicationCallable()

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

createApplicationOperationCallable()

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

getApplicationCallable()

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

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
TypeDescription
HttpJsonOperationsStub
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

repairApplicationCallable()

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

repairApplicationOperationCallable()

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

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateApplicationCallable()

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

updateApplicationOperationCallable()

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