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: 2$
$KeyWordsOff: $
Runs at set intervals to clean unneeded files from disk and kill old sessions.
- Author:
- $AuthorName: Rob MacGrogan$
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
CleanupScheduler
private CleanupScheduler(long sleepInterval)
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.