Package org.lockss.laaws.poller.model
Class PollerDetail
java.lang.Object
org.lockss.laaws.poller.model.PollerDetail
The details of a poll being performed or queued by the Poller
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddNoAuPeersItem(String noAuPeersItem) addVotedPeersItem(PeerData votedPeersItem) createTime(Long createTime) booleanerrorDetails(String errorDetails) The timestamp at which the poll was created.The time by which the poll must have completedThe estimated duration for the poll.The error which caused the poll to fail.The algorithm used by the hasher for this poll.The peers who do not have the au.The number of peers from the poller outer circle to taget.@NotNull @Valid org.lockss.util.rest.poller.PollDescGet pollDescthe time at which the poll ended or -1 if still running.@NotNull StringThe id of the poller who called the pollKey generated by poll manager when poll is created.The minimum required for a quroum@Valid RepairQueueGet repairQueue@NotNull StringThe current status of the poll.@Valid TallyDatagetTally()Get tallyThe time by which all voters must have voted.The data from peers whom voted.The estimated duration for voters.The required agreement need to decide landslide agreement or disagreement.hashAlgorithm(String hashAlgorithm) inthashCode()outerCircleTarget(Integer outerCircleTarget) pollDesc(org.lockss.util.rest.poller.PollDesc pollDesc) repairQueue(RepairQueue repairQueue) voidsetCreateTime(Long createTime) voidsetDeadline(Long deadline) voidsetDuration(Long duration) voidsetErrorDetails(String errorDetails) voidsetHashAlgorithm(String hashAlgorithm) voidsetNoAuPeers(List<String> noAuPeers) voidsetOuterCircleTarget(Integer outerCircleTarget) voidsetPollDesc(org.lockss.util.rest.poller.PollDesc pollDesc) voidsetPollEnd(Long pollEnd) voidsetPollerId(String pollerId) voidsetPollKey(String pollKey) voidvoidsetRepairQueue(RepairQueue repairQueue) voidvoidvoidsetVoteDeadline(Long voteDeadline) voidsetVotedPeers(List<PeerData> votedPeers) voidsetVoteDuration(Long voteDuration) voidsetVoteMargin(Integer voteMargin) toString()voteDeadline(Long voteDeadline) votedPeers(List<PeerData> votedPeers) voteDuration(Long voteDuration) voteMargin(Integer voteMargin)
-
Constructor Details
-
PollerDetail
public PollerDetail()
-
-
Method Details
-
pollDesc
-
getPollDesc
@NotNull @Valid public @NotNull @Valid org.lockss.util.rest.poller.PollDesc getPollDesc()Get pollDesc- Returns:
- pollDesc
-
setPollDesc
public void setPollDesc(org.lockss.util.rest.poller.PollDesc pollDesc) -
pollerId
-
getPollerId
The id of the poller who called the poll- Returns:
- pollerId
-
setPollerId
-
status
-
getStatus
The current status of the poll.- Returns:
- status
-
setStatus
-
pollKey
-
getPollKey
Key generated by poll manager when poll is created.- Returns:
- pollKey
-
setPollKey
-
createTime
-
getCreateTime
The timestamp at which the poll was created.- Returns:
- createTime
-
setCreateTime
-
duration
-
getDuration
The estimated duration for the poll.- Returns:
- duration
-
setDuration
-
deadline
-
getDeadline
The time by which the poll must have completed- Returns:
- deadline
-
setDeadline
-
outerCircleTarget
-
getOuterCircleTarget
The number of peers from the poller outer circle to taget.- Returns:
- outerCircleTarget
-
setOuterCircleTarget
-
hashAlgorithm
-
getHashAlgorithm
The algorithm used by the hasher for this poll.- Returns:
- hashAlgorithm
-
setHashAlgorithm
-
voteMargin
-
getVoteMargin
The required agreement need to decide landslide agreement or disagreement.- Returns:
- voteMargin
-
setVoteMargin
-
voteDeadline
-
getVoteDeadline
The time by which all voters must have voted.- Returns:
- voteDeadline
-
setVoteDeadline
-
voteDuration
-
getVoteDuration
The estimated duration for voters.- Returns:
- voteDuration
-
setVoteDuration
-
pollEnd
-
getPollEnd
the time at which the poll ended or -1 if still running.- Returns:
- pollEnd
-
setPollEnd
-
quorum
-
getQuorum
The minimum required for a quroum- Returns:
- quorum
-
setQuorum
-
errorDetails
-
getErrorDetails
The error which caused the poll to fail.- Returns:
- errorDetails
-
setErrorDetails
-
votedPeers
-
addVotedPeersItem
-
getVotedPeers
The data from peers whom voted.- Returns:
- votedPeers
-
setVotedPeers
-
noAuPeers
-
addNoAuPeersItem
-
getNoAuPeers
The peers who do not have the au.- Returns:
- noAuPeers
-
setNoAuPeers
-
tally
-
getTally
Get tally- Returns:
- tally
-
setTally
-
repairQueue
-
getRepairQueue
Get repairQueue- Returns:
- repairQueue
-
setRepairQueue
-
equals
-
hashCode
public int hashCode() -
toString
-