Class HttpJsonSimulatorStub (0.12.0)

public class HttpJsonSimulatorStub extends SimulatorStub

REST stub implementation for the Simulator service API.

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

Inheritance

java.lang.Object > SimulatorStub > HttpJsonSimulatorStub

Static Methods

create(ClientContext clientContext)

public static final HttpJsonSimulatorStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
HttpJsonSimulatorStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(SimulatorStubSettings settings)

public static final HttpJsonSimulatorStub create(SimulatorStubSettings settings)
Parameter
NameDescription
settingsSimulatorStubSettings
Returns
TypeDescription
HttpJsonSimulatorStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
List<ApiMethodDescriptor>

Constructors

HttpJsonSimulatorStub(SimulatorStubSettings settings, ClientContext clientContext)

protected HttpJsonSimulatorStub(SimulatorStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonSimulatorStub, 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
settingsSimulatorStubSettings
clientContextClientContext

HttpJsonSimulatorStub(SimulatorStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonSimulatorStub(SimulatorStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

createReplayCallable()

public UnaryCallable<CreateReplayRequest,Operation> createReplayCallable()
Returns
TypeDescription
UnaryCallable<CreateReplayRequest,Operation>
Overrides

createReplayOperationCallable()

public OperationCallable<CreateReplayRequest,Replay,ReplayOperationMetadata> createReplayOperationCallable()
Returns
TypeDescription
OperationCallable<CreateReplayRequest,Replay,ReplayOperationMetadata>
Overrides

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
TypeDescription
HttpJsonOperationsStub
Overrides

getReplayCallable()

public UnaryCallable<GetReplayRequest,Replay> getReplayCallable()
Returns
TypeDescription
UnaryCallable<GetReplayRequest,Replay>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listReplayResultsCallable()

public UnaryCallable<ListReplayResultsRequest,ListReplayResultsResponse> listReplayResultsCallable()
Returns
TypeDescription
UnaryCallable<ListReplayResultsRequest,ListReplayResultsResponse>
Overrides

listReplayResultsPagedCallable()

public UnaryCallable<ListReplayResultsRequest,SimulatorClient.ListReplayResultsPagedResponse> listReplayResultsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListReplayResultsRequest,ListReplayResultsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()