Package org.openas2.processor.receiver
Class HealthCheckModule
- java.lang.Object
-
- org.openas2.BaseComponent
-
- org.openas2.processor.BaseProcessorModule
-
- org.openas2.processor.BaseActiveModule
-
- org.openas2.processor.receiver.BaseReceiverModule
-
- org.openas2.processor.receiver.NetModule
-
- org.openas2.processor.receiver.HealthCheckModule
-
- All Implemented Interfaces:
Component
,ActiveModule
,ProcessorModule
,ReceiverModule
public class HealthCheckModule extends NetModule
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openas2.processor.receiver.NetModule
NetModule.ConnectionHandler, NetModule.HTTPServerThread
-
-
Field Summary
-
Fields inherited from class org.openas2.processor.receiver.NetModule
DEFAULT_ERRORS, PARAM_ADDRESS, PARAM_ERROR_DIRECTORY, PARAM_ERRORS, PARAM_PORT, PARAM_PROTOCOL, PARAM_SSL_KEYSTORE, PARAM_SSL_KEYSTORE_PASSWORD, PARAM_SSL_PROTOCOL
-
-
Constructor Summary
Constructors Constructor Description HealthCheckModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected NetModuleHandler
getHandler()
boolean
healthcheck(java.util.List<java.lang.String> failures)
When invoked, the module must run a self check to verify it is functioning correctly.-
Methods inherited from class org.openas2.processor.receiver.NetModule
doStart, doStop, handleError, init
-
Methods inherited from class org.openas2.processor.BaseActiveModule
canHandle, forceStop, handle, isRunning, start, stop, toString
-
Methods inherited from class org.openas2.BaseComponent
destroy, getName, getParameter, getParameter, getParameterInt, getParameters, getSession, setParameter, setParameter
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.openas2.processor.ActiveModule
isRunning, start, stop
-
Methods inherited from interface org.openas2.Component
destroy, getName, getParameters, getSession
-
Methods inherited from interface org.openas2.processor.ProcessorModule
canHandle, handle
-
-
-
-
Method Detail
-
getHandler
protected NetModuleHandler getHandler()
- Specified by:
getHandler
in classNetModule
-
healthcheck
public boolean healthcheck(java.util.List<java.lang.String> failures)
Description copied from interface:ActiveModule
When invoked, the module must run a self check to verify it is functioning correctly. Any failures must be reported in the failures list passed in to the method by the callee- Specified by:
healthcheck
in interfaceActiveModule
- Overrides:
healthcheck
in classNetModule
- Parameters:
failures
- - a list of failures if any occur- Returns:
- - true if module has no problems otherwise false ith failure messages in passed in List
-
-