|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sapia.ubik.rmi.server.transport.TransportManager
public class TransportManager
The transport manager is the single-entry point into Ubik RMI's transport
layer. It allows to register TransportProvider instances,
which provide transport implementations on top of different network
protocols.
| Constructor Summary | |
|---|---|
TransportManager()
|
|
| Method Summary | |
|---|---|
static Connections |
getConnectionsFor(ServerAddress address)
Gets a connection pool that holds connections to a server, given the server's address. |
static SocketTransportProvider |
getDefaultProvider()
Returns the default transport provider. |
static TransportProvider |
getProviderFor(java.lang.String type)
Returns the transport provider corresponding to the given type. |
static void |
registerProvider(TransportProvider provider)
Registers the transport provider of the given type with the transport manager. |
static void |
shutdown()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TransportManager()
| Method Detail |
|---|
public static void registerProvider(TransportProvider provider)
provider - a TransportProvider instance.
java.lang.IllegalArgumentException - if a provider is already registered for the
given type.TransportProvider.getTransportType()public static TransportProvider getProviderFor(java.lang.String type)
type - the logical type of the desired transport provider.
TransportProvider.
java.lang.IllegalArgumentException - if no provider is registered for
the passed in type.
public static Connections getConnectionsFor(ServerAddress address)
throws java.rmi.RemoteException
address - a ServerAddress.
ConnectionPool.
java.rmi.RemoteException - if an problem occurs acquiring the connection.public static SocketTransportProvider getDefaultProvider()
SocketTransportProvider.public static void shutdown()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||