Class HttpJsonManagedKafkaConnectStub (0.16.1)

public class HttpJsonManagedKafkaConnectStub extends ManagedKafkaConnectStub

REST stub implementation for the ManagedKafkaConnect service API.

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

Inheritance

java.lang.Object > ManagedKafkaConnectStub > HttpJsonManagedKafkaConnectStub

Static Methods

create(ClientContext clientContext)

public static final HttpJsonManagedKafkaConnectStub create(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
HttpJsonManagedKafkaConnectStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonManagedKafkaConnectStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory
Returns
Type Description
HttpJsonManagedKafkaConnectStub
Exceptions
Type Description
IOException

create(ManagedKafkaConnectStubSettings settings)

public static final HttpJsonManagedKafkaConnectStub create(ManagedKafkaConnectStubSettings settings)
Parameter
Name Description
settings ManagedKafkaConnectStubSettings
Returns
Type Description
HttpJsonManagedKafkaConnectStub
Exceptions
Type Description
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Type Description
List<ApiMethodDescriptor>

Constructors

HttpJsonManagedKafkaConnectStub(ManagedKafkaConnectStubSettings settings, ClientContext clientContext)

protected HttpJsonManagedKafkaConnectStub(ManagedKafkaConnectStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonManagedKafkaConnectStub, 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 ManagedKafkaConnectStubSettings
clientContext ClientContext

HttpJsonManagedKafkaConnectStub(ManagedKafkaConnectStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonManagedKafkaConnectStub(ManagedKafkaConnectStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

public final void close()
Overrides

createConnectClusterCallable()

public UnaryCallable<CreateConnectClusterRequest,Operation> createConnectClusterCallable()
Returns
Type Description
UnaryCallable<CreateConnectClusterRequest,Operation>
Overrides

createConnectClusterOperationCallable()

public OperationCallable<CreateConnectClusterRequest,ConnectCluster,OperationMetadata> createConnectClusterOperationCallable()
Returns
Type Description
OperationCallable<CreateConnectClusterRequest,ConnectCluster,OperationMetadata>
Overrides

createConnectorCallable()

public UnaryCallable<CreateConnectorRequest,Connector> createConnectorCallable()
Returns
Type Description
UnaryCallable<CreateConnectorRequest,Connector>
Overrides

deleteConnectClusterCallable()

public UnaryCallable<DeleteConnectClusterRequest,Operation> deleteConnectClusterCallable()
Returns
Type Description
UnaryCallable<DeleteConnectClusterRequest,Operation>
Overrides

deleteConnectClusterOperationCallable()

public OperationCallable<DeleteConnectClusterRequest,Empty,OperationMetadata> deleteConnectClusterOperationCallable()
Returns
Type Description
OperationCallable<DeleteConnectClusterRequest,Empty,OperationMetadata>
Overrides

deleteConnectorCallable()

public UnaryCallable<DeleteConnectorRequest,Empty> deleteConnectorCallable()
Returns
Type Description
UnaryCallable<DeleteConnectorRequest,Empty>
Overrides

getConnectClusterCallable()

public UnaryCallable<GetConnectClusterRequest,ConnectCluster> getConnectClusterCallable()
Returns
Type Description
UnaryCallable<GetConnectClusterRequest,ConnectCluster>
Overrides

getConnectorCallable()

public UnaryCallable<GetConnectorRequest,Connector> getConnectorCallable()
Returns
Type Description
UnaryCallable<GetConnectorRequest,Connector>
Overrides

getHttpJsonOperationsStub()

public HttpJsonOperationsStub getHttpJsonOperationsStub()
Returns
Type Description
HttpJsonOperationsStub
Overrides

getLocationCallable()

public UnaryCallable<GetLocationRequest,Location> getLocationCallable()
Returns
Type Description
UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listConnectClustersCallable()

public UnaryCallable<ListConnectClustersRequest,ListConnectClustersResponse> listConnectClustersCallable()
Returns
Type Description
UnaryCallable<ListConnectClustersRequest,ListConnectClustersResponse>
Overrides

listConnectClustersPagedCallable()

public UnaryCallable<ListConnectClustersRequest,ManagedKafkaConnectClient.ListConnectClustersPagedResponse> listConnectClustersPagedCallable()
Returns
Type Description
UnaryCallable<ListConnectClustersRequest,ListConnectClustersPagedResponse>
Overrides

listConnectorsCallable()

public UnaryCallable<ListConnectorsRequest,ListConnectorsResponse> listConnectorsCallable()
Returns
Type Description
UnaryCallable<ListConnectorsRequest,ListConnectorsResponse>
Overrides

listConnectorsPagedCallable()

public UnaryCallable<ListConnectorsRequest,ManagedKafkaConnectClient.ListConnectorsPagedResponse> listConnectorsPagedCallable()
Returns
Type Description
UnaryCallable<ListConnectorsRequest,ListConnectorsPagedResponse>
Overrides

listLocationsCallable()

public UnaryCallable<ListLocationsRequest,ListLocationsResponse> listLocationsCallable()
Returns
Type Description
UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>
Overrides

listLocationsPagedCallable()

public UnaryCallable<ListLocationsRequest,ManagedKafkaConnectClient.ListLocationsPagedResponse> listLocationsPagedCallable()
Returns
Type Description
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse>
Overrides

pauseConnectorCallable()

public UnaryCallable<PauseConnectorRequest,PauseConnectorResponse> pauseConnectorCallable()
Returns
Type Description
UnaryCallable<PauseConnectorRequest,PauseConnectorResponse>
Overrides

restartConnectorCallable()

public UnaryCallable<RestartConnectorRequest,RestartConnectorResponse> restartConnectorCallable()
Returns
Type Description
UnaryCallable<RestartConnectorRequest,RestartConnectorResponse>
Overrides

resumeConnectorCallable()

public UnaryCallable<ResumeConnectorRequest,ResumeConnectorResponse> resumeConnectorCallable()
Returns
Type Description
UnaryCallable<ResumeConnectorRequest,ResumeConnectorResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

stopConnectorCallable()

public UnaryCallable<StopConnectorRequest,StopConnectorResponse> stopConnectorCallable()
Returns
Type Description
UnaryCallable<StopConnectorRequest,StopConnectorResponse>
Overrides

updateConnectClusterCallable()

public UnaryCallable<UpdateConnectClusterRequest,Operation> updateConnectClusterCallable()
Returns
Type Description
UnaryCallable<UpdateConnectClusterRequest,Operation>
Overrides

updateConnectClusterOperationCallable()

public OperationCallable<UpdateConnectClusterRequest,ConnectCluster,OperationMetadata> updateConnectClusterOperationCallable()
Returns
Type Description
OperationCallable<UpdateConnectClusterRequest,ConnectCluster,OperationMetadata>
Overrides

updateConnectorCallable()

public UnaryCallable<UpdateConnectorRequest,Connector> updateConnectorCallable()
Returns
Type Description
UnaryCallable<UpdateConnectorRequest,Connector>
Overrides