public class BasicModulator<Ctx> extends BasicDebugger implements Modulator<Ctx>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
myAutoDetachOnFinishFlag |
myLogger| Constructor and Description |
|---|
BasicModulator(Ctx defCtx,
boolean autoDetachOnFinish) |
| Modifier and Type | Method and Description |
|---|---|
void |
attachModule(Module<Ctx> m) |
void |
detachModule(Module<Ctx> m) |
void |
dumpModules() |
int |
getAttachedModuleCount() |
protected List<Module<Ctx>> |
getFinishedModules() |
protected List<Module<Ctx>> |
getModulesMatchingStates(Module.State... matchStates) |
protected List<Module<Ctx>> |
getModulesNotMatchingStates(Module.State... excludedStates) |
protected List<Module<Ctx>> |
getUnfinishedModules() |
protected static boolean |
isModuleInActionState(Module.State modState) |
protected void |
processFinishedModules() |
protected void |
processInitingModules() |
void |
processOneBatch() |
protected void |
processRunningModules() |
protected void |
processStartingModules() |
protected void |
processStoppingModules() |
protected void |
setDefaultContext(Ctx ctx) |
checkDebugImportance, forceLog4jConfig, getLogger, getLoggerForClass, isLoggerUsable, logDebug, logError, logError, logInfo, logInfo, logInfoEvent, logWarning, logWarning, logWithException, setDebugImportanceThreshold, setLogger, useLoggerForClasspublic BasicModulator(Ctx defCtx, boolean autoDetachOnFinish)
protected static boolean isModuleInActionState(Module.State modState)
protected void setDefaultContext(Ctx ctx)
public void attachModule(Module<Ctx> m)
attachModule in interface Modulator<Ctx>public void detachModule(Module<Ctx> m)
detachModule in interface Modulator<Ctx>public int getAttachedModuleCount()
getAttachedModuleCount in interface Modulator<Ctx>public void processOneBatch()
processOneBatch in interface Modulator<Ctx>protected List<Module<Ctx>> getModulesMatchingStates(Module.State... matchStates)
protected List<Module<Ctx>> getModulesNotMatchingStates(Module.State... excludedStates)
protected void processFinishedModules()
protected void processStoppingModules()
protected void processRunningModules()
protected void processStartingModules()
protected void processInitingModules()
public void dumpModules()
Copyright © 2010-2015. All Rights Reserved.