public interface MembershipManager extends AutoCloseable
Modifier and Type | Interface and Description |
---|---|
static class |
MembershipManager.Factory
Factory class to get or create a MembershipManager.
|
Modifier and Type | Field and Description |
---|---|
static String |
PATH_SEPARATOR |
Modifier and Type | Method and Description |
---|---|
void |
decommission(WorkerInfo worker)
Decommision a worker.
|
List<WorkerInfo> |
getAllMembers()
Get all registered worker members.
|
List<WorkerInfo> |
getFailedMembers()
Get all failed workers.
|
List<WorkerInfo> |
getLiveMembers()
Get healthy workers.
|
void |
join(WorkerInfo worker)
An idempotent call to register to join the membership.
|
String |
showAllMembers()
Pretty printed members and its liveness status.
|
void |
stopHeartBeat(WorkerInfo worker)
Stop heartbeating for liveness for current worker.
|
close
static final String PATH_SEPARATOR
void join(WorkerInfo worker) throws IOException
worker
- IOException
List<WorkerInfo> getAllMembers() throws IOException
IOException
List<WorkerInfo> getLiveMembers() throws IOException
IOException
List<WorkerInfo> getFailedMembers() throws IOException
IOException
String showAllMembers()
void stopHeartBeat(WorkerInfo worker) throws IOException
worker
- WorkerInfoIOException
void decommission(WorkerInfo worker) throws IOException
worker
- WorkerInfoIOException
Copyright © 2023. All Rights Reserved.