|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectVoterService
VoterService.UIdentified
Poll
@ThreadRestricted(value="holds lock()") public final class Poll
A poll provided as a voter service. A poll is a collection of votes that are stored in a public repository, from which vote counts are generated. The name of the poll is guaranteed to end with P_SUFFIX.
| Nested Class Summary | |
|---|---|
static class |
Poll.ConstructionContext
A context for configuring a poll. |
(package private) static class |
Poll.LeaderConfiguration
The leader configuration of a poll. |
static class |
Poll.PollserverScope
API for all polls within the scope of a pollserver. |
| Nested classes/interfaces inherited from class VoterService |
|---|
VoterService.NoSuchServiceException, VoterService.UIdentified |
| Nested classes/interfaces inherited from interface InputStore |
|---|
InputStore.X |
| Field Summary | |
|---|---|
static String |
P_SUFFIX
The standard suffix for all poll names. |
(package private) static String |
SEMANTIC_BASE_ID
The standard base identifier for RDF applications, in URI format. |
| Fields inherited from class VoterService.UIdentified |
|---|
uid |
| Fields inherited from class VoterService |
|---|
constructionContext, lock, name, NAME_MAX_LENGTH, NAME_PATTERN, pollserverRun |
| Method Summary | |
|---|---|
Count |
countToReport()
The current count to report, if any. |
Exception |
dispatch(String[] argArray,
CommandResponder.Session commandSession)
Looks up the responder of the specified command, and sends the command to it. |
DivisionalPollNode |
divisionalNode()
The divisional node for this poll. |
Issue |
issue()
The issue of this poll. |
ActivityEvent |
newChangeEventOrNull(Vote oldVote,
Vote newVote)
Either constructs an event to record the change that occured between oldVote and newVote; or returns null, if no significant change occured. |
String |
pName()
The p-name of this poll. |
static String |
pName(String name)
The p-name of a poll. |
long |
populationSize()
The population base of this poll, if known. |
String |
populationSizeExplanation()
An explanation of the population base, intended for the information of users. |
(package private) JavaScriptIncluder |
runtimeConfigurationScript()
The runtime configuration file for the register. |
File |
startupConfigurationFile()
The startup configuration file for this service. |
String |
summaryDescription()
A brief description of this poll, up to a few sentences in length. |
String |
summaryDescription(BundleFormatter bun)
Returns either the summary description; or, if there is none, a placeholder with localized configuration instructions. |
String |
title()
Title of this poll, in wiki-style title case (leading letter only). |
InputTable |
voterInputTable()
The relational store of voter input for this service. |
| Methods inherited from class VoterService.UIdentified |
|---|
helpA_2, uid |
| Methods inherited from class VoterService |
|---|
dispatch, equals, help, helpA_1, helpA_3, helpA, helpB, helpC, init, lock, name, pollserverRun, responderByClassName, responderForCommand, responders, serviceDirectory, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String P_SUFFIX
VoterService.name(),
pName(),
Constant Field Valuesstatic final String SEMANTIC_BASE_ID
| Method Detail |
|---|
public Count countToReport()
throws IOException,
SQLException
IOException
SQLExceptionpublic DivisionalPollNode divisionalNode()
@ThreadSafe public Issue issue()
public ActivityEvent newChangeEventOrNull(Vote oldVote,
Vote newVote)
@ThreadSafe public String pName()
As a rule, the p-name is used only for aesthetic reasons, and only in the end-user interface. The administrative interface and internal code references always use the full service name.
VoterService.name(),
pName(String)@ThreadSafe public static String pName(String name)
As a rule, the p-name is used only for aesthetic reasons, and only in the end-user interface. The administrative interface and internal code references always use the full service name.
name - the full service name of the poll, which is assumed to end
with the P_SUFFIX
VoterService.name(),
pName()@ThreadSafe public long populationSize()
Poll.ConstructionContext.setPopulationSize(long),
District.populationSize()@ThreadSafe public String populationSizeExplanation()
Poll.ConstructionContext.setPopulationSizeExplanation(String)@Warning(value="thread restricted object") JavaScriptIncluder runtimeConfigurationScript()
public Exception dispatch(String[] argArray,
CommandResponder.Session commandSession)
VoterService
dispatch in class VoterServiceargArray - an array containing the command name and arguments,
per CommandResponder.respond(argv,session)
CommandResponder.respond(String[],CommandResponder.Session)@ThreadSafe public File startupConfigurationFile()
VoterService
startupConfigurationFile in class VoterService@ThreadSafe public String summaryDescription()
summaryDescription in class VoterServicesummaryDescription(BundleFormatter),
../manual.xht#leader-config,
Leader.xsd (Poll/summaryDescription)@ThreadSafe public String summaryDescription(BundleFormatter bun)
@ThreadSafe public String title()
title in class VoterService@ThreadSafe public InputTable voterInputTable()
InputStore
voterInputTable in interface InputStorePollserver.Run.voterInputDatabase()
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||