org.apache.bsf.debug.meta

Class JsCallbacksStub

Implemented Interfaces:
JsCallbacks, Remote, RemoteService
Known Direct Subclasses:
DebuggerStub

public class JsCallbacksStub
extends Stub
implements JsCallbacks

Field Summary

Fields inherited from class org.apache.bsf.debug.util.Stub

NOT_FOUND, UNDEFINED, m_con, m_revoked, m_tid, m_uid

Constructor Summary

JsCallbacksStub(SocketConnection con, int tid, int uid)

Method Summary

void
handleBreakpointHit(JsContext cx)
Callback when a breakpoint is hit in the debuggee.
void
handleEngineStopped(JsContext cx)
Callback when an engine stops after a stop-request.
void
handleExceptionThrown(JsContext cx, Object exception)
Callback when an exception is thrown in the debuggee.
void
handleSteppingDone(JsContext cx)
Callback when a step-request has finished.
boolean
poll()
Allows the server to poll the connection.

Methods inherited from class org.apache.bsf.debug.util.Stub

Init, addListener, completeFuture, createFuture, equals, getConnection, getTid, getUid, removeListener, revokeFuture, revoked, suspendFuture, swizzle

Constructor Details

JsCallbacksStub

public JsCallbacksStub(SocketConnection con,
                       int tid,
                       int uid)

Method Details

handleBreakpointHit

public void handleBreakpointHit(JsContext cx)
            throws RemoteException
Callback when a breakpoint is hit in the debuggee. The debuggee is suspended until this call returns.
Specified by:
handleBreakpointHit in interface JsCallbacks

handleEngineStopped

public void handleEngineStopped(JsContext cx)
            throws RemoteException
Callback when an engine stops after a stop-request. The debuggee is suspended until this call returns.
Specified by:
handleEngineStopped in interface JsCallbacks

handleExceptionThrown

public void handleExceptionThrown(JsContext cx,
                                  Object exception)
            throws RemoteException
Callback when an exception is thrown in the debuggee. The debuggee is suspended until this call returns.
Specified by:
handleExceptionThrown in interface JsCallbacks

handleSteppingDone

public void handleSteppingDone(JsContext cx)
            throws RemoteException
Callback when a step-request has finished. The debuggee is suspended until this call returns.
Specified by:
handleSteppingDone in interface JsCallbacks

poll

public boolean poll()
            throws RemoteException
Allows the server to poll the connection.
Specified by:
poll in interface JsCallbacks