@ThreadSafe public final class VOFaceMail extends Object implements Runnable, VoterInterface
main(String[])
,
../../s/manual.xht#mailModifier and Type | Class and Description |
---|---|
static class |
VOFaceMail.ConstructionContext
A context for configuring the mail interface.
|
Modifier and Type | Field and Description |
---|---|
(package private) VOFaceMail.ConstructionContext |
cc |
Modifier and Type | Method and Description |
---|---|
static JavaScriptIncluder |
compileConfigurationScript(VoteServer voteServer)
Executes the configuration script of the mail interface (without making any
configuration calls), thus compiling it for subsequent use.
|
(package private) static VOFaceMail |
i()
The single instance of VOFaceMail, if it was created.
|
(package private) int |
inboxPollSleepSeconds()
The delay prior to each poll of the inbox for new messages.
|
(package private) URLName |
inboxStoreURLName()
The protocol and location of the inbox.
|
(package private) boolean |
isDryRun()
Returns true if this interface is to run without making any persistent state changes.
|
static void |
main(String[] argv)
Creates the mail interface from the command line, and starts it.
|
void |
run() |
String |
serviceAccessDescriptor(VoterService s)
Constructs an access descriptor, such as a URL or email address, that is suitable
for accessing the specified voter service within this voter interface.
|
(package private) File |
startupConfigurationFile()
The startup configuration file for this mail interface.
|
(package private) CountDownLatchX |
stopLatch()
A latch that zeroes when this interface is stopping.
|
public static void main(String[] argv)
argv
- the command line argument array.i()
,
voface-mailstatic VOFaceMail i()
public static JavaScriptIncluder compileConfigurationScript(VoteServer voteServer) throws IOException, ScriptException
IOException
ScriptException
int inboxPollSleepSeconds()
URLName inboxStoreURLName()
"imap:?" (actually, we're unsure of IMAP syntax, and have not tested it), per: http://java.sun.com/products/javamail/javadocs/com/sun/mail/imap/package-summary.html "maildir:/home/vote-serverName/.mail" http://javamaildir.sourceforge.net/ "pop3://vote-serverName:password@host:port" (not yet tested), per: http://java.sun.com/products/javamail/javadocs/com/sun/mail/pop3/package-summary.html
boolean isDryRun()
Consequently, each dry run will read the messages of the inbox over and over again, in an endless loop.
File startupConfigurationFile()
public String serviceAccessDescriptor(VoterService s)
VoterInterface
serviceAccessDescriptor
in interface VoterInterface
s
, including a personal partMailMetaService.serviceEmail(VoterService)
CountDownLatchX stopLatch()