Save This Page
Home » bsf-src-2.4.0 » org.apache.bsf.debug.util » [javadoc | source]
org.apache.bsf.debug.util
abstract public class: SocketConnection [javadoc | source]
java.lang.Object
   org.apache.bsf.debug.util.SocketConnection

Direct Known Subclasses:
    ObjectServer, ClientConnection

Field Summary
 Vector m_rcells     
 Hashtable m_tcells     
 IntHashtable m_tcellsById     
 int fCmdIdGenerator     
 IntHashtable m_skeletons     
protected  StubTable fStubs     
protected  InputStream fInputStream     
protected  OutputStream fOutputStream     
protected  DataInputStream fDataInputStream     
protected  DataOutputStream fDataOutputStream     
Constructor:
 protected SocketConnection() 
Method from org.apache.bsf.debug.util.SocketConnection Summary:
completionNotify,   dispatchInvocation,   exportSkeleton,   getSkeleton,   getStub,   listen,   lockOutStream,   prepareOutgoingInvoke,   releaseOutStream,   searchCell,   sendPacket,   stopListening,   swizzle,   wireExceptionNotify
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.bsf.debug.util.SocketConnection Detail:
  void completionNotify(ResultCell rcell) 
    Called from the completion of an incoming remote method from the ThreadCell class. The ResultCell encodes the result to send the same way a stub encodes it expected result.
 abstract protected  void dispatchInvocation(ResultCell rcell) throws Exception
 public  void exportSkeleton(Skeleton skel) 
 public Skeleton getSkeleton(int uid) 
 public Stub getStub(int tid,
    int uid) 
 public  void listen() 
  void lockOutStream() 
 public synchronized ResultCell prepareOutgoingInvoke(Stub self,
    int classId,
    int methodId) throws IOException 
    First call made by a stub. It will allocate the ResultCell and the output buffer for the outgoing packet. It will also check if this out-going remote invocation is part of a global execution already or not. If not, a global execution (distributed thread) is set, other the current one is reused.
  void releaseOutStream() 
 public synchronized ResultCell searchCell(int cmdId) 
  void sendPacket(int thId,
    int cmdId,
    boolean isResult,
    byte[] bytes,
    boolean errorOccured) 
 public  void stopListening() 
 public Stub swizzle(int tid,
    int uid) 
 protected  void wireExceptionNotify(Exception ex) 
    A Wire-related exception occurred. We will consider that we have lost the connection. All stubs will be revoked... allowing higher-level listener to pick up that some remote objects have been revoked through the StubListener mechanism. Log at lower priority than a standard exception, since this is the client quit mechanism too.