Skip to content

Instantly share code, notes, and snippets.

@nsivabalan
Created October 13, 2016 06:19
Show Gist options
  • Save nsivabalan/c7917717841be94cec2767b17822fa70 to your computer and use it in GitHub Desktop.
Save nsivabalan/c7917717841be94cec2767b17822fa70 to your computer and use it in GitHub Desktop.
Interface for Scrubber
/**
* Class used for scrubbing the log for any inconsistencies
*/
public class Scrubber {
/**
* Used to start scrubbing the log for consistency checks
*/
public void start();
/**
* Used to pause the current execution of scrubbing
*/
public void pause();
/**
* Used to resume the execution incase it was paused
*/
public void resume();
/**
* Used to stop the scrubbing process for this current execution
*/
public void stop();
/**
* Used to dump the statistics as part of the current scrubbing execution
*/
private void dumpStats();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment