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

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.LoaderUpdateThread
All Implemented Interfaces:
java.lang.Runnable

public class LoaderUpdateThread
extends AbstractLoaderThread

Loader thread that updates documents to the remote repository.


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
LoaderUpdateThread(LoaderSession session, java.lang.String loaderName, long testPeriod, long testTotal, long testLoadDepth, boolean verbose, long filesPerIteration)
           
 
Method Summary
protected  void doBefore(LoaderServerProxy loaderServerProxy, org.alfresco.service.cmr.repository.NodeRef nodeRef)
          Run before record stats
protected  java.lang.String doLoading(LoaderServerProxy loaderServerProxy, org.alfresco.service.cmr.repository.NodeRef nodeRef)
           
 java.lang.String getSummary()
           NAME+36\tCOUNT \tTOTAL TIME \tAVERAGE TIME \tPER SECOND \tDESCRIPTION
 
Methods inherited from class org.alfresco.repo.model.filefolder.loader.AbstractLoaderThread
chooseFolderPath, doAfter, getFile, 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

LoaderUpdateThread

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

doBefore

protected void doBefore(LoaderServerProxy loaderServerProxy,
                        org.alfresco.service.cmr.repository.NodeRef nodeRef)
                 throws java.lang.Exception
Description copied from class: AbstractLoaderThread
Run before record stats

Overrides:
doBefore in class AbstractLoaderThread
Throws:
java.lang.Exception

doLoading

protected java.lang.String doLoading(LoaderServerProxy loaderServerProxy,
                                     org.alfresco.service.cmr.repository.NodeRef nodeRef)
                              throws java.lang.Exception
Specified by:
doLoading in class AbstractLoaderThread
Parameters:
loaderServerProxy - the server to load
nodeRef - the root of the hierarchy to use
Returns:
a brief description of the loading
Throws:
java.lang.Exception - any exception will be handled

getSummary

public java.lang.String getSummary()
Description copied from class: AbstractLoaderThread
 NAME+36\tCOUNT          \tTOTAL TIME     \tAVERAGE TIME   \tPER SECOND     \tDESCRIPTION     
 

Overrides:
getSummary in class AbstractLoaderThread
Returns:
Returns the summary of the results


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