public class SiteFolderLoader
extends org.alfresco.bm.event.AbstractEventProcessor
folder and file loaders
and reschedule self until there are enough folders and files.
Each site has one folder, the Document Library, that acts as the root of each tree.
Each Document Library is at level one
(depth zero) in the calculations.
Every folder receives the same number of files.
sites: the total number of sites
subfolders: the number of subfolders in each folder (except the last level)
filesPerFolder: the number of files added to each folder
maxDepth: the depth of the last level of folders
of the site document libraries.
folders = (sites)*(subfolders^0 + subfolders^1 + subfolders^2 + ... + subfolders^(maxDepth-1))
= (sites)*( 1 + subfolders + subfolders^2 + ... + subfolders^(maxDepth-1))
files = (folders)*(filesPerFolder)
Using the test defaults:
folders = (100)*( 1 + 5 + 25 ) = 3,100
files = 3100*100 = 310,000
TODO: Put on Wiki| Modifier and Type | Field and Description |
|---|---|
static String |
EVENT_NAME_SITE_FOLDER_LOADED |
| Constructor and Description |
|---|
SiteFolderLoader(org.alfresco.bm.session.SessionService sessionService,
org.alfresco.bm.cm.FileFolderService fileFolderService,
org.alfresco.bm.user.UserDataService userDataService,
org.alfresco.bm.site.SiteDataService siteDataService,
org.alfresco.bm.file.TestFileService testFileService,
String cmisBindingUrl,
org.apache.chemistry.opencmis.client.api.OperationContext cmisCtx) |
| Modifier and Type | Method and Description |
|---|---|
org.alfresco.bm.event.EventResult |
processEvent(org.alfresco.bm.event.Event event) |
void |
setEventNameSiteFolderLoaded(String eventNameSiteFolderLoaded)
Override the
default event name |
getName, getWarnDelay, isAutoCloseSessionId, isAutoPropagateSessionId, isChart, processEvent, register, resumeTimer, setAutoCloseSessionId, setAutoPropagateSessionId, setBeanName, setChart, setEventName, setEventNames, setRegistry, setWarnDelay, stopTimer, suspendTimer, toStringpublic static final String EVENT_NAME_SITE_FOLDER_LOADED
public SiteFolderLoader(org.alfresco.bm.session.SessionService sessionService,
org.alfresco.bm.cm.FileFolderService fileFolderService,
org.alfresco.bm.user.UserDataService userDataService,
org.alfresco.bm.site.SiteDataService siteDataService,
org.alfresco.bm.file.TestFileService testFileService,
String cmisBindingUrl,
org.apache.chemistry.opencmis.client.api.OperationContext cmisCtx)
sessionService - service to close this loader's sessionfileFolderService - service to access foldersuserDataService - service to access usernames and passwordssiteDataService - service to access site detailstestFileService - service to access sample documentscmisBindingUrl - the CMIS browser binding URLcmisCtx - the operation context for all calls made by the session.Copyright © 2015. All rights reserved.