|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
com.ibm.di.server.Monitor
com.ibm.di.eventhandler.Switchboard
com.ibm.di.eventhandler.DSMLv2EventHandler
public class DSMLv2EventHandler
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
Thread.State, Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
static String |
ATTR_NAME_BATCH_REQUEST
|
static String |
ATTR_NAME_BATCH_RESPONSE
|
static String |
PARAMETER_BINARY_ATTRIBUTES
|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
DSMLv2EventHandler()
Constructor for DSMLv2EventHandler. |
|
DSMLv2EventHandler(Socket socket,
DSMLv2EventHandler parent)
Constructor used by listener thread to handle incoming requests. |
Method Summary | |
---|---|
boolean |
dispatchEvent(Entry aEntry)
Dispatch incoming DSMLv2 event |
Object |
getConfig(String param)
Retrieves specific configuration parameter |
AssemblyLineComponent |
getConnector(String connector)
Retrieves connector component |
Entry |
getResult()
Retrieves result entry |
String |
getVersion()
|
Entry |
getWork()
Retrieves work entry |
void |
init()
Perform per thread initialization. |
boolean |
isChunked()
Checks whether the message will be chunked |
void |
processRequest()
Process incoming request. |
void |
run()
Starts DSMLv2 Event Handler |
protected void |
runEpilog(Entry aEventEntry)
Runs epilog script of Dsmlv2 EventHandler |
protected void |
runProlog(Entry aEventEntry)
Runs prolog script of Dsmlv2 EventHandler |
void |
setExitRequested(boolean value)
Force DSMLv2 Event Handler termination |
Methods inherited from class com.ibm.di.server.Monitor |
---|
addActionListener, addThread, allThreadsStopped, fireListener, removeActionListener, removeThread, runningALs, runningEHs, setMonitorMessage, threadStarted, threadStopped |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.ibm.di.server.TaskInterface |
---|
debugBreak, debugMsg, getLog, getNullBehavior, getNullBehaviorValue, getNullDefinition, getNullDefinitionValue, getParent, getScriptEngine, logmsg |
Field Detail |
---|
public static final String PARAMETER_BINARY_ATTRIBUTES
public static final String ATTR_NAME_BATCH_REQUEST
public static final String ATTR_NAME_BATCH_RESPONSE
Constructor Detail |
---|
public DSMLv2EventHandler()
public DSMLv2EventHandler(Socket socket, DSMLv2EventHandler parent)
socket
- connection socketparent
- parent event handlerMethod Detail |
---|
public void setExitRequested(boolean value)
setExitRequested
in class Switchboard
value
- Boolean value. True - forse termination, false otherwise.Switchboard.setExitRequested(boolean)
public AssemblyLineComponent getConnector(String connector)
getConnector
in interface TaskInterface
connector
- Connector name which will be retrievedpublic Object getConfig(String param)
getConfig
in interface TaskInterface
param
- Configuration parameter namepublic Entry getResult()
getResult
in interface TaskInterface
public Entry getWork()
getWork
in interface TaskInterface
public boolean isChunked()
public void run()
run
in interface Runnable
run
in class Thread
public void init()
public void processRequest() throws Exception
Exception
public boolean dispatchEvent(Entry aEntry) throws Exception
dispatchEvent
in class Switchboard
aEntry
- Entry with specific tcp/http information
Exception
protected void runProlog(Entry aEventEntry) throws Exception
aEventEntry
- Entry passed to the script engine
Exception
protected void runEpilog(Entry aEventEntry) throws Exception
aEventEntry
- Entry passed to the script engine
Exception
public String getVersion()
getVersion
in interface VersionInfoInterface
VersionInfoInterface.getVersion()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |