Class PollerDetail

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

@Validated public class PollerDetail extends Object
The details of a poll being performed or queued by the Poller
  • Constructor Details

    • PollerDetail

      public PollerDetail()
  • Method Details

    • pollDesc

      public PollerDetail 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 PollerDetail pollerId(String pollerId)
    • getPollerId

      @NotNull public @NotNull String getPollerId()
      The id of the poller who called the poll
      Returns:
      pollerId
    • setPollerId

      public void setPollerId(String pollerId)
    • status

      public PollerDetail 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 PollerDetail 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 PollerDetail 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 PollerDetail duration(Long duration)
    • getDuration

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

      public void setDuration(Long duration)
    • deadline

      public PollerDetail deadline(Long deadline)
    • getDeadline

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

      public void setDeadline(Long deadline)
    • outerCircleTarget

      public PollerDetail outerCircleTarget(Integer outerCircleTarget)
    • getOuterCircleTarget

      public Integer getOuterCircleTarget()
      The number of peers from the poller outer circle to taget.
      Returns:
      outerCircleTarget
    • setOuterCircleTarget

      public void setOuterCircleTarget(Integer outerCircleTarget)
    • hashAlgorithm

      public PollerDetail hashAlgorithm(String hashAlgorithm)
    • getHashAlgorithm

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

      public void setHashAlgorithm(String hashAlgorithm)
    • voteMargin

      public PollerDetail voteMargin(Integer voteMargin)
    • getVoteMargin

      public Integer getVoteMargin()
      The required agreement need to decide landslide agreement or disagreement.
      Returns:
      voteMargin
    • setVoteMargin

      public void setVoteMargin(Integer voteMargin)
    • voteDeadline

      public PollerDetail voteDeadline(Long voteDeadline)
    • getVoteDeadline

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

      public void setVoteDeadline(Long voteDeadline)
    • voteDuration

      public PollerDetail voteDuration(Long voteDuration)
    • getVoteDuration

      public Long getVoteDuration()
      The estimated duration for voters.
      Returns:
      voteDuration
    • setVoteDuration

      public void setVoteDuration(Long voteDuration)
    • pollEnd

      public PollerDetail pollEnd(Long pollEnd)
    • getPollEnd

      public Long getPollEnd()
      the time at which the poll ended or -1 if still running.
      Returns:
      pollEnd
    • setPollEnd

      public void setPollEnd(Long pollEnd)
    • quorum

      public PollerDetail quorum(Integer quorum)
    • getQuorum

      public Integer getQuorum()
      The minimum required for a quroum
      Returns:
      quorum
    • setQuorum

      public void setQuorum(Integer quorum)
    • errorDetails

      public PollerDetail errorDetails(String errorDetails)
    • getErrorDetails

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

      public void setErrorDetails(String errorDetails)
    • votedPeers

      public PollerDetail votedPeers(List<PeerData> votedPeers)
    • addVotedPeersItem

      public PollerDetail addVotedPeersItem(PeerData votedPeersItem)
    • getVotedPeers

      @Valid public @Valid List<PeerData> getVotedPeers()
      The data from peers whom voted.
      Returns:
      votedPeers
    • setVotedPeers

      public void setVotedPeers(List<PeerData> votedPeers)
    • noAuPeers

      public PollerDetail noAuPeers(List<String> noAuPeers)
    • addNoAuPeersItem

      public PollerDetail addNoAuPeersItem(String noAuPeersItem)
    • getNoAuPeers

      public List<String> getNoAuPeers()
      The peers who do not have the au.
      Returns:
      noAuPeers
    • setNoAuPeers

      public void setNoAuPeers(List<String> noAuPeers)
    • tally

      public PollerDetail tally(TallyData tally)
    • getTally

      @Valid public @Valid TallyData getTally()
      Get tally
      Returns:
      tally
    • setTally

      public void setTally(TallyData tally)
    • repairQueue

      public PollerDetail repairQueue(RepairQueue repairQueue)
    • getRepairQueue

      @Valid public @Valid RepairQueue getRepairQueue()
      Get repairQueue
      Returns:
      repairQueue
    • setRepairQueue

      public void setRepairQueue(RepairQueue repairQueue)
    • 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