org.apache.bsf.debug.meta
Class JsCallbacksStub

java.lang.Object
  |
  +--org.apache.bsf.debug.util.Stub
        |
        +--org.apache.bsf.debug.meta.JsCallbacksStub
All Implemented Interfaces:
JsCallbacks, java.rmi.Remote, RemoteService
Direct Known Subclasses:
DebuggerStub

public class JsCallbacksStub
extends Stub
implements JsCallbacks


Field Summary
 
Fields inherited from class org.apache.bsf.debug.util.Stub
m_con, m_revoked, m_tid, m_uid, NOT_FOUND, UNDEFINED
 
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, java.lang.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
addListener, completeFuture, createFuture, equals, getConnection, getTid, getUid, Init, removeListener, revoked, revokeFuture, suspendFuture, swizzle
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.bsf.debug.util.RemoteService
addListener, completeFuture, createFuture, removeListener, suspendFuture
 

Constructor Detail

JsCallbacksStub

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

poll

public boolean poll()
             throws java.rmi.RemoteException
Allows the server to poll the connection.

Specified by:
poll in interface JsCallbacks
java.rmi.RemoteException

handleBreakpointHit

public void handleBreakpointHit(JsContext cx)
                         throws java.rmi.RemoteException
Callback when a breakpoint is hit in the debuggee. The debuggee is suspended until this call returns.

Specified by:
handleBreakpointHit in interface JsCallbacks
java.rmi.RemoteException

handleEngineStopped

public void handleEngineStopped(JsContext cx)
                         throws java.rmi.RemoteException
Callback when an engine stops after a stop-request. The debuggee is suspended until this call returns.

Specified by:
handleEngineStopped in interface JsCallbacks
java.rmi.RemoteException

handleExceptionThrown

public void handleExceptionThrown(JsContext cx,
                                  java.lang.Object exception)
                           throws java.rmi.RemoteException
Callback when an exception is thrown in the debuggee. The debuggee is suspended until this call returns.

Specified by:
handleExceptionThrown in interface JsCallbacks
java.rmi.RemoteException

handleSteppingDone

public void handleSteppingDone(JsContext cx)
                        throws java.rmi.RemoteException
Callback when a step-request has finished. The debuggee is suspended until this call returns.

Specified by:
handleSteppingDone in interface JsCallbacks
java.rmi.RemoteException