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, setParameter
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
destroy, getName, getParameters, getSession, init
public boolean isRunning()
isRunning
in interface ActiveModule
public abstract void doStart() throws OpenAS2Exception
OpenAS2Exception
public abstract void doStop() throws OpenAS2Exception
OpenAS2Exception
public abstract boolean healthcheck(List<String> failures)
ActiveModule
healthcheck
in interface ActiveModule
failures
- - a list of failures if any occurpublic boolean canHandle(String action, Message msg, Map<Object,Object> options)
canHandle
in interface ProcessorModule
public void forceStop(Exception cause)
public void handle(String action, Message msg, Map<Object,Object> options) throws OpenAS2Exception
handle
in interface ProcessorModule
OpenAS2Exception
public void start() throws OpenAS2Exception
start
in interface ActiveModule
OpenAS2Exception
public void stop() throws OpenAS2Exception
stop
in interface ActiveModule
OpenAS2Exception
Copyright © 2018. All rights reserved.