import akka.actor.ActorSelection;
import akka.actor.ActorSystem;
import akka.actor.Props;
-import akka.event.LoggingAdapter;
-
+import com.google.common.annotations.VisibleForTesting;
+import com.google.common.base.Supplier;
import java.util.Map;
+import org.slf4j.Logger;
/**
* The RaftActorContext contains that portion of the RaftActors state that
*
* @return
*/
- LoggingAdapter getLogger();
+ Logger getLogger();
/**
* Get a mapping of peerId's to their addresses
*/
ConfigParams getConfigParams();
- void setSnapshotCaptureInitiated(boolean snapshotCaptureInitiated);
+ SnapshotManager getSnapshotManager();
+
+ boolean hasFollowers();
+
+ long getTotalMemory();
- boolean isSnapshotCaptureInitiated();
+ @VisibleForTesting
+ void setTotalMemoryRetriever(Supplier<Long> retriever);
}