|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.wcm.benchmark.preparation.repository.RepoloadServiceImpl
public class RepoloadServiceImpl
Repository Loader for CTI This loader builds a tree of 4 levels. All trees starting in the first level are created using Threads.
| Field Summary | |
|---|---|
protected int |
fileSize
The file size. |
protected int |
firstWord
The first word. |
protected int |
l1Count
The l1 count. |
protected int |
l2Count
The l2 count. |
protected int |
l3Count
The l3 count. |
protected int |
l4Count
The l4 count. |
protected org.apache.commons.logging.Log |
log
The log. |
protected java.lang.String |
mimeType
The mime type. |
protected java.lang.String |
repository
The repository. |
protected org.exoplatform.services.jcr.RepositoryService |
repositoryService
The repository service. |
protected java.lang.String |
root
The root. |
protected javax.jcr.Node |
rootNode
The root node. |
protected int |
secondWord
The second word. |
protected int |
startIndex
The start index. |
protected java.lang.String |
workspace
The workspace. |
| Constructor Summary | |
|---|---|
RepoloadServiceImpl(org.exoplatform.container.xml.InitParams params,
org.exoplatform.services.jcr.RepositoryService repositoryService)
Constructor Initializes the service. |
|
RepoloadServiceImpl(int fSize,
int l1Count,
int l2Count,
int l3Count,
int l4Count,
java.lang.String mimeType,
java.lang.String repository,
java.lang.String root,
java.lang.String workspace,
org.exoplatform.services.jcr.RepositoryService repositoryService,
int firstWord,
int secondWord,
int startIndex,
int spetialTitlesCount)
Constructor Initializes the service. |
|
| Method Summary | |
|---|---|
void |
createRootTree()
Create the root node of the tree. |
javax.jcr.Node |
getRootNode()
Gets the root node. |
boolean[] |
parseBitMap(int documents,
int titles)
Parses the bit map. |
void |
start()
Triggers the load. |
void |
stop()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.apache.commons.logging.Log log
protected org.exoplatform.services.jcr.RepositoryService repositoryService
protected javax.jcr.Node rootNode
protected int fileSize
protected int l1Count
protected int l2Count
protected int l3Count
protected int l4Count
protected java.lang.String mimeType
protected java.lang.String repository
protected java.lang.String root
protected java.lang.String workspace
protected int firstWord
protected int secondWord
protected int startIndex
| Constructor Detail |
|---|
public RepoloadServiceImpl(org.exoplatform.container.xml.InitParams params,
org.exoplatform.services.jcr.RepositoryService repositoryService)
params - the paramsrepositoryService - the repository service
public RepoloadServiceImpl(int fSize,
int l1Count,
int l2Count,
int l3Count,
int l4Count,
java.lang.String mimeType,
java.lang.String repository,
java.lang.String root,
java.lang.String workspace,
org.exoplatform.services.jcr.RepositoryService repositoryService,
int firstWord,
int secondWord,
int startIndex,
int spetialTitlesCount)
fSize - the f sizel1Count - the l1 countl2Count - the l2 countl3Count - the l3 countl4Count - the l4 countmimeType - the mime typerepository - the repositoryroot - the rootworkspace - the workspacerepositoryService - the repository servicefirstWord - the first wordsecondWord - the second wordstartIndex - the start indexspetialTitlesCount - the spetial titles count| Method Detail |
|---|
public void createRootTree()
public void start()
start in interface org.picocontainer.Startablepublic void stop()
stop in interface org.picocontainer.Startable
public boolean[] parseBitMap(int documents,
int titles)
documents - the documentstitles - the titles
public javax.jcr.Node getRootNode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||