Package org.lockss.laaws.poller.model
Class VoterDetail
java.lang.Object
org.lockss.laaws.poller.model.VoterDetail
The details of a poll being performed or queued as the Voter.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateTime(Long createTime) booleanerrorDetails(String errorDetails) The percentage agreement.The id of the poller who called the pollThe 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 number of urls with agreement.The number of urls with disagreement.The number of urls found by only the poller.The number of urls found by only a voter.@NotNull @Valid org.lockss.util.rest.poller.PollDescGet pollDesc@NotNull StringThe id of the voter in the pollthe poller nonceKey generated by poll manager when poll is created.@NotNull StringThe current status of the poll.The percentage of symmetric agreement.The time by which all voters must have voted.the voter2 noncethe voter nonceThe weighted percentage agreement.The weighted percentage of symmetric agreement.hashAlgorithm(String hashAlgorithm) inthashCode()numDisagree(Integer numDisagree) numPollerOnly(Integer numPollerOnly) numVoterOnly(Integer numVoterOnly) pollDesc(org.lockss.util.rest.poller.PollDesc pollDesc) pollerNonce(String pollerNonce) voidsetAgreement(Double agreement) voidsetCallerId(String callerId) voidsetCreateTime(Long createTime) voidsetDeadline(Long deadline) voidsetDuration(Long duration) voidsetErrorDetails(String errorDetails) voidsetHashAlgorithm(String hashAlgorithm) voidsetNumAgree(Integer numAgree) voidsetNumDisagree(Integer numDisagree) voidsetNumPollerOnly(Integer numPollerOnly) voidsetNumVoterOnly(Integer numVoterOnly) voidsetPollDesc(org.lockss.util.rest.poller.PollDesc pollDesc) voidsetPollerId(String pollerId) voidsetPollerNonce(String pollerNonce) voidsetPollKey(String pollKey) voidvoidsetSymmetricAgreement(Double symmetricAgreement) voidsetVoteDeadline(Long voteDeadline) voidsetVoter2Nonce(String voter2Nonce) voidsetVoterNonce(String voterNonce) voidsetWtAgreement(Double wtAgreement) voidsetWtSymmetricAgreement(Double wtSymmetricAgreement) symmetricAgreement(Double symmetricAgreement) toString()voteDeadline(Long voteDeadline) voter2Nonce(String voter2Nonce) voterNonce(String voterNonce) wtAgreement(Double wtAgreement) wtSymmetricAgreement(Double wtSymmetricAgreement)
-
Constructor Details
-
VoterDetail
public VoterDetail()
-
-
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 voter in the poll- Returns:
- pollerId
-
setPollerId
-
callerId
-
getCallerId
The id of the poller who called the poll- Returns:
- callerId
-
setCallerId
-
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
-
hashAlgorithm
-
getHashAlgorithm
The algorithm used by the hasher for this poll.- Returns:
- hashAlgorithm
-
setHashAlgorithm
-
agreement
-
getAgreement
The percentage agreement.- Returns:
- agreement
-
setAgreement
-
wtAgreement
-
getWtAgreement
The weighted percentage agreement.- Returns:
- wtAgreement
-
setWtAgreement
-
symmetricAgreement
-
getSymmetricAgreement
The percentage of symmetric agreement.- Returns:
- symmetricAgreement
-
setSymmetricAgreement
-
wtSymmetricAgreement
-
getWtSymmetricAgreement
The weighted percentage of symmetric agreement.- Returns:
- wtSymmetricAgreement
-
setWtSymmetricAgreement
-
pollerNonce
-
getPollerNonce
the poller nonce- Returns:
- pollerNonce
-
setPollerNonce
-
voterNonce
-
getVoterNonce
the voter nonce- Returns:
- voterNonce
-
setVoterNonce
-
voter2Nonce
-
getVoter2Nonce
the voter2 nonce- Returns:
- voter2Nonce
-
setVoter2Nonce
-
voteDeadline
-
getVoteDeadline
The time by which all voters must have voted.- Returns:
- voteDeadline
-
setVoteDeadline
-
numAgree
-
getNumAgree
The number of urls with agreement.- Returns:
- numAgree
-
setNumAgree
-
numDisagree
-
getNumDisagree
The number of urls with disagreement.- Returns:
- numDisagree
-
setNumDisagree
-
numPollerOnly
-
getNumPollerOnly
The number of urls found by only the poller.- Returns:
- numPollerOnly
-
setNumPollerOnly
-
numVoterOnly
-
getNumVoterOnly
The number of urls found by only a voter.- Returns:
- numVoterOnly
-
setNumVoterOnly
-
errorDetails
-
getErrorDetails
The error which caused the poll to fail.- Returns:
- errorDetails
-
setErrorDetails
-
equals
-
hashCode
public int hashCode() -
toString
-