public class ConcurrentUserSessionsEventProcessor
extends org.alfresco.bm.driver.event.CreateSessionsEventProcessor
Constructor and Description |
---|
ConcurrentUserSessionsEventProcessor(UserDataService userDataService,
org.alfresco.bm.common.session.SessionService sessionService,
String outputEventName,
int concurrentSessions,
int totalSessions) |
Modifier and Type | Method and Description |
---|---|
protected Object |
getNextEventData()
Chooses a random user.
|
processEvent, setCheckPeriod, setEventNameCreateSessions, setTimeBetweenSessions
getName, getWarnDelay, isAutoCloseSessionId, isAutoPropagateSessionId, isChart, processEvent, register, resumeTimer, setAutoCloseSessionId, setAutoPropagateSessionId, setBeanName, setChart, setEventName, setEventNames, setRegistry, setWarnDelay, stopTimer, suspendTimer, toString
public ConcurrentUserSessionsEventProcessor(UserDataService userDataService, org.alfresco.bm.common.session.SessionService sessionService, String outputEventName, int concurrentSessions, int totalSessions)
userDataService
- provides access to random userssessionService
- required to ensure the correct number of concurrent sessionsoutputEventName
- the name of the event to emitconcurrentSessions
- the number of concurrent sessions to maintaintotalSessions
- the maxiumum number of sessions to createprotected Object getNextEventData()
getNextEventData
in class org.alfresco.bm.driver.event.CreateSessionsEventProcessor
Copyright © 2005–2018 Alfresco Software. All rights reserved.