org.sourcejammer.server
Class CleanupScheduler

java.lang.Object
  |
  +--org.sourcejammer.server.CleanupScheduler

public class CleanupScheduler
extends java.lang.Object

Title: $FileName: CleanupScheduler.java$

Version:
$VerNum: 3$ $KeyWordsOff: $

Runs at set intervals to clean unneeded files from disk and kill old sessions.
Author:
$AuthorName: Rob MacGrogan$

Nested Class Summary
protected  class CleanupScheduler.CleanupThread
           
 
Field Summary
static long DEFAULT_SLEEP_INTERVAL
           
static CleanupScheduler instance
           
static long MAX_INACTIVE_SESSION_AGE
           
static long MAX_TEMP_FILE_AGE
           
private  long sleepInterval
           
private  CleanupScheduler.CleanupThread thread
           
 
Constructor Summary
private CleanupScheduler(long sleepInterval)
           
 
Method Summary
protected  void finalize()
           
static CleanupScheduler getInstance()
           
static void initializeInstance()
           
static void initializeInstance(long sleepInterval)
           
 void restartThreadIfStopped()
           
private  void start()
           
 void startThread()
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_SLEEP_INTERVAL

public static final long DEFAULT_SLEEP_INTERVAL
See Also:
Constant Field Values

MAX_TEMP_FILE_AGE

public static final long MAX_TEMP_FILE_AGE
See Also:
Constant Field Values

MAX_INACTIVE_SESSION_AGE

public static final long MAX_INACTIVE_SESSION_AGE
See Also:
Constant Field Values

thread

private CleanupScheduler.CleanupThread thread

sleepInterval

private long sleepInterval

instance

public static CleanupScheduler instance
Constructor Detail

CleanupScheduler

private CleanupScheduler(long sleepInterval)
Method Detail

initializeInstance

public static void initializeInstance()

initializeInstance

public static void initializeInstance(long sleepInterval)

getInstance

public static CleanupScheduler getInstance()

restartThreadIfStopped

public void restartThreadIfStopped()

startThread

public void startThread()

start

private void start()

finalize

protected void finalize()
                 throws java.lang.Throwable
Overrides:
finalize in class java.lang.Object
java.lang.Throwable
See Also:
Object.finalize()


Copyright © 2003 Soucejammer project.