Class VoterDetail

java.lang.Object
org.lockss.laaws.poller.model.VoterDetail

@Validated public class VoterDetail extends Object
The details of a poll being performed or queued as the Voter.
  • Constructor Details

    • VoterDetail

      public VoterDetail()
  • Method Details

    • pollDesc

      public VoterDetail pollDesc(org.lockss.util.rest.poller.PollDesc 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

      public VoterDetail pollerId(String pollerId)
    • getPollerId

      @NotNull public @NotNull String getPollerId()
      The id of the voter in the poll
      Returns:
      pollerId
    • setPollerId

      public void setPollerId(String pollerId)
    • callerId

      public VoterDetail callerId(String callerId)
    • getCallerId

      public String getCallerId()
      The id of the poller who called the poll
      Returns:
      callerId
    • setCallerId

      public void setCallerId(String callerId)
    • status

      public VoterDetail status(String status)
    • getStatus

      @NotNull public @NotNull String getStatus()
      The current status of the poll.
      Returns:
      status
    • setStatus

      public void setStatus(String status)
    • pollKey

      public VoterDetail pollKey(String pollKey)
    • getPollKey

      public String getPollKey()
      Key generated by poll manager when poll is created.
      Returns:
      pollKey
    • setPollKey

      public void setPollKey(String pollKey)
    • createTime

      public VoterDetail createTime(Long createTime)
    • getCreateTime

      public Long getCreateTime()
      The timestamp at which the poll was created.
      Returns:
      createTime
    • setCreateTime

      public void setCreateTime(Long createTime)
    • duration

      public VoterDetail duration(Long duration)
    • getDuration

      public Long getDuration()
      The estimated duration for the poll.
      Returns:
      duration
    • setDuration

      public void setDuration(Long duration)
    • deadline

      public VoterDetail deadline(Long deadline)
    • getDeadline

      public Long getDeadline()
      The time by which the poll must have completed
      Returns:
      deadline
    • setDeadline

      public void setDeadline(Long deadline)
    • hashAlgorithm

      public VoterDetail hashAlgorithm(String hashAlgorithm)
    • getHashAlgorithm

      public String getHashAlgorithm()
      The algorithm used by the hasher for this poll.
      Returns:
      hashAlgorithm
    • setHashAlgorithm

      public void setHashAlgorithm(String hashAlgorithm)
    • agreement

      public VoterDetail agreement(Double agreement)
    • getAgreement

      public Double getAgreement()
      The percentage agreement.
      Returns:
      agreement
    • setAgreement

      public void setAgreement(Double agreement)
    • wtAgreement

      public VoterDetail wtAgreement(Double wtAgreement)
    • getWtAgreement

      public Double getWtAgreement()
      The weighted percentage agreement.
      Returns:
      wtAgreement
    • setWtAgreement

      public void setWtAgreement(Double wtAgreement)
    • symmetricAgreement

      public VoterDetail symmetricAgreement(Double symmetricAgreement)
    • getSymmetricAgreement

      public Double getSymmetricAgreement()
      The percentage of symmetric agreement.
      Returns:
      symmetricAgreement
    • setSymmetricAgreement

      public void setSymmetricAgreement(Double symmetricAgreement)
    • wtSymmetricAgreement

      public VoterDetail wtSymmetricAgreement(Double wtSymmetricAgreement)
    • getWtSymmetricAgreement

      public Double getWtSymmetricAgreement()
      The weighted percentage of symmetric agreement.
      Returns:
      wtSymmetricAgreement
    • setWtSymmetricAgreement

      public void setWtSymmetricAgreement(Double wtSymmetricAgreement)
    • pollerNonce

      public VoterDetail pollerNonce(String pollerNonce)
    • getPollerNonce

      public String getPollerNonce()
      the poller nonce
      Returns:
      pollerNonce
    • setPollerNonce

      public void setPollerNonce(String pollerNonce)
    • voterNonce

      public VoterDetail voterNonce(String voterNonce)
    • getVoterNonce

      public String getVoterNonce()
      the voter nonce
      Returns:
      voterNonce
    • setVoterNonce

      public void setVoterNonce(String voterNonce)
    • voter2Nonce

      public VoterDetail voter2Nonce(String voter2Nonce)
    • getVoter2Nonce

      public String getVoter2Nonce()
      the voter2 nonce
      Returns:
      voter2Nonce
    • setVoter2Nonce

      public void setVoter2Nonce(String voter2Nonce)
    • voteDeadline

      public VoterDetail voteDeadline(Long voteDeadline)
    • getVoteDeadline

      public Long getVoteDeadline()
      The time by which all voters must have voted.
      Returns:
      voteDeadline
    • setVoteDeadline

      public void setVoteDeadline(Long voteDeadline)
    • numAgree

      public VoterDetail numAgree(Integer numAgree)
    • getNumAgree

      public Integer getNumAgree()
      The number of urls with agreement.
      Returns:
      numAgree
    • setNumAgree

      public void setNumAgree(Integer numAgree)
    • numDisagree

      public VoterDetail numDisagree(Integer numDisagree)
    • getNumDisagree

      public Integer getNumDisagree()
      The number of urls with disagreement.
      Returns:
      numDisagree
    • setNumDisagree

      public void setNumDisagree(Integer numDisagree)
    • numPollerOnly

      public VoterDetail numPollerOnly(Integer numPollerOnly)
    • getNumPollerOnly

      public Integer getNumPollerOnly()
      The number of urls found by only the poller.
      Returns:
      numPollerOnly
    • setNumPollerOnly

      public void setNumPollerOnly(Integer numPollerOnly)
    • numVoterOnly

      public VoterDetail numVoterOnly(Integer numVoterOnly)
    • getNumVoterOnly

      public Integer getNumVoterOnly()
      The number of urls found by only a voter.
      Returns:
      numVoterOnly
    • setNumVoterOnly

      public void setNumVoterOnly(Integer numVoterOnly)
    • errorDetails

      public VoterDetail errorDetails(String errorDetails)
    • getErrorDetails

      public String getErrorDetails()
      The error which caused the poll to fail.
      Returns:
      errorDetails
    • setErrorDetails

      public void setErrorDetails(String errorDetails)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object