@ThreadSafe public final class VoteServer extends Object
Modifier and Type | Class and Description |
---|---|
static class |
VoteServer.ConstructionContext
A context for configuring the construction of a VoteServer.
|
static class |
VoteServer.DatabaseCC
A context for configuring the construction of a vote-server Database.
|
class |
VoteServer.Run
A run of the vote-server.
|
static class |
VoteServer.TestUseMode
A mode of test usage for a vote-server.
|
Constructor and Description |
---|
VoteServer(String name)
Constructs a VoteServer.
|
Modifier and Type | Method and Description |
---|---|
File |
codeDirectory()
The directory
~/votorola/code in which vote-server's runtime code is
stored. |
DiffCache |
diffCache()
The cache of
diff output. |
File |
inDirectory()
The base directory
~/votorola/in of the file portion of the input
store. |
String |
name()
The login name of the local host account, under which the vote-server's data is
stored and its processes are run.
|
File |
outDirectory()
The base directory
~/votorola/out of the file portion of the output
store. |
PollwikiVS |
pollwiki()
The pollwiki associated with this vote-server.
|
Count.VoteServerScope |
scopeCount()
API for all counts within the scope of this vote-server.
|
PollService.VoteServerScope |
scopePoll()
API for all polls within the scope of this vote-server.
|
NetworkTrace.VoteServerScope |
scopeTrace()
API for all traces of trust networks within the scope of this vote-server.
|
String |
serverName()
The name of the computer on which this vote-server is hosted.
|
String |
shortTitle()
A short version of the title, restricted to roughly
SHORT_STRING_LENGTH_MAX
characters.
|
(package private) File |
startupConfigurationFile()
The startup configuration file for this vote-server.
|
String |
summaryDescription()
A brief description of this vote-server, in sentence form.
|
VoteServer.TestUseMode |
testUseMode()
The test use mode of this vote-server, which determines whether users may log in
under aliases for test purposes.
|
String |
title()
The title of this vote-server, in wiki-style (first word only) title case.
|
File |
votorolaDirectory()
The base directory
~/votorola of all vote-server configuration files,
where ~ is the home directory of the vote-server account. |
URI |
votorolaURI()
The public location of the votorola directory
without a trailing slash (/), or a local "file" URI if the directory is
unpublished.
|
public VoteServer(String name) throws IOException, ScriptException, URISyntaxException
public File codeDirectory()
~/votorola/code
in which vote-server's runtime code is
stored.public File inDirectory()
~/votorola/in
of the file portion of the input
store. It serves mostly as a cache of files fetched from external sources.InputStore
public String name()
serverName()
,
../s/manual.xht#vote-server-namepublic File outDirectory()
~/votorola/out
of the file portion of the output
store.OutputStore
public PollwikiVS pollwiki()
public Count.VoteServerScope scopeCount()
public PollService.VoteServerScope scopePoll()
public NetworkTrace.VoteServerScope scopeTrace()
public String serverName()
public String shortTitle()
File startupConfigurationFile()
votorolaDirectory/vote-server.js
The language is JavaScript. There are restrictions on the character encoding.
public String summaryDescription()
public VoteServer.TestUseMode testUseMode()
public String title()
public File votorolaDirectory()
~/votorola
of all vote-server configuration files,
where ~
is the home directory of the vote-server account.public URI votorolaURI()