edu.nyu.cs.pdsg.switchboard
Class SbServerSocket

java.lang.Object
  extended byedu.nyu.cs.pdsg.switchboard.SbServerSocket

public class SbServerSocket
extends java.lang.Object


Field Summary
private  java.net.InetSocketAddress address
          The IP and port on which this socket is listening
private  Authorizer authorizer
          The Authorizer used to authorize the other end of the Switchboard connection
private  Credentials credentials
          The credentials of this end of the Switchboard connection
protected  SbEventHandlerFactory eventHandlerFactory
          An event handler implementation that provides app-specific heuristics to deal with events thrown by various SbLayers.
protected  boolean isClient
          A flag to indicate if this end of the Switchboard connection is the client RPC consumer that initates key exchange and (at first) is the end that calls remote methods on the other end
private  java.security.KeyPair keyPair
          The public/private key pair of this end of the Switchboard connection
private  long livenessTimeDiff
          Threshold for liveness test: a message of some kind (object delivery or liveness ping) must have been received within this window for the connection to be maintained
(package private)  java.lang.String name
          The name under which the listener
private  java.net.ServerSocket serverSocket
          The server socket on which to listen
private  java.util.HashMap stacks
          A reference to the Switchboard stacks registry
 
Constructor Summary
SbServerSocket(java.net.InetSocketAddress _address, java.lang.String _name, java.security.KeyPair _keyPair, Authorizer _authorizer, Credentials _credentials, long _livenessTimeDiff, SbEventHandlerFactory _eventHandlerFactory)
           
 
Method Summary
 SbStreamsStack accept()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stacks

private java.util.HashMap stacks
A reference to the Switchboard stacks registry


serverSocket

private java.net.ServerSocket serverSocket
The server socket on which to listen


address

private java.net.InetSocketAddress address
The IP and port on which this socket is listening


name

java.lang.String name
The name under which the listener


keyPair

private java.security.KeyPair keyPair
The public/private key pair of this end of the Switchboard connection


authorizer

private Authorizer authorizer
The Authorizer used to authorize the other end of the Switchboard connection


credentials

private Credentials credentials
The credentials of this end of the Switchboard connection


livenessTimeDiff

private long livenessTimeDiff
Threshold for liveness test: a message of some kind (object delivery or liveness ping) must have been received within this window for the connection to be maintained


isClient

protected boolean isClient
A flag to indicate if this end of the Switchboard connection is the client RPC consumer that initates key exchange and (at first) is the end that calls remote methods on the other end


eventHandlerFactory

protected SbEventHandlerFactory eventHandlerFactory
An event handler implementation that provides app-specific heuristics to deal with events thrown by various SbLayers.

MAYBE THIS BELONGS IN THE SUPER CLASS SbStack.

Constructor Detail

SbServerSocket

public SbServerSocket(java.net.InetSocketAddress _address,
                      java.lang.String _name,
                      java.security.KeyPair _keyPair,
                      Authorizer _authorizer,
                      Credentials _credentials,
                      long _livenessTimeDiff,
                      SbEventHandlerFactory _eventHandlerFactory)
               throws java.io.IOException
Method Detail

accept

public SbStreamsStack accept()


Copyright (c) 2002-2003 New York University RLAB