|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
org.alfresco.bm.server.EventController
public class EventController
A master controlling thread that ensures that:
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
Thread.State, Thread.UncaughtExceptionHandler |
| Nested classes/interfaces inherited from interface org.alfresco.bm.config.ConfigConstants |
|---|
org.alfresco.bm.config.ConfigConstants.RunState |
| Field Summary |
|---|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Fields inherited from interface org.alfresco.bm.config.ConfigConstants |
|---|
DEFAULT_RUNSTATE, DEFAULT_SERVER_ID, PATH_CLASSES, PATH_CLUSTERS, PATH_DEFINITION, PATH_JARS, PATH_LOADED, PATH_PROPERTIES, PATH_RUNS, PATH_SERVER, PATH_SERVERS, PATH_TESTS, PROP_CLUSTER, PROP_CONTROL_CLUSTER, PROP_CONTROL_RUN_STATE, PROP_EVENT_PROCESSOR_THREADS, PROP_MONGO_URI, PROP_SERVER_ID, PROP_TEST_NAME, PROP_TEST_RUN_FQN, PROP_TEST_RUN_NAME, SEPARATOR |
| Constructor Summary | |
|---|---|
EventController(String serverId,
String testRunFqn,
org.alfresco.bm.event.EventService eventService,
org.alfresco.bm.event.EventProcessorRegistry eventProcessors,
ExecutorService executor,
org.alfresco.bm.event.ResultService resultService)
Construct the controller |
|
| Method Summary | |
|---|---|
void |
onApplicationEvent(org.springframework.context.event.ApplicationContextEvent event)
The application context is started externally but may be stopped internally |
void |
run()
|
void |
setQueuePollTimeMs(long queuePollTimeMs)
The time between polls of the event provider. |
void |
setQueueRestAgeMs(long queueRestAgeMs)
Set the time allowed before events can be requeued. |
| 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 |
| Constructor Detail |
|---|
public EventController(String serverId,
String testRunFqn,
org.alfresco.bm.event.EventService eventService,
org.alfresco.bm.event.EventProcessorRegistry eventProcessors,
ExecutorService executor,
org.alfresco.bm.event.ResultService resultService)
serverId - the server controlling the eventstestRunFqn - the fully qualified name of the test runeventService - the source of events that will be pushed for executioneventProcessors - the registry of processors for eventsexecutor - the service that will provide the worker threads for processingresultService - the service used to store and retrieve event results| Method Detail |
|---|
public void setQueuePollTimeMs(long queuePollTimeMs)
DEFAULT_QUEUE_POLL_TIME_MS.
queuePollTimeMs - the time between checks for eventspublic void setQueueRestAgeMs(long queueRestAgeMs)
DEFAULT_QUEUE_REST_AGE_MS.
public void onApplicationEvent(org.springframework.context.event.ApplicationContextEvent event)
onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ApplicationContextEvent>public void run()
run in interface Runnablerun in class Thread
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||