org.exoplatform.wcm.benchmark.preparation.repository
Class RepoloadWorker

java.lang.Object
  extended by java.lang.Thread
      extended by org.exoplatform.wcm.benchmark.preparation.repository.RepoloadWorker
All Implemented Interfaces:
java.lang.Runnable

public class RepoloadWorker
extends java.lang.Thread

Asynchronous creation of the trees starting from level 2.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
protected  org.apache.commons.logging.Log log
          The log.
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
RepoloadWorker(RepoloadServiceImpl repoload, int l1, int firstWord, int secondWord, int startIndex, boolean[] randomPeriod, java.util.concurrent.CountDownLatch loch)
          Constructor Initializes variables.
 
Method Summary
 org.exoplatform.services.jcr.impl.dataflow.TransientValueData getFileValueData()
          Gets the file value data.
 java.util.Random getRandom()
          Gets the random.
 int getSpetialTitleCount()
          Gets the spetial title count.
 int getTotalFile()
          Return total number of loaded files.
 void run()
          Creates the tree from leve 2 and the files in the leaves.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

protected org.apache.commons.logging.Log log
The log.

Constructor Detail

RepoloadWorker

public RepoloadWorker(RepoloadServiceImpl repoload,
                      int l1,
                      int firstWord,
                      int secondWord,
                      int startIndex,
                      boolean[] randomPeriod,
                      java.util.concurrent.CountDownLatch loch)
               throws java.io.IOException
Constructor Initializes variables.

Parameters:
randomPeriod - the random period
loch - the loch
repoload - the repoload
l1 - the l1
firstWord - the first word
secondWord - the second word
startIndex - the start index
Throws:
java.io.IOException - Signals that an I/O exception has occurred.
Method Detail

run

public void run()
Creates the tree from leve 2 and the files in the leaves.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

getSpetialTitleCount

public int getSpetialTitleCount()
Gets the spetial title count.

Returns:
the spetial title count

getFileValueData

public org.exoplatform.services.jcr.impl.dataflow.TransientValueData getFileValueData()
Gets the file value data.

Returns:
the file value data

getTotalFile

public int getTotalFile()
Return total number of loaded files.

Returns:
the total file

getRandom

public java.util.Random getRandom()
Gets the random.

Returns:
the random


Copyright © 2010 eXo Platform SAS. All Rights Reserved.