Class HttpJsonMetricsV1Beta3Stub (0.11.0)

public class HttpJsonMetricsV1Beta3Stub extends MetricsV1Beta3Stub

REST stub implementation for the MetricsV1Beta3 service API.

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

Inheritance

java.lang.Object > MetricsV1Beta3Stub > HttpJsonMetricsV1Beta3Stub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(MetricsV1Beta3StubSettings settings)

public static final HttpJsonMetricsV1Beta3Stub create(MetricsV1Beta3StubSettings settings)
Parameter
NameDescription
settingsMetricsV1Beta3StubSettings
Returns
TypeDescription
HttpJsonMetricsV1Beta3Stub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

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

Constructors

HttpJsonMetricsV1Beta3Stub(MetricsV1Beta3StubSettings settings, ClientContext clientContext)

protected HttpJsonMetricsV1Beta3Stub(MetricsV1Beta3StubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonMetricsV1Beta3Stub, 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
settingsMetricsV1Beta3StubSettings
clientContextClientContext

HttpJsonMetricsV1Beta3Stub(MetricsV1Beta3StubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonMetricsV1Beta3Stub(MetricsV1Beta3StubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

getJobExecutionDetailsCallable()

public UnaryCallable<GetJobExecutionDetailsRequest,JobExecutionDetails> getJobExecutionDetailsCallable()
Returns
TypeDescription
UnaryCallable<GetJobExecutionDetailsRequest,JobExecutionDetails>
Overrides

getJobExecutionDetailsPagedCallable()

public UnaryCallable<GetJobExecutionDetailsRequest,MetricsV1Beta3Client.GetJobExecutionDetailsPagedResponse> getJobExecutionDetailsPagedCallable()
Returns
TypeDescription
UnaryCallable<GetJobExecutionDetailsRequest,GetJobExecutionDetailsPagedResponse>
Overrides

getJobMetricsCallable()

public UnaryCallable<GetJobMetricsRequest,JobMetrics> getJobMetricsCallable()
Returns
TypeDescription
UnaryCallable<GetJobMetricsRequest,JobMetrics>
Overrides

getStageExecutionDetailsCallable()

public UnaryCallable<GetStageExecutionDetailsRequest,StageExecutionDetails> getStageExecutionDetailsCallable()
Returns
TypeDescription
UnaryCallable<GetStageExecutionDetailsRequest,StageExecutionDetails>
Overrides

getStageExecutionDetailsPagedCallable()

public UnaryCallable<GetStageExecutionDetailsRequest,MetricsV1Beta3Client.GetStageExecutionDetailsPagedResponse> getStageExecutionDetailsPagedCallable()
Returns
TypeDescription
UnaryCallable<GetStageExecutionDetailsRequest,GetStageExecutionDetailsPagedResponse>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()