X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-akka-raft%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fraft%2FConfigParams.java;fp=opendaylight%2Fmd-sal%2Fsal-akka-raft%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fraft%2FConfigParams.java;h=86ce3113fab53e9f66d64db0fa4d793fd08fc010;hp=0e701e3aa55eb00b1d49be1d2fbd3cd6704827c3;hb=d796a8de8b208ca24bb57aebfc689f8be8bc2c7b;hpb=5ab22a0bea0492dd8f1541b2f0cde4ea7618a786 diff --git a/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/ConfigParams.java b/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/ConfigParams.java index 0e701e3aa5..86ce3113fa 100644 --- a/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/ConfigParams.java +++ b/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/ConfigParams.java @@ -24,6 +24,8 @@ import scala.concurrent.duration.FiniteDuration; * @author Kamal Rameshan */ public interface ConfigParams { + int MEGABYTE = 1048576; + /** * Returns the minimum number of entries to be present in the in-memory Raft log for a snapshot to be taken. * @@ -114,4 +116,19 @@ public interface ConfigParams { */ String getCustomRaftPolicyImplementationClass(); + /** + * Returns the directory in which to create temp files. + * + * @return the directory in which to create temp files. + */ + @Nonnull + String getTempFileDirectory(); + + /** + * Returns the threshold in terms of number of bytes when streaming data before it should switch from storing in + * memory to buffering to a file. + * + * @return the threshold in terms of number of bytes. + */ + int getFileBackedStreamingThreshold(); }