public class GroupInfo extends Object implements Serializable
Groups.
Applications while creating a group sets parameters like group type, leader
election mechanism, heart beat interval etc., in GroupInfo object and pass it
to the Groups service.| Modifier and Type | Class and Description |
|---|---|
static class |
GroupInfo.ElectionType
ElectionType enum lists possible election types
|
static class |
GroupInfo.GroupType
GroupType enum lists possible supported group types
|
| Modifier and Type | Field and Description |
|---|---|
boolean |
bAutoRunElection |
GroupInfo.ElectionType |
eType
Following members are meaningful only if gType is ONE_ACTIVE
|
GroupInfo.GroupType |
gType
By default all members of the group are active
|
static int |
heartBeatInterval
Metric in millisecond format.
|
String |
lastElectionRunBy
App instance of the group that ran election last time
|
long |
lastLeaderChangeTime
Time the leader of the group changed last time
|
String |
leaderId
Current leader identifier
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isConfigSame(GroupInfo o)
This routine is used to compare a groupInfo object is same the current.
|
public GroupInfo.GroupType gType
public GroupInfo.ElectionType eType
public boolean bAutoRunElection
public static final int heartBeatInterval
public String leaderId
public String lastElectionRunBy
public long lastLeaderChangeTime
public GroupInfo()
public GroupInfo(GroupInfo copy)
public boolean isConfigSame(GroupInfo o)
o - - group info objectCopyright © 2014. All Rights Reserved.