package silk_appender
- Alphabetic
- Public
- Protected
Type Members
- case class DirMapping(incomingDir: Path, rootDir: Path, silkConfig: SilkConfig) extends StrictLogging with Product with Serializable
A class to periodically check for packed SiLK Flow files in the directory
incomingDir.A class to periodically check for packed SiLK Flow files in the directory
incomingDir. For each source file, the file's contents is written to a target file in a directory hierarchy rooted at the directoryrootDir. The location of the target file is determined by the given SilkConfig.Filenames in
incomingDirthat begin with a dot are ignored.The
jobs()method returns an Iterable of PackFileJob instances where each instance spawns a thread to process the records in a single file.- incomingDir
The directory to check for incoming files.
- rootDir
The root of the directory where new files are created.
- class Loader extends Runnable with StrictLogging
- case class SilkFileJob(sourcePath: Path, targetPath: Path)(implicit conf: Configuration) extends Runnable with StrictLogging with Product with Serializable
Spawn a thread to copy the contents of
sourcePathtotargetPathand then removesourcePath.Spawn a thread to copy the contents of
sourcePathtotargetPathand then removesourcePath. IftargetPathexists, a GUID suffix is added to the file name.- sourcePath
The file containing data to be copied.
- targetPath
The destination for the data.
Value Members
- object DirMapping extends Serializable
- object Loader
- object Main extends App