Package org.onosproject.store.service
Class PartitionInfo
- java.lang.Object
-
- org.onosproject.store.service.PartitionInfo
-
public class PartitionInfo extends Object
Contains information about a database partition.
-
-
Constructor Summary
Constructors Constructor Description PartitionInfo(PartitionId partitionId, long term, List<String> members, String leader)
Class constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PartitionId
id()
Returns the partition ID.String
leader()
Returns the partition leader.List<String>
members()
Returns the list of partition members.long
term()
Returns the term number.
-
-
-
Constructor Detail
-
PartitionInfo
public PartitionInfo(PartitionId partitionId, long term, List<String> members, String leader)
Class constructor.- Parameters:
partitionId
- partition identifierterm
- term numbermembers
- partition membersleader
- leader name
-
-
Method Detail
-
id
public PartitionId id()
Returns the partition ID.- Returns:
- partition ID
-
term
public long term()
Returns the term number.- Returns:
- term number
-
members
public List<String> members()
Returns the list of partition members.- Returns:
- partition members
-
leader
public String leader()
Returns the partition leader.- Returns:
- partition leader
-
-