SMILA 1.0 API documentation

org.eclipse.smila.zookeeper.internal
Class ZooKeeperGC

java.lang.Object
  extended by org.eclipse.smila.zookeeper.internal.ZooKeeperGC
All Implemented Interfaces:
java.lang.Runnable

public class ZooKeeperGC
extends java.lang.Object
implements java.lang.Runnable

Implements data file management (garbage collection) for the ZooKeeper's data files.


Constructor Summary
ZooKeeperGC(long gcInterval, java.lang.String dataDir, java.lang.String logDir, int snapshotsToKeep)
          Constructor.
 
Method Summary
 void run()
          
 void stop()
          Stops execution of ZooKeeperGC.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZooKeeperGC

public ZooKeeperGC(long gcInterval,
                   java.lang.String dataDir,
                   java.lang.String logDir,
                   int snapshotsToKeep)
Constructor.

Parameters:
gcInterval - time to wait in ms between invocations of two garbage collection operations
dataDir - directory for snapshots
logDir - directory for logs
Method Detail

run

public void run()

Specified by:
run in interface java.lang.Runnable

stop

public void stop()
Stops execution of ZooKeeperGC.


SMILA 1.0 API documentation