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

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

public class LoaderTotalsThread
extends AbstractLoaderThread

A loader thread that merely reports the size of the remote repository.

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
LoaderTotalsThread(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)
          Gets the remote repository sizes and dumps those.
 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, doBefore, 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

LoaderTotalsThread

public LoaderTotalsThread(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
Gets the remote repository sizes and dumps those.

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

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.