|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectCount
@ThreadSafe public class Count
The tallied results of a poll.
| Constructor Summary | |
|---|---|
protected |
Count(Count count)
Constructs a count as a copy of another. |
(package private) |
Count(String serviceName,
ReadyDirectory readyDirectory,
CountTable.RankedCumulate rankedCumulate)
Partially constructs a Count, for init to finish. |
| Method Summary | |
|---|---|
long |
candidateCount()
The number of nodes with a receive count of 1 or higher. |
CountTable |
countTable()
The relational store of count nodes that (in part) backs this count, or null. |
CountTable.PollView |
countTablePV()
The poll view of the count table, or null. |
long |
holdCount()
The total hold count for all nodes. |
(package private) void |
init(CountTable countTable)
Completes the construction of a new Count. |
(package private) boolean |
isObjectReadFromSerialFile(ReadyDirectory newReadyDirectory)
Returns true if this count is probably in sync with the serial file of the specified ready directory; false if that file has since been modified or deleted. |
long |
msEndSnap()
The time at which the snapshot of voter input was complete, in milliseconds since the 'epoch'; or Long.MAX_VALUE if the time is unknown. |
long |
msStartSnap()
The time at which the snapshot of voter input commenced, in milliseconds since the 'epoch'; or zero if the time is unknown. |
long |
nodeCount()
The number of recorded nodes, corresponding to rows in the node table. |
long |
rankCount()
The total number of ranks. |
(package private) static Count |
readObjectFromSerialFile(String serviceName,
ReadyDirectory readyDirectory)
|
ReadyDirectory |
readyDirectory()
The file part of the backing for this count. |
String |
serviceName()
The poll identifier for this count. |
long |
singleCastCount()
The total number of votes cast. |
(package private) void |
writeObjectToSerialFile()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
Count(String serviceName,
ReadyDirectory readyDirectory,
CountTable.RankedCumulate rankedCumulate)
throws IOException
IOExceptionserviceName(),
readyDirectory()protected Count(Count count)
| Method Detail |
|---|
@ThreadRestricted(value="constructor") final void init(CountTable countTable)
countTable()final boolean isObjectReadFromSerialFile(ReadyDirectory newReadyDirectory)
readObjectFromSerialFile(String,ReadyDirectory)
static Count readObjectFromSerialFile(String serviceName,
ReadyDirectory readyDirectory)
throws IOException
FileNotFoundException - if the count does not include the named poll
IOExceptionwriteObjectToSerialFile()
final void writeObjectToSerialFile()
throws IOException
IOExceptionreadObjectFromSerialFile(String,ReadyDirectory)public final long candidateCount()
CountNode.receiveCount()public final CountTable countTable()
Pollserver.Run.outputDatabase(),
init(CountTable)public final CountTable.PollView countTablePV()
init(CountTable)public final long holdCount()
CountNode.holdCount()public final long nodeCount()
CountNodepublic long msEndSnap()
System.currentTimeMillis()public long msStartSnap()
System.currentTimeMillis()public final long rankCount()
CountNode.getRank()public final ReadyDirectory readyDirectory()
public final String serviceName()
public long singleCastCount()
CountNode.singleCastCount()
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||