org.alfresco.repo.model.filefolder.loader
Class LoaderListFoldersThread

java.lang.Object
  extended by java.lang.Thread
      extended by org.alfresco.repo.model.filefolder.loader.AbstractLoaderThread
          extended by org.alfresco.repo.model.filefolder.loader.LoaderListFoldersThread
All Implemented Interfaces:
java.lang.Runnable

public class LoaderListFoldersThread
extends AbstractLoaderThread

A loader thread that retrieves the folders beneath each directory from the root. This is an expensive process but should reach a stable execution time once the folders in the profile have all been created.

Since:
2.2

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class org.alfresco.repo.model.filefolder.loader.AbstractLoaderThread
loaderName, session, testLoadDepth, testPeriod, testTotal, verbose
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
LoaderListFoldersThread(LoaderSession session, java.lang.String loaderName, long testPeriod, long testTotal, long testLoadDepth, boolean verbose)
           
 
Method Summary
protected  java.lang.String doLoading(LoaderServerProxy serverProxy, org.alfresco.service.cmr.repository.NodeRef workingRootNodeRef)
          Go to a directory and get a listing of the folders beneath it.
 
Methods inherited from class org.alfresco.repo.model.filefolder.loader.AbstractLoaderThread
chooseFolderPath, doAfter, doBefore, getFile, getSummary, makeFolders, run, setStop
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LoaderListFoldersThread

public LoaderListFoldersThread(LoaderSession session,
                               java.lang.String loaderName,
                               long testPeriod,
                               long testTotal,
                               long testLoadDepth,
                               boolean verbose)
Method Detail

doLoading

protected java.lang.String doLoading(LoaderServerProxy serverProxy,
                                     org.alfresco.service.cmr.repository.NodeRef workingRootNodeRef)
                              throws java.lang.Exception
Go to a directory and get a listing of the folders beneath it.

Specified by:
doLoading in class AbstractLoaderThread
Parameters:
serverProxy - the server to load
workingRootNodeRef - the root of the hierarchy to use
Returns:
a brief description of the loading
Throws:
java.lang.Exception - any exception will be handled


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