@ThreadSafe public final class ReadyDirectory extends OutputStore.ReadyDirectory
Count
,
Serialized FormModifier and Type | Field and Description |
---|---|
static FileFilter |
READY_DIRECTORY_FILTER
A file filter that accepts only apparent ready directories.
|
STATUS_FLAG_MOUNTED, STATUS_FLAG_REPORTED, STATUS_FLAGS_COUNT
pathSeparator, pathSeparatorChar, separator, separatorChar
Constructor and Description |
---|
ReadyDirectory(File _d)
Constructs a ReadyDirectory from an abstract (File) pathname.
|
ReadyDirectory(String pathname)
Constructs a ReadyDirectory from a string pathname.
|
Modifier and Type | Method and Description |
---|---|
static ReadyDirectory |
createReadyDirectory(File d,
String readyTracePathname,
PipeRecognizer pipeRecognizer)
Creates a new ReadyDirectory.
|
boolean |
isInitWarned()
Answers whether any warnings were logged during the construction of this ready
directory.
|
boolean |
isMounted()
Answers whether the count is nominally mounted.
|
int |
mount(VoteServer.Run run,
NetworkTrace networkTrace,
boolean isVerbose)
Tallies the results and posts them to the database and filebase.
|
File |
mountedDirectory()
The directory to which the count is serialized when mounted.
|
File |
newSerialFile(String serviceName)
Constructs the formal file to which the count for the specified poll service is
serialized when mounted.
|
PipeRecognizer |
pipeRecognizer()
The pipe recognizer for this ready directory.
|
File |
pollspace0Cache()
File to which JSON content for the first block of a PollspaceWAP response is written, when the count is mounted.
|
File |
pollspace0PCache()
File to which JSON content for the first block of a PollspaceWAP response is written in prettified form, when the count is mounted.
|
File |
readyTraceLink()
The symbolic link to the ready directory of the trust network trace.
|
boolean |
unmount(VoteServer.Run run)
Reverses a previous mount, erasing the results from the database and filebase.
|
snapDirectory, statusPrintln, statusPrintln, toUIString, toUIString
canExecute, canRead, canWrite, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getFreeSpace, getName, getParent, getParentFile, getPath, getTotalSpace, getUsableSpace, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setExecutable, setExecutable, setLastModified, setReadable, setReadable, setReadOnly, setWritable, setWritable, toPath, toString, toURI, toURL
public static final FileFilter READY_DIRECTORY_FILTER
public ReadyDirectory(File _d) throws IOException
_d
- the abstract pathname. It will be converted to canonical form if
necessary.FileNotFoundException
- if no directory exists at the specified pathname.IOException
createReadyDirectory(File,String,PipeRecognizer)
public ReadyDirectory(String pathname) throws IOException
pathname
- the string pathname, per File(pathname). It will be converted to canonical form if necessary.FileNotFoundException
- if no directory exists at the specified pathname.IOException
createReadyDirectory(File,String,PipeRecognizer)
public static ReadyDirectory createReadyDirectory(File d, String readyTracePathname, PipeRecognizer pipeRecognizer) throws IOException
d
- the abstract pathname. It will be converted to canonical form if
necessary.readyTracePathname
- the pathname of the ready directory of the trust
trace to use.IOException
pipeRecognizer()
public boolean isInitWarned()
public int mount(VoteServer.Run run, NetworkTrace networkTrace, boolean isVerbose) throws VotorolaException
networkTrace
- the previously mounted trace of the trust network.isVerbose
- if true, additional details are printed to standard output
as the mount progresses.VotorolaException
isMounted()
,
unmount(VoteServer.Run)
public File mountedDirectory()
public File newSerialFile(String serviceName)
public PipeRecognizer pipeRecognizer()
public File pollspace0Cache()
public File pollspace0PCache()
public File readyTraceLink()
public boolean unmount(VoteServer.Run run) throws IOException, SQLException
IOException
SQLException
isMounted()
,
mount(VoteServer.Run,NetworkTrace,boolean)
public boolean isMounted()
isMounted
in class OutputStore.ReadyDirectory