public abstract class BaseActiveModule extends BaseProcessorModule implements ActiveModule
| Constructor and Description |
|---|
BaseActiveModule() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canHandle(String action,
Message msg,
Map<Object,Object> options) |
abstract void |
doStart() |
abstract void |
doStop() |
void |
forceStop(Exception cause) |
void |
handle(String action,
Message msg,
Map<Object,Object> options) |
abstract boolean |
healthcheck(List<String> failures)
When invoked, the module must run a self check to verify it is functioning correctly.
|
boolean |
isRunning() |
void |
start() |
void |
stop() |
String |
toString() |
destroy, getName, getParameter, getParameter, getParameterInt, getParameters, getSession, init, setParameter, setParameterclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdestroy, getName, getParameters, getSession, initpublic boolean isRunning()
isRunning in interface ActiveModulepublic abstract void doStart()
throws OpenAS2Exception
OpenAS2Exceptionpublic abstract void doStop()
throws OpenAS2Exception
OpenAS2Exceptionpublic abstract boolean healthcheck(List<String> failures)
ActiveModulehealthcheck in interface ActiveModulefailures - - a list of failures if any occurpublic boolean canHandle(String action, Message msg, Map<Object,Object> options)
canHandle in interface ProcessorModulepublic void forceStop(Exception cause)
public void handle(String action, Message msg, Map<Object,Object> options) throws OpenAS2Exception
handle in interface ProcessorModuleOpenAS2Exceptionpublic void start()
throws OpenAS2Exception
start in interface ActiveModuleOpenAS2Exceptionpublic void stop()
throws OpenAS2Exception
stop in interface ActiveModuleOpenAS2ExceptionCopyright © 2018. All rights reserved.