Class HttpJsonServiceControllerStub (1.14.0)

publicclass HttpJsonServiceControllerStubextendsServiceControllerStub

REST stub implementation for the ServiceController service API.

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

Inheritance

java.lang.Object > ServiceControllerStub > HttpJsonServiceControllerStub

Static Methods

create(ClientContext clientContext)

publicstaticfinalHttpJsonServiceControllerStubcreate(ClientContextclientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
HttpJsonServiceControllerStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

publicstaticfinalHttpJsonServiceControllerStubcreate(ClientContextclientContext,HttpJsonStubCallableFactorycallableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory
Returns
Type Description
HttpJsonServiceControllerStub
Exceptions
Type Description
IOException

create(ServiceControllerStubSettings settings)

publicstaticfinalHttpJsonServiceControllerStubcreate(ServiceControllerStubSettingssettings)
Parameter
Name Description
settings ServiceControllerStubSettings
Returns
Type Description
HttpJsonServiceControllerStub
Exceptions
Type Description
IOException

getMethodDescriptors()

publicstaticList<ApiMethodDescriptor>getMethodDescriptors()
Returns
Type Description
List<ApiMethodDescriptor>

Constructors

HttpJsonServiceControllerStub(ServiceControllerStubSettings settings, ClientContext clientContext)

protectedHttpJsonServiceControllerStub(ServiceControllerStubSettingssettings,ClientContextclientContext)

Constructs an instance of HttpJsonServiceControllerStub, 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 ServiceControllerStubSettings
clientContext ClientContext

HttpJsonServiceControllerStub(ServiceControllerStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protectedHttpJsonServiceControllerStub(ServiceControllerStubSettingssettings,ClientContextclientContext,HttpJsonStubCallableFactorycallableFactory)

Constructs an instance of HttpJsonServiceControllerStub, 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 ServiceControllerStubSettings
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

publicbooleanawaitTermination(longduration,TimeUnitunit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

checkCallable()

publicUnaryCallable<CheckRequest,CheckResponse>checkCallable()
Returns
Type Description
UnaryCallable<CheckRequest,CheckResponse>
Overrides

close()

publicfinalvoidclose()
Overrides

isShutdown()

publicbooleanisShutdown()
Returns
Type Description
boolean

isTerminated()

publicbooleanisTerminated()
Returns
Type Description
boolean

reportCallable()

publicUnaryCallable<ReportRequest,ReportResponse>reportCallable()
Returns
Type Description
UnaryCallable<ReportRequest,ReportResponse>
Overrides

shutdown()

publicvoidshutdown()

shutdownNow()

publicvoidshutdownNow()

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.