Class GrpcDataMigrationServiceStub (2.2.0)

public class GrpcDataMigrationServiceStub extends DataMigrationServiceStub

gRPC stub implementation for the DataMigrationService service API.

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

Inheritance

java.lang.Object > DataMigrationServiceStub > GrpcDataMigrationServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcDataMigrationServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcDataMigrationServiceStub
Exceptions
TypeDescription
IOException

create(DataMigrationServiceStubSettings settings)

public static final GrpcDataMigrationServiceStub create(DataMigrationServiceStubSettings settings)
Parameter
NameDescription
settingsDataMigrationServiceStubSettings
Returns
TypeDescription
GrpcDataMigrationServiceStub
Exceptions
TypeDescription
IOException

Constructors

GrpcDataMigrationServiceStub(DataMigrationServiceStubSettings settings, ClientContext clientContext)

protected GrpcDataMigrationServiceStub(DataMigrationServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcDataMigrationServiceStub, 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
settingsDataMigrationServiceStubSettings
clientContextClientContext

GrpcDataMigrationServiceStub(DataMigrationServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcDataMigrationServiceStub(DataMigrationServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcDataMigrationServiceStub, 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
settingsDataMigrationServiceStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

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

createConnectionProfileCallable()

public UnaryCallable<CreateConnectionProfileRequest,Operation> createConnectionProfileCallable()
Returns
TypeDescription
UnaryCallable<CreateConnectionProfileRequest,Operation>
Overrides

createConnectionProfileOperationCallable()

public OperationCallable<CreateConnectionProfileRequest,ConnectionProfile,OperationMetadata> createConnectionProfileOperationCallable()
Returns
TypeDescription
OperationCallable<CreateConnectionProfileRequest,ConnectionProfile,OperationMetadata>
Overrides

createMigrationJobCallable()

public UnaryCallable<CreateMigrationJobRequest,Operation> createMigrationJobCallable()
Returns
TypeDescription
UnaryCallable<CreateMigrationJobRequest,Operation>
Overrides

createMigrationJobOperationCallable()

public OperationCallable<CreateMigrationJobRequest,MigrationJob,OperationMetadata> createMigrationJobOperationCallable()
Returns
TypeDescription
OperationCallable<CreateMigrationJobRequest,MigrationJob,OperationMetadata>
Overrides

deleteConnectionProfileCallable()

public UnaryCallable<DeleteConnectionProfileRequest,Operation> deleteConnectionProfileCallable()
Returns
TypeDescription
UnaryCallable<DeleteConnectionProfileRequest,Operation>
Overrides

deleteConnectionProfileOperationCallable()

public OperationCallable<DeleteConnectionProfileRequest,Empty,OperationMetadata> deleteConnectionProfileOperationCallable()
Returns
TypeDescription
OperationCallable<DeleteConnectionProfileRequest,Empty,OperationMetadata>
Overrides

deleteMigrationJobCallable()

public UnaryCallable<DeleteMigrationJobRequest,Operation> deleteMigrationJobCallable()
Returns
TypeDescription
UnaryCallable<DeleteMigrationJobRequest,Operation>
Overrides

deleteMigrationJobOperationCallable()

public OperationCallable<DeleteMigrationJobRequest,Empty,OperationMetadata> deleteMigrationJobOperationCallable()
Returns
TypeDescription
OperationCallable<DeleteMigrationJobRequest,Empty,OperationMetadata>
Overrides

generateSshScriptCallable()

public UnaryCallable<GenerateSshScriptRequest,SshScript> generateSshScriptCallable()
Returns
TypeDescription
UnaryCallable<GenerateSshScriptRequest,SshScript>
Overrides

getConnectionProfileCallable()

public UnaryCallable<GetConnectionProfileRequest,ConnectionProfile> getConnectionProfileCallable()
Returns
TypeDescription
UnaryCallable<GetConnectionProfileRequest,ConnectionProfile>
Overrides

getMigrationJobCallable()

public UnaryCallable<GetMigrationJobRequest,MigrationJob> getMigrationJobCallable()
Returns
TypeDescription
UnaryCallable<GetMigrationJobRequest,MigrationJob>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listConnectionProfilesCallable()

public UnaryCallable<ListConnectionProfilesRequest,ListConnectionProfilesResponse> listConnectionProfilesCallable()
Returns
TypeDescription
UnaryCallable<ListConnectionProfilesRequest,ListConnectionProfilesResponse>
Overrides

listConnectionProfilesPagedCallable()

public UnaryCallable<ListConnectionProfilesRequest,DataMigrationServiceClient.ListConnectionProfilesPagedResponse> listConnectionProfilesPagedCallable()
Returns
TypeDescription
UnaryCallable<ListConnectionProfilesRequest,ListConnectionProfilesPagedResponse>
Overrides

listMigrationJobsCallable()

public UnaryCallable<ListMigrationJobsRequest,ListMigrationJobsResponse> listMigrationJobsCallable()
Returns
TypeDescription
UnaryCallable<ListMigrationJobsRequest,ListMigrationJobsResponse>
Overrides

listMigrationJobsPagedCallable()

public UnaryCallable<ListMigrationJobsRequest,DataMigrationServiceClient.ListMigrationJobsPagedResponse> listMigrationJobsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListMigrationJobsRequest,ListMigrationJobsPagedResponse>
Overrides

promoteMigrationJobCallable()

public UnaryCallable<PromoteMigrationJobRequest,Operation> promoteMigrationJobCallable()
Returns
TypeDescription
UnaryCallable<PromoteMigrationJobRequest,Operation>
Overrides

promoteMigrationJobOperationCallable()

public OperationCallable<PromoteMigrationJobRequest,MigrationJob,OperationMetadata> promoteMigrationJobOperationCallable()
Returns
TypeDescription
OperationCallable<PromoteMigrationJobRequest,MigrationJob,OperationMetadata>
Overrides

restartMigrationJobCallable()

public UnaryCallable<RestartMigrationJobRequest,Operation> restartMigrationJobCallable()
Returns
TypeDescription
UnaryCallable<RestartMigrationJobRequest,Operation>
Overrides

restartMigrationJobOperationCallable()

public OperationCallable<RestartMigrationJobRequest,MigrationJob,OperationMetadata> restartMigrationJobOperationCallable()
Returns
TypeDescription
OperationCallable<RestartMigrationJobRequest,MigrationJob,OperationMetadata>
Overrides

resumeMigrationJobCallable()

public UnaryCallable<ResumeMigrationJobRequest,Operation> resumeMigrationJobCallable()
Returns
TypeDescription
UnaryCallable<ResumeMigrationJobRequest,Operation>
Overrides

resumeMigrationJobOperationCallable()

public OperationCallable<ResumeMigrationJobRequest,MigrationJob,OperationMetadata> resumeMigrationJobOperationCallable()
Returns
TypeDescription
OperationCallable<ResumeMigrationJobRequest,MigrationJob,OperationMetadata>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

startMigrationJobCallable()

public UnaryCallable<StartMigrationJobRequest,Operation> startMigrationJobCallable()
Returns
TypeDescription
UnaryCallable<StartMigrationJobRequest,Operation>
Overrides

startMigrationJobOperationCallable()

public OperationCallable<StartMigrationJobRequest,MigrationJob,OperationMetadata> startMigrationJobOperationCallable()
Returns
TypeDescription
OperationCallable<StartMigrationJobRequest,MigrationJob,OperationMetadata>
Overrides

stopMigrationJobCallable()

public UnaryCallable<StopMigrationJobRequest,Operation> stopMigrationJobCallable()
Returns
TypeDescription
UnaryCallable<StopMigrationJobRequest,Operation>
Overrides

stopMigrationJobOperationCallable()

public OperationCallable<StopMigrationJobRequest,MigrationJob,OperationMetadata> stopMigrationJobOperationCallable()
Returns
TypeDescription
OperationCallable<StopMigrationJobRequest,MigrationJob,OperationMetadata>
Overrides

updateConnectionProfileCallable()

public UnaryCallable<UpdateConnectionProfileRequest,Operation> updateConnectionProfileCallable()
Returns
TypeDescription
UnaryCallable<UpdateConnectionProfileRequest,Operation>
Overrides

updateConnectionProfileOperationCallable()

public OperationCallable<UpdateConnectionProfileRequest,ConnectionProfile,OperationMetadata> updateConnectionProfileOperationCallable()
Returns
TypeDescription
OperationCallable<UpdateConnectionProfileRequest,ConnectionProfile,OperationMetadata>
Overrides

updateMigrationJobCallable()

public UnaryCallable<UpdateMigrationJobRequest,Operation> updateMigrationJobCallable()
Returns
TypeDescription
UnaryCallable<UpdateMigrationJobRequest,Operation>
Overrides

updateMigrationJobOperationCallable()

public OperationCallable<UpdateMigrationJobRequest,MigrationJob,OperationMetadata> updateMigrationJobOperationCallable()
Returns
TypeDescription
OperationCallable<UpdateMigrationJobRequest,MigrationJob,OperationMetadata>
Overrides

verifyMigrationJobCallable()

public UnaryCallable<VerifyMigrationJobRequest,Operation> verifyMigrationJobCallable()
Returns
TypeDescription
UnaryCallable<VerifyMigrationJobRequest,Operation>
Overrides

verifyMigrationJobOperationCallable()

public OperationCallable<VerifyMigrationJobRequest,MigrationJob,OperationMetadata> verifyMigrationJobOperationCallable()
Returns
TypeDescription
OperationCallable<VerifyMigrationJobRequest,MigrationJob,OperationMetadata>
Overrides