Package org.lockss.laaws.poller.model
Class PeerData
java.lang.Object
org.lockss.laaws.poller.model.PeerData
Detail for a single voter in a poll.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbytesHashed(Long bytesHashed) disagreeLink(LinkDesc disagreeLink) boolean@Valid LinkDescGet agreeLinkthe percentage of vote agreement.the number of bytes hashed.the number of bytes read.@Valid LinkDescGet disagreeLinkthe time of last state change.The number of urls for which there was agreement.The number of urls for which there was disagreement.The number of urls which were poller only.The number of urls for which were voter only.@NotNull Stringthe peer id for this participant@Valid LinkDescGet pollerOnlyLinkgetState()the state machine state.@NotNull Stringthe status of this peer@Valid LinkDescGet voterOnlyLinkthe weight of vote percentage agreement.the weight of number agree votes.the weight of number of disagree votes.the weight of number of poller only votes.the weight of number of voter only votes.inthashCode()lastStateChange(Long lastStateChange) numDisagree(Long numDisagree) numPollerOnly(Long numPollerOnly) numVoterOnly(Long numVoterOnly) pollerOnlyLink(LinkDesc pollerOnlyLink) voidsetAgreeLink(LinkDesc agreeLink) voidsetAgreement(Float agreement) voidsetBytesHashed(Long bytesHashed) voidsetBytesRead(Long bytesRead) voidsetDisagreeLink(LinkDesc disagreeLink) voidsetLastStateChange(Long lastStateChange) voidsetNumAgree(Long numAgree) voidsetNumDisagree(Long numDisagree) voidsetNumPollerOnly(Long numPollerOnly) voidsetNumVoterOnly(Long numVoterOnly) voidvoidsetPollerOnlyLink(LinkDesc pollerOnlyLink) voidvoidvoidsetVoterOnlyLink(LinkDesc voterOnlyLink) voidsetWtAgreement(Float wtAgreement) voidsetWtNumAgree(Float wtNumAgree) voidsetWtNumDisagree(Float wtNumDisagree) voidsetWtNumPollerOnly(Float wtNumPollerOnly) voidsetWtNumVoterOnly(Float wtNumVoterOnly) toString()voterOnlyLink(LinkDesc voterOnlyLink) wtAgreement(Float wtAgreement) wtNumAgree(Float wtNumAgree) wtNumDisagree(Float wtNumDisagree) wtNumPollerOnly(Float wtNumPollerOnly) wtNumVoterOnly(Float wtNumVoterOnly)
-
Constructor Details
-
PeerData
public PeerData()
-
-
Method Details
-
peerId
-
getPeerId
the peer id for this participant- Returns:
- peerId
-
setPeerId
-
status
-
getStatus
the status of this peer- Returns:
- status
-
setStatus
-
agreement
-
getAgreement
the percentage of vote agreement.- Returns:
- agreement
-
setAgreement
-
numAgree
-
getNumAgree
The number of urls for which there was agreement.- Returns:
- numAgree
-
setNumAgree
-
agreeLink
-
getAgreeLink
Get agreeLink- Returns:
- agreeLink
-
setAgreeLink
-
numDisagree
-
getNumDisagree
The number of urls for which there was disagreement.- Returns:
- numDisagree
-
setNumDisagree
-
disagreeLink
-
getDisagreeLink
Get disagreeLink- Returns:
- disagreeLink
-
setDisagreeLink
-
numPollerOnly
-
getNumPollerOnly
The number of urls which were poller only.- Returns:
- numPollerOnly
-
setNumPollerOnly
-
pollerOnlyLink
-
getPollerOnlyLink
Get pollerOnlyLink- Returns:
- pollerOnlyLink
-
setPollerOnlyLink
-
numVoterOnly
-
getNumVoterOnly
The number of urls for which were voter only.- Returns:
- numVoterOnly
-
setNumVoterOnly
-
voterOnlyLink
-
getVoterOnlyLink
Get voterOnlyLink- Returns:
- voterOnlyLink
-
setVoterOnlyLink
-
bytesHashed
-
getBytesHashed
the number of bytes hashed.- Returns:
- bytesHashed
-
setBytesHashed
-
bytesRead
-
getBytesRead
the number of bytes read.- Returns:
- bytesRead
-
setBytesRead
-
wtAgreement
-
getWtAgreement
the weight of vote percentage agreement.- Returns:
- wtAgreement
-
setWtAgreement
-
wtNumAgree
-
getWtNumAgree
the weight of number agree votes.- Returns:
- wtNumAgree
-
setWtNumAgree
-
wtNumDisagree
-
getWtNumDisagree
the weight of number of disagree votes.- Returns:
- wtNumDisagree
-
setWtNumDisagree
-
wtNumPollerOnly
-
getWtNumPollerOnly
the weight of number of poller only votes.- Returns:
- wtNumPollerOnly
-
setWtNumPollerOnly
-
wtNumVoterOnly
-
getWtNumVoterOnly
the weight of number of voter only votes.- Returns:
- wtNumVoterOnly
-
setWtNumVoterOnly
-
state
-
getState
the state machine state.- Returns:
- state
-
setState
-
lastStateChange
-
getLastStateChange
the time of last state change.- Returns:
- lastStateChange
-
setLastStateChange
-
equals
-
hashCode
public int hashCode() -
toString
-