Class HttpJsonJobControllerStub
- java.lang.Object
-
- com.google.cloud.dataproc.v1.stub.JobControllerStub
-
- com.google.cloud.dataproc.v1.stub.HttpJsonJobControllerStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi public class HttpJsonJobControllerStub extends JobControllerStub
REST stub implementation for the JobController service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
HttpJsonJobControllerStub(JobControllerStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonJobControllerStub, using the given settings.protected
HttpJsonJobControllerStub(JobControllerStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonJobControllerStub, using the given settings.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
awaitTermination(long duration, TimeUnit unit)
com.google.api.gax.rpc.UnaryCallable<CancelJobRequest,Job>
cancelJobCallable()
void
close()
static HttpJsonJobControllerStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static HttpJsonJobControllerStub
create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
static HttpJsonJobControllerStub
create(JobControllerStubSettings settings)
com.google.api.gax.rpc.UnaryCallable<DeleteJobRequest,com.google.protobuf.Empty>
deleteJobCallable()
com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub
getHttpJsonOperationsStub()
com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>
getIamPolicyCallable()
com.google.api.gax.rpc.UnaryCallable<GetJobRequest,Job>
getJobCallable()
static List<com.google.api.gax.httpjson.ApiMethodDescriptor>
getMethodDescriptors()
boolean
isShutdown()
boolean
isTerminated()
com.google.api.gax.rpc.UnaryCallable<ListJobsRequest,ListJobsResponse>
listJobsCallable()
com.google.api.gax.rpc.UnaryCallable<ListJobsRequest,JobControllerClient.ListJobsPagedResponse>
listJobsPagedCallable()
com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>
setIamPolicyCallable()
void
shutdown()
void
shutdownNow()
com.google.api.gax.rpc.UnaryCallable<SubmitJobRequest,com.google.longrunning.Operation>
submitJobAsOperationCallable()
com.google.api.gax.rpc.OperationCallable<SubmitJobRequest,Job,JobMetadata>
submitJobAsOperationOperationCallable()
com.google.api.gax.rpc.UnaryCallable<SubmitJobRequest,Job>
submitJobCallable()
com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>
testIamPermissionsCallable()
com.google.api.gax.rpc.UnaryCallable<UpdateJobRequest,Job>
updateJobCallable()
-
Methods inherited from class com.google.cloud.dataproc.v1.stub.JobControllerStub
getOperationsStub
-
-
-
-
Constructor Detail
-
HttpJsonJobControllerStub
protected HttpJsonJobControllerStub(JobControllerStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonJobControllerStub, 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.- Throws:
IOException
-
HttpJsonJobControllerStub
protected HttpJsonJobControllerStub(JobControllerStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonJobControllerStub, 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.- Throws:
IOException
-
-
Method Detail
-
create
public static final HttpJsonJobControllerStub create(JobControllerStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonJobControllerStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonJobControllerStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getMethodDescriptors
@InternalApi public static List<com.google.api.gax.httpjson.ApiMethodDescriptor> getMethodDescriptors()
-
getHttpJsonOperationsStub
public com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub getHttpJsonOperationsStub()
- Overrides:
getHttpJsonOperationsStub
in classJobControllerStub
-
submitJobCallable
public com.google.api.gax.rpc.UnaryCallable<SubmitJobRequest,Job> submitJobCallable()
- Overrides:
submitJobCallable
in classJobControllerStub
-
submitJobAsOperationCallable
public com.google.api.gax.rpc.UnaryCallable<SubmitJobRequest,com.google.longrunning.Operation> submitJobAsOperationCallable()
- Overrides:
submitJobAsOperationCallable
in classJobControllerStub
-
submitJobAsOperationOperationCallable
public com.google.api.gax.rpc.OperationCallable<SubmitJobRequest,Job,JobMetadata> submitJobAsOperationOperationCallable()
- Overrides:
submitJobAsOperationOperationCallable
in classJobControllerStub
-
getJobCallable
public com.google.api.gax.rpc.UnaryCallable<GetJobRequest,Job> getJobCallable()
- Overrides:
getJobCallable
in classJobControllerStub
-
listJobsCallable
public com.google.api.gax.rpc.UnaryCallable<ListJobsRequest,ListJobsResponse> listJobsCallable()
- Overrides:
listJobsCallable
in classJobControllerStub
-
listJobsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListJobsRequest,JobControllerClient.ListJobsPagedResponse> listJobsPagedCallable()
- Overrides:
listJobsPagedCallable
in classJobControllerStub
-
updateJobCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateJobRequest,Job> updateJobCallable()
- Overrides:
updateJobCallable
in classJobControllerStub
-
cancelJobCallable
public com.google.api.gax.rpc.UnaryCallable<CancelJobRequest,Job> cancelJobCallable()
- Overrides:
cancelJobCallable
in classJobControllerStub
-
deleteJobCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteJobRequest,com.google.protobuf.Empty> deleteJobCallable()
- Overrides:
deleteJobCallable
in classJobControllerStub
-
setIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicyCallable()
- Overrides:
setIamPolicyCallable
in classJobControllerStub
-
getIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicyCallable()
- Overrides:
getIamPolicyCallable
in classJobControllerStub
-
testIamPermissionsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsCallable()
- Overrides:
testIamPermissionsCallable
in classJobControllerStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classJobControllerStub
-
shutdown
public void shutdown()
-
isShutdown
public boolean isShutdown()
-
isTerminated
public boolean isTerminated()
-
shutdownNow
public void shutdownNow()
-
awaitTermination
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException
- Throws:
InterruptedException
-
-