@ThreadSafe public final class ReadyDirectory extends OutputStore.ReadyDirectory
NetworkTrace
,
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 snapDirectory)
Creates a ready directory and returns an instance of it.
|
(package private) File |
inRegistrationFile()
The file storing the snapshot of registrant input from the streetwiki, in XML
format.
|
boolean |
isMounted()
Answers whether the trace is nominally mounted.
|
NetworkTrace |
mount(Trustserver trustserver,
boolean isVerbose)
Traces the trust network, compiles the registration list, and posts the results to
the database and filebase.
|
File |
mountedDirectory()
The directory to which the trace is serialized, when mounted.
|
File |
newListSerialFile(String area)
Constructs the file to which a registration list is serialized when mounted.
|
File |
newTraceSerialFile()
Constructs the file to which a network trace is serialized when mounted.
|
boolean |
unmount(VoteServer.Run vsRun)
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)
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)
public static ReadyDirectory createReadyDirectory(File snapDirectory) throws IOException
snapDirectory
- the parent directory in which to create the new ready
directory.IOException
File inRegistrationFile()
public NetworkTrace mount(Trustserver trustserver, boolean isVerbose) throws AddressException, IOException, ScriptException, SQLException, XMLStreamException
public File mountedDirectory()
public File newListSerialFile(String area)
public File newTraceSerialFile()
public boolean unmount(VoteServer.Run vsRun) throws IOException, SQLException
IOException
SQLException
isMounted()
,
mount(Trustserver,boolean)
public boolean isMounted()
isMounted
in class OutputStore.ReadyDirectory