public interface TeamingService
TeamingService is used to join / leave a controller team.
Applications / services that wish to be part of a team should implement
TeamListener to receive team status change notifications.| Modifier and Type | Method and Description |
|---|---|
Collection<String> |
getHealthyMembers()
Get healthy team members.
|
boolean |
isMemberHealthy()
Check team member health.
|
void |
joinTeam(String appId,
TeamListener listener)
Joins an application instance to team.
|
void |
leaveTeam(String appId,
TeamListener listener)
Gracefully leave team.
|
boolean |
runElection()
Run election in team.
|
void joinTeam(String appId, TeamListener listener) throws TeamingExceptions.MemberExists
appId - Application IDlistener - team listener for listening to changes to teamTeamingExceptions.MemberExists - listener is already registered for applicationvoid leaveTeam(String appId, TeamListener listener) throws TeamingExceptions.MemberNotFound
appId - application IDlistener - listener leaving teamTeamingExceptions.MemberNotFound - listener not registered for applicationboolean runElection()
boolean isMemberHealthy()
Collection<String> getHealthyMembers()
Copyright © 2014. All Rights Reserved.