public class StandaloneLeaderRetrievalService extends Object implements LeaderRetrievalService
LeaderRetrievalService. The standalone implementation
assumes that there is only a single JobManager whose
address is given to the service when creating it. This address is directly given to the
LeaderRetrievalListener when the service is started.| Constructor and Description |
|---|
StandaloneLeaderRetrievalService(String jobManagerAddress)
Creates a StandaloneLeaderRetrievalService with the given JobManager address.
|
| Modifier and Type | Method and Description |
|---|---|
void |
start(LeaderRetrievalListener listener)
Starts the leader retrieval service with the given listener to listen for new leaders.
|
void |
stop()
Stops the leader retrieval service.
|
public StandaloneLeaderRetrievalService(String jobManagerAddress)
jobManagerAddress - The JobManager's address which is returned to the
LeaderRetrievalListenerpublic void start(LeaderRetrievalListener listener)
LeaderRetrievalServicestart in interface LeaderRetrievalServicelistener - The leader retrieval listener which will be notified about new leaders.public void stop()
LeaderRetrievalServicestop in interface LeaderRetrievalServiceCopyright © 2014–2016 The Apache Software Foundation. All rights reserved.