|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sapia.ubik.rmi.server.transport.socket.SocketTransportProvider
public class SocketTransportProvider
Implements the TransportProvider interface over standard
java socket.
Socket| Field Summary | |
|---|---|
static java.lang.String |
BIND_ADDRESS
This constant corresponds to the ubik.rmi.transport.socket.bind-address
system property. |
static java.lang.String |
CLIENT_FACTORY
This constant corresponds to the ubik.rmi.transport.socket.client-factory
system property. |
static long |
DEFAULT_RESET_INTERVAL
|
static java.lang.String |
MAX_THREADS
This constant corresponds to the ubik.rmi.transport.socket.max-threads
system property. |
static java.lang.String |
PORT
This constant corresponds to the ubik.rmi.transport.socket.port
system property. |
static java.lang.String |
SERVER_FACTORY
This constant corresponds to the ubik.rmi.transport.socket.server-factory
system property. |
static java.lang.String |
TRANSPORT_TYPE
Constant corresponding to this provider class' transport type. |
| Constructor Summary | |
|---|---|
SocketTransportProvider()
|
|
| Method Summary | |
|---|---|
protected Server |
doNewServer(int port,
PropUtil pu)
|
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(int port)
|
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 MAX_THREADS
ubik.rmi.transport.socket.max-threads
system property.
public static final java.lang.String CLIENT_FACTORY
ubik.rmi.transport.socket.client-factory
system property.
public static final java.lang.String SERVER_FACTORY
ubik.rmi.transport.socket.server-factory
system property. It identifies the UbikServerSocketFactory implementation to use.
public static final java.lang.String BIND_ADDRESS
ubik.rmi.transport.socket.bind-address
system property.
public static final java.lang.String PORT
ubik.rmi.transport.socket.port
system property.
public static final long DEFAULT_RESET_INTERVAL
| Constructor Detail |
|---|
public SocketTransportProvider()
| 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(ServerAddress)
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(Properties)
public Server newDefaultServer()
throws java.rmi.RemoteException
TransportProviderServer instance.
newDefaultServer in interface TransportProviderServer.
java.rmi.RemoteExceptionTransportProvider.newDefaultServer()
public Server newServer(int port)
throws java.rmi.RemoteException
java.rmi.RemoteException
protected Server doNewServer(int port,
PropUtil pu)
throws java.rmi.RemoteException
java.rmi.RemoteExceptionpublic java.lang.String getTransportType()
TransportProvider
getTransportType in interface TransportProviderTransportProvider.getTransportType()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 | |||||||||