public interface JobMasterService extends AutoCloseableAsync
Modifier and Type | Method and Description |
---|---|
String |
getAddress()
Get the address of the JobMaster service under which it is reachable.
|
JobMasterGateway |
getGateway()
Get the
JobMasterGateway belonging to this service. |
CompletableFuture<Acknowledge> |
start(JobMasterId jobMasterId)
Start the JobMaster service with the given
JobMasterId . |
CompletableFuture<Acknowledge> |
suspend(Exception cause)
Suspend the JobMaster service.
|
close, closeAsync
CompletableFuture<Acknowledge> start(JobMasterId jobMasterId) throws Exception
JobMasterId
.jobMasterId
- to start the service withException
- if the JobMaster service could not be startedCompletableFuture<Acknowledge> suspend(Exception cause)
cause
- for the suspensionJobMasterGateway getGateway()
JobMasterGateway
belonging to this service.String getAddress()
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.