|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--MicroTAPAS.debug.Debug
Simple class to facilitate sending DebugEvents to DebugServer. The actual sending of the events are done by using a thread, because otherwise the system would hang for as long as the object is trying to connect to the server. Once the connection to the server failes, all subsequent calls to this instance will fail. (i.e. no re-initiation of connetion)
| Field Summary | |
private static java.lang.String |
address
|
private java.lang.Thread |
eventThread
|
private static java.lang.String |
ipSender
|
private static boolean |
isActive
|
private static int |
port
|
private static boolean |
waitForNotify
|
private static java.util.Vector |
vEvents
|
| Constructor Summary | |
Debug(java.lang.String location)
Constructor |
|
Debug(java.lang.String pAddress,
int pPort)
Deprecated. Use Debug(String address) instead, where address is on the form |
|
| Method Summary | |
java.lang.String |
getAddress()
Returns the concatenated address of the debug server |
private void |
init()
Initialization of this Debug instance. |
void |
run()
Implemnts the required run method of the Runnable interface |
boolean |
send(DebugEvent de)
Adds a 'DebugEvent' to the local vector. |
private void |
sendEvents()
Main loop for this thread. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static java.lang.String ipSender
private static java.lang.String address
private static int port
private java.lang.Thread eventThread
private static boolean waitForNotify
private static boolean isActive
private static java.util.Vector vEvents
| Constructor Detail |
public Debug(java.lang.String pAddress,
int pPort)
pAddress - The address of the DebugServer.pPort - The port on the DebugServer that is open
for receiving DebugEvents.public Debug(java.lang.String location)
| Method Detail |
private void init()
public void run()
run in interface java.lang.Runnableprivate void sendEvents()
public boolean send(DebugEvent de)
de - The DebugEvent to be sent to the DebugServer.
public java.lang.String getAddress()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||