| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tuscany.sca.host.rmi.ExtensibleRMIHost
public class ExtensibleRMIHost
Default implementation of an extensible RMI host.
| Field Summary | 
|---|
| Fields inherited from interface org.apache.tuscany.sca.host.rmi.RMIHost | 
|---|
RMI_DEFAULT_PORT | 
| Constructor Summary | |
|---|---|
ExtensibleRMIHost(RMIHostExtensionPoint rmiHosts)
 | 
|
| Method Summary | |
|---|---|
 java.rmi.Remote | 
findService(java.lang.String host,
            java.lang.String port,
            java.lang.String svcName)
find a remote service hosted on the given host, port and service name  | 
 void | 
registerService(java.lang.String serviceName,
                int port,
                java.rmi.Remote serviceObject)
Register an RMI service with the given name and port  | 
 void | 
registerService(java.lang.String serviceName,
                java.rmi.Remote serviceObject)
Register an RMI service with the given name and default port (1099)  | 
 void | 
unregisterService(java.lang.String serviceName)
Unregister a service registered under the given service name and default port number (1099)  | 
 void | 
unregisterService(java.lang.String serviceName,
                  int port)
Unregister a service registered under the given service name and port number  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public ExtensibleRMIHost(RMIHostExtensionPoint rmiHosts)
| Method Detail | 
|---|
public void registerService(java.lang.String serviceName,
                            int port,
                            java.rmi.Remote serviceObject)
                     throws RMIHostException,
                            RMIHostRuntimeException
RMIHost
registerService in interface RMIHostserviceName - against which the server is to be registeredport - the port against which the server is to be registeredserviceObject - the server object to be registered
RMIHostException
RMIHostRuntimeException
public java.rmi.Remote findService(java.lang.String host,
                                   java.lang.String port,
                                   java.lang.String svcName)
                            throws RMIHostException,
                                   RMIHostRuntimeException
RMIHost
findService in interface RMIHosthost - the name of the host on which the RMI service to be unregistered is runningport - the port against which the server is to be unregistered is runningsvcName - serviceName against which the server is to be unregistered is running
RMIHostException
RMIHostRuntimeException
public void registerService(java.lang.String serviceName,
                            java.rmi.Remote serviceObject)
                     throws RMIHostException,
                            RMIHostRuntimeException
RMIHost
registerService in interface RMIHostserviceName - serviceName against which the server is to be registeredserviceObject - the server object to be registered
RMIHostException
RMIHostRuntimeException
public void unregisterService(java.lang.String serviceName)
                       throws RMIHostException,
                              RMIHostRuntimeException
RMIHost
unregisterService in interface RMIHostserviceName - the name of the service that has to be unregistered
RMIHostException
RMIHostRuntimeException
public void unregisterService(java.lang.String serviceName,
                              int port)
                       throws RMIHostException,
                              RMIHostRuntimeException
RMIHost
unregisterService in interface RMIHostserviceName - serviceName against which the server is to be registeredport - the port against which the server is to be registered
RMIHostException
RMIHostRuntimeException
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||