public abstract class BasicModule<Ctx> extends KnownComponentImpl implements Module<Ctx>
Module.StatemyLoggerHASIDENT| Constructor and Description |
|---|
BasicModule() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
enterBasicInitModule(boolean verifyPreInitState) |
protected void |
enterBasicReleaseModule() |
protected void |
enterBasicRunOnce() |
protected void |
enterBasicStart() |
protected void |
enterBasicStop() |
protected void |
exitBasicInitModule(boolean verifyInInitState) |
protected void |
exitBasicReleaseModule() |
protected void |
exitBasicRunOnce() |
protected void |
exitBasicStart() |
protected void |
exitBasicStop() |
void |
failDuringInitOrStartup() |
Ctx |
getContext()
The Module must have a valid parentModulator whenever it is inside a module action callback.
|
String |
getFieldSummary() |
Module.State |
getState() |
boolean |
isStopRequested() |
void |
markStopRequested()
Correct way for application to ask the module to stop.
|
protected void |
notifyStateViolation(String detectingMethod,
String expectedStateDesc,
boolean throExcept) |
void |
setContext(Ctx m) |
protected void |
verifyStoredState(String checkingMethod,
boolean throExcept,
Module.State... allowedStates)
Ensure we are in an allowed state, will notifyStateViolation if not.
|
getDescription, getIdent, getShortLabel, setDescription, setIdent, setShortLabel, toStringcheckDebugImportance, forceLog4jConfig, getLogger, getLoggerForClass, isLoggerUsable, logDebug, logError, logError, logInfo, logInfo, logInfoEvent, logWarning, logWarning, logWithException, setDebugImportanceThreshold, setLogger, useLoggerForClassclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitinitModule, releaseModule, runOnce, start, stoppublic Module.State getState()
public void markStopRequested()
markStopRequested in interface Module<Ctx>public boolean isStopRequested()
isStopRequested in interface Module<Ctx>public Ctx getContext()
ModulegetContext in interface Module<Ctx>public void setContext(Ctx m)
setContext in interface Module<Ctx>protected void notifyStateViolation(String detectingMethod, String expectedStateDesc, boolean throExcept)
protected void verifyStoredState(String checkingMethod, boolean throExcept, Module.State... allowedStates)
public void failDuringInitOrStartup()
failDuringInitOrStartup in interface Module<Ctx>protected void enterBasicInitModule(boolean verifyPreInitState)
protected void exitBasicInitModule(boolean verifyInInitState)
protected void enterBasicStart()
protected void exitBasicStart()
protected void enterBasicRunOnce()
protected void exitBasicRunOnce()
protected void enterBasicStop()
protected void exitBasicStop()
protected void enterBasicReleaseModule()
protected void exitBasicReleaseModule()
public String getFieldSummary()
getFieldSummary in class KnownComponentImplCopyright © 2010-2015. All Rights Reserved.