edu.nyu.cs.pdsg.switchboard
Class SbRpcStack

java.lang.Object
  extended byedu.nyu.cs.pdsg.switchboard.SbStatus
      extended byedu.nyu.cs.pdsg.switchboard.SbLayer
          extended byedu.nyu.cs.pdsg.switchboard.sbrpc.SbRpcLayer
              extended byedu.nyu.cs.pdsg.switchboard.SbRpcStack
All Implemented Interfaces:
SbAsyncTransportClient, SbAsyncTransportProvider, SbAsyncTransportRecipient, SbClient, SbLayerable, SbProvider

public class SbRpcStack
extends SbRpcLayer


Nested Class Summary
 
Nested classes inherited from class edu.nyu.cs.pdsg.switchboard.sbrpc.SbRpcLayer
 
Field Summary
 
Fields inherited from class edu.nyu.cs.pdsg.switchboard.sbrpc.SbRpcLayer
 
Fields inherited from class edu.nyu.cs.pdsg.switchboard.SbLayer
client, createStackTrace, eventHandler, provider, recipient
 
Fields inherited from class edu.nyu.cs.pdsg.switchboard.SbStatus
STATUS_CLOSED, STATUS_LIVE, STATUS_PARTNER_CLOSED, STATUS_RECOVERABLE, STATUS_UNRECOVERABLE
 
Constructor Summary
SbRpcStack(SbMux mux)
           
 
Method Summary
static SbRpcStack build(java.net.Socket sock, java.lang.String canonicalName, java.security.KeyPair keyPair, Authorizer authorizer, Credentials credentials, long livenessTimeDiff, boolean isClient)
           
static SbRpcStack build(java.net.Socket sock, java.lang.String canonicalName, java.security.KeyPair keyPair, Authorizer authorizer, Credentials credentials, long livenessTimeDiff, boolean isClient, SbEventHandler eventHandler)
          Here's the problem: for secure class loading, we need to get Authorizer and the partner's credentials (or an AuthorizationMonitor) to the SbSocketIoLayer so that it can give it to the ContainerClassLoader that will load classes as they are read from the ContainerObjectInputStream that is generated from the Socket.
 void close()
           
 
Methods inherited from class edu.nyu.cs.pdsg.switchboard.sbrpc.SbRpcLayer
addIncall, getLayerType, getOutcallProxy, isOutcallProxyAvailable, providerReady, run
 
Methods inherited from class edu.nyu.cs.pdsg.switchboard.SbLayer
_close, behavesLike, closeQuiet, deliver, finalize, find, getProviderException, getProviderStackTrace, getProviderStatus, getTransportName, handleEvent, handleEvent, init, instanceOf, isKindOf, isOpen, isReady, providerStatusString, recipientReady, sendDown, sendEventUp, sendUp, serialize, setClient, setEventHandler, setProvider, setProviderStatus, setProviderStatus, setProviderStatusSend, setRecipient, toShortString, toString, unserialize, write
 
Methods inherited from class edu.nyu.cs.pdsg.switchboard.SbStatus
statusString
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SbRpcStack

public SbRpcStack(SbMux mux)
Method Detail

close

public void close()
Specified by:
close in interface SbProvider
Overrides:
close in class SbLayer

build

public static SbRpcStack build(java.net.Socket sock,
                               java.lang.String canonicalName,
                               java.security.KeyPair keyPair,
                               Authorizer authorizer,
                               Credentials credentials,
                               long livenessTimeDiff,
                               boolean isClient)

build

public static SbRpcStack build(java.net.Socket sock,
                               java.lang.String canonicalName,
                               java.security.KeyPair keyPair,
                               Authorizer authorizer,
                               Credentials credentials,
                               long livenessTimeDiff,
                               boolean isClient,
                               SbEventHandler eventHandler)
Here's the problem: for secure class loading, we need to get Authorizer and the partner's credentials (or an AuthorizationMonitor) to the SbSocketIoLayer so that it can give it to the ContainerClassLoader that will load classes as they are read from the ContainerObjectInputStream that is generated from the Socket. How do we do this?



Copyright (c) 2002-2003 New York University RLAB