|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sapia.ubik.rmi.server.transport.nio.tcp.NioTcpTransportProvider
public class NioTcpTransportProvider
This transport provider is implemented on top of the Mina framework.
It internally creates NioServer instances. Various configuration
properties are "understood" by this provider (see the doc for the corresponding
constants further below). In addition, this provider interprets the
ubik.rmi.server.max-threads property as indicating the number of
processor threads that should be created by a NioServer instance (see
NioServer.NioServer(InetSocketAddress, int, int)).
Consts.SERVER_MAX_THREADS| Field Summary | |
|---|---|
static java.lang.String |
BIND_ADDRESS
This constant corresponds to the ubik.rmi.transport.nio-tcp.bind-address system property. |
static java.lang.String |
BUFFER_SIZE
This constant corresponds to the ubik.rmi.transport.nio-tcp.buffer-size system property. |
static int |
DEFAULT_BUFFER_SIZE
The default buffer size (4000). |
static java.lang.String |
PORT
This constant corresponds to the ubik.rmi.transport.nio-tcp.port system property. |
static java.lang.String |
TRANSPORT_TYPE
Constant corresponding to this provider class' transport type. |
| Constructor Summary | |
|---|---|
NioTcpTransportProvider()
|
|
| Method Summary | |
|---|---|
Connections |
getPoolFor(ServerAddress address)
Returns a client connection pool to the given server address. |
java.lang.String |
getTransportType()
Returns this instance's "transport type". |
Server |
newDefaultServer()
This method is called by Ubik RMI's runtime when a server is needed on the client side to recieve asynchronous responses (i.e.: callbacks). |
Server |
newServer(java.util.Properties props)
Returns a server implementation. |
void |
shutdown()
Shuts down this provider. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String TRANSPORT_TYPE
public static final java.lang.String BIND_ADDRESS
ubik.rmi.transport.nio-tcp.bind-address system property.
public static final java.lang.String PORT
ubik.rmi.transport.nio-tcp.port system property.
public static final java.lang.String BUFFER_SIZE
ubik.rmi.transport.nio-tcp.buffer-size system property.
public static final int DEFAULT_BUFFER_SIZE
BUFFER_SIZE,
Constant Field Values| Constructor Detail |
|---|
public NioTcpTransportProvider()
| Method Detail |
|---|
public Connections getPoolFor(ServerAddress address)
throws java.rmi.RemoteException
TransportProvider
getPoolFor in interface TransportProvideraddress - a ServerAddress.
Connection.
java.rmi.RemoteException - if a problem occurs creating the connection.TransportProvider.getPoolFor(org.sapia.ubik.net.ServerAddress)public java.lang.String getTransportType()
TransportProvider
getTransportType in interface TransportProviderTransportProvider.getTransportType()
public Server newDefaultServer()
throws java.rmi.RemoteException
TransportProviderServer instance.
newDefaultServer in interface TransportProviderServer.
java.rmi.RemoteExceptionTransportProvider.newDefaultServer()
public Server newServer(java.util.Properties props)
throws java.rmi.RemoteException
TransportProvider
newServer in interface TransportProviderprops - the Properties used to create the server.
Server instance.
java.rmi.RemoteExceptionTransportProvider.newServer(java.util.Properties)public void shutdown()
TransportProvider
shutdown in interface TransportProviderTransportProvider.shutdown()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||