public class StaticMembershipManager extends Object implements MembershipManager
MembershipManager.Factory
PATH_SEPARATOR
Modifier and Type | Method and Description |
---|---|
void |
close() |
static StaticMembershipManager |
create(AlluxioConfiguration conf) |
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.
|
public static StaticMembershipManager create(AlluxioConfiguration conf)
conf
- public void join(WorkerInfo worker) throws IOException
MembershipManager
join
in interface MembershipManager
IOException
public List<WorkerInfo> getAllMembers() throws IOException
MembershipManager
getAllMembers
in interface MembershipManager
IOException
public List<WorkerInfo> getLiveMembers() throws IOException
MembershipManager
getLiveMembers
in interface MembershipManager
IOException
public List<WorkerInfo> getFailedMembers() throws IOException
MembershipManager
getFailedMembers
in interface MembershipManager
IOException
public String showAllMembers()
MembershipManager
showAllMembers
in interface MembershipManager
public void stopHeartBeat(WorkerInfo worker) throws IOException
MembershipManager
stopHeartBeat
in interface MembershipManager
worker
- WorkerInfoIOException
public void decommission(WorkerInfo worker) throws IOException
MembershipManager
decommission
in interface MembershipManager
worker
- WorkerInfoIOException
public void close() throws Exception
close
in interface AutoCloseable
Exception
Copyright © 2023. All Rights Reserved.