|
Akka/Scala example source code file (PluginCleanup.scala)
The PluginCleanup.scala Akka example source codepackage akka.persistence import java.io.File import org.apache.commons.io.FileUtils trait PluginCleanup extends PluginSpec { val storageLocations = List( "akka.persistence.journal.leveldb.dir", "akka.persistence.snapshot-store.local.dir").map(s ⇒ new File(system.settings.config.getString(s))) override def beforeAll() { storageLocations.foreach(FileUtils.deleteDirectory) super.beforeAll() } override def afterAll() { super.afterAll() storageLocations.foreach(FileUtils.deleteDirectory) } } Other Akka source code examplesHere is a short list of links related to this Akka PluginCleanup.scala source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.