public class GenericHandler extends GenericService implements EventChannelListener
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
protected java.lang.String[] |
mChannels
List of channels this handler listens to at startup.
|
protected long |
mEventCount
Number of events received by this handler.
|
SERVICE_INFO_KEY
DEFAULT_LOG_TRACE_STATUS
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
Constructor and Description |
---|
GenericHandler()
Empty constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getChannels()
List of channels this handler listens to at startup.
|
long |
getEventCount()
The number of events that have been sent to this event topic.
|
java.lang.String |
getHandlerName()
Returns the name of the handler.
|
boolean |
isRegisterAtStartup()
Returns property RegisterAtStartup
|
void |
sendEvent(java.lang.Object pEvent)
Submits an event for handling.
|
void |
setChannels(java.lang.String[] pValue)
List of channels this handler listens to at startup.
|
void |
setRegisterAtStartup(boolean pRegisterAtStartup)
Sets property RegisterAtStartup
|
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
public static java.lang.String CLASS_VERSION
protected long mEventCount
protected java.lang.String[] mChannels
public void setRegisterAtStartup(boolean pRegisterAtStartup)
public boolean isRegisterAtStartup()
public java.lang.String getHandlerName()
getHandlerName
in interface EventChannelListener
public void setChannels(java.lang.String[] pValue)
public java.lang.String[] getChannels()
public long getEventCount()
public void sendEvent(java.lang.Object pEvent)
sendEvent
in interface EventChannelListener