1 55 56 package org.apache.bsf.debug.meta; 57 58 import org.apache.bsf.debug.*; 59 import java.net.*; 60 import java.io.*; 61 import java.util.*; 62 import java.rmi.RemoteException ; 63 64 65 import org.apache.bsf.*; 66 import org.apache.bsf.debug.util.*; 67 68 public class DebuggerStub extends JsCallbacksStub implements BSFDebugger { 69 70 public DebuggerStub(SocketConnection con, int tid, int uid) { 71 super(con,tid,uid); 72 } 73 74 public void createdEngine(String lang, Object engine) 75 throws RemoteException { 76 77 ResultCell cell; 78 try { 79 cell = m_con.prepareOutgoingInvoke(this,DebugConstants.BSF_DEBUGGER_TID,DebugConstants.BSFD_CREATED_ENGINE); 80 cell.writeObject(lang); 81 cell.writeObject(engine); 82 83 cell.waitForCompletion(); 84 85 } catch (Exception ex) { 86 throw new RemoteException ("Marshalling error", ex); 87 } 88 } 89 92 public void deletedEngine(Object engine) 93 throws RemoteException { 94 95 ResultCell cell; 96 try { 97 cell = m_con.prepareOutgoingInvoke(this,DebugConstants.BSF_DEBUGGER_TID,DebugConstants.BSFD_DELETED_ENGINE); 98 cell.writeObject(engine); 99 cell.waitForCompletion(); 100 101 } catch (Exception ex) { 102 throw new RemoteException ("Marshalling error", ex); 103 } 104 } 105 106 111 public void disconnect() 112 throws RemoteException { 113 114 ResultCell cell; 115 try { 116 cell = m_con.prepareOutgoingInvoke(this,DebugConstants.BSF_DEBUGGER_TID,DebugConstants.BSFD_DISCONNECT); 117 cell.waitForCompletion(); 118 119 } catch (Exception ex) { 120 throw new RemoteException ("Marshalling error", ex); 121 } 122 } 123 124 } 125 126 | Popular Tags |