|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
com.ibm.di.util.DebugServer
public class DebugServer
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
Thread.State, Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
static String |
ABORTED
|
static String |
BREAK
|
static String |
BREAKAT
|
static String |
BREAKPOINT
|
static String |
BREAKPOINTS
|
static String |
CONFIG
|
static String |
CONT
|
static String |
CONTROL
|
static int |
DEBUG_PORT
|
static String |
ENGINE_VARS
|
static String |
EVAL
|
static String |
FLAGS
|
static String |
HELLO
|
static String |
INIT
|
static String |
LOGMSG
|
static String |
QUIT
|
static String |
STATS
|
static String |
STATUS
|
static String |
STEP
|
static String |
STEP_OVER
|
static String |
STOP
|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
DebugServer(String taskname)
|
Method Summary | |
---|---|
void |
aborted(Throwable t)
|
void |
addScriptObject(String key,
Object value)
|
void |
clearScriptObjects()
|
Attribute |
convertAttribute(Attribute a)
Converts the values in the attribute to a serializable representation if needed. |
Object |
convertEntry(Object entry)
Checks if entry is of type Entry and traverses all attributes and values to see if any of them are not serializable. |
Object |
convertObject(Object value)
|
void |
debugBreak(Object obj)
|
void |
debugBreak(Object obj,
boolean onerror)
|
void |
debugClose()
|
void |
debugClose(Object msg)
|
boolean |
debugConnect()
|
boolean |
debugConnect(int port)
|
boolean |
debugConnect(String host,
int tcpport)
|
boolean |
debugConnect(String host,
int tcpport,
boolean onerror)
|
void |
debugInit()
|
void |
debugMsg(Object msg)
|
Hashtable |
getBreakpoints()
This method returns a table of Breakpoints. |
Object |
getConnectorList(boolean includestats)
|
DebugMessage |
getDebuggerFlags()
|
List |
getHookNames(AssemblyLineComponent tc,
Object[] hooks)
|
String |
getLastKnownLocation()
Returns the last known location. |
Hashtable |
getScriptEngineVariables(String filter)
Returns a table with the script engine variables. |
boolean |
isAborted()
Returns true if an ABORT message has been sent to the remote CE |
boolean |
isConnected()
|
boolean |
isOnerror()
|
void |
logmsg(Object str)
|
void |
run()
|
void |
safeWriteObject(Object obj)
This method write an entry object or an exception to the debugger. |
void |
setLog(Log log)
|
void |
setOnerror(boolean onerror)
Sets the onerror flag. |
void |
setScriptEngine(ScriptEngine se)
|
void |
setTask(Object task)
|
void |
switchTo(String name)
|
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, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int DEBUG_PORT
public static final String CONTROL
public static final String STOP
public static final String CONT
public static final String BREAK
public static final String LOGMSG
public static final String HELLO
public static final String EVAL
public static final String STATS
public static final String QUIT
public static final String INIT
public static final String FLAGS
public static final String BREAKPOINTS
public static final String BREAKPOINT
public static final String ENGINE_VARS
public static final String STATUS
public static final String ABORTED
public static final String STEP_OVER
public static final String STEP
public static final String BREAKAT
public static final String CONFIG
Constructor Detail |
---|
public DebugServer(String taskname)
Method Detail |
---|
public void run()
run
in interface Runnable
run
in class Thread
public void setLog(Log log)
public void setScriptEngine(ScriptEngine se)
public void setTask(Object task)
public void addScriptObject(String key, Object value)
public void clearScriptObjects()
public void debugInit() throws Exception
Exception
public void switchTo(String name) throws Exception
Exception
public boolean debugConnect()
public boolean debugConnect(int port)
public boolean debugConnect(String host, int tcpport)
public boolean debugConnect(String host, int tcpport, boolean onerror)
public void debugClose()
public boolean isConnected()
public void debugMsg(Object msg) throws Exception
Exception
public void debugClose(Object msg)
public void aborted(Throwable t) throws Exception
Exception
public void debugBreak(Object obj) throws Exception
Exception
public void debugBreak(Object obj, boolean onerror) throws Exception
Exception
public DebugMessage getDebuggerFlags()
public Hashtable getBreakpoints() throws Exception
Exception
public Hashtable getScriptEngineVariables(String filter)
filter
- regex to filter specific variables
public Object convertEntry(Object entry)
entry
- The entry object to convert
public Attribute convertAttribute(Attribute a)
a
- The attribute to convert
public Object convertObject(Object value)
public List getHookNames(AssemblyLineComponent tc, Object[] hooks)
public Object getConnectorList(boolean includestats) throws Exception
Exception
public void logmsg(Object str)
public void safeWriteObject(Object obj) throws Exception
Exception
public boolean isOnerror()
public void setOnerror(boolean onerror)
onerror
- public String getLastKnownLocation()
public boolean isAborted()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |