org.alfresco.filesys.state
Class FileStateReaper

java.lang.Object
  extended by org.alfresco.filesys.state.FileStateReaper
All Implemented Interfaces:
java.lang.Runnable

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

File State Reaper Class

FileStateTable objects register with the file state reaper to periodically check for expired file states.


Constructor Summary
FileStateReaper()
          Default constructor
 
Method Summary
 void addStateTable(java.lang.String filesysName, FileStateTable stateTable)
          Add a file state table to the reaper list
 long getCheckInterval()
          Return the expired file state checker interval, in milliseconds
 void removeStateTable(java.lang.String filesysName)
          Remove a state table from the reaper list
 void run()
          Expired file state checker thread
 void setCheckInterval(long chkIntval)
          Set the expired file state checker interval, in milliseconds
 void shutdownRequest()
          Request the file state checker thread to shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileStateReaper

public FileStateReaper()
Default constructor

Method Detail

getCheckInterval

public final long getCheckInterval()
Return the expired file state checker interval, in milliseconds

Returns:
long

setCheckInterval

public final void setCheckInterval(long chkIntval)
Set the expired file state checker interval, in milliseconds

Parameters:
chkIntval - long

addStateTable

public final void addStateTable(java.lang.String filesysName,
                                FileStateTable stateTable)
Add a file state table to the reaper list

Parameters:
filesysName - String
stateTable - FileStateTable

removeStateTable

public final void removeStateTable(java.lang.String filesysName)
Remove a state table from the reaper list

Parameters:
filesysName - String

run

public void run()
Expired file state checker thread

Specified by:
run in interface java.lang.Runnable

shutdownRequest

public final void shutdownRequest()
Request the file state checker thread to shutdown



Copyright © 2005 - 2008 Alfresco Software, Inc. All Rights Reserved.