| java.lang.Object org.springframework.remoting.rmi.RmiRegistryFactoryBean
Field Summary | |
final protected Log | logger |
Method Summary | |
public void | afterPropertiesSet() | public void | destroy() Unexport the RMI registry on bean factory shutdown,
provided that this bean actually created a registry. | public String | getHost() Return the host of the registry for the exported RMI service. | public Object | getObject() | public Class | getObjectType() | public int | getPort() Return the port of the registry for the exported RMI service. | protected Registry | getRegistry(String registryHost, int registryPort, RMIClientSocketFactory clientSocketFactory, RMIServerSocketFactory serverSocketFactory) Locate or create the RMI registry. | protected Registry | getRegistry(int registryPort, RMIClientSocketFactory clientSocketFactory, RMIServerSocketFactory serverSocketFactory) Locate or create the RMI registry. | protected Registry | getRegistry(int registryPort) Locate or create the RMI registry. | public boolean | isSingleton() | public void | setAlwaysCreate(boolean alwaysCreate) Set whether to always create the registry in-process,
not attempting to locate an existing registry at the specified port.
Default is "false". | public void | setClientSocketFactory(RMIClientSocketFactory clientSocketFactory) Set a custom RMI client socket factory to use for the RMI registry. | public void | setHost(String host) Set the host of the registry for the exported RMI service,
i.e. | public void | setPort(int port) Set the port of the registry for the exported RMI service,
i.e. | public void | setServerSocketFactory(RMIServerSocketFactory serverSocketFactory) Set a custom RMI server socket factory to use for the RMI registry. | protected void | testRegistry(Registry registry) Test the given RMI registry, calling some operation on it to
check whether it is still active. |
logger | final protected Log logger(Code) | | |
destroy | public void destroy() throws RemoteException(Code) | | Unexport the RMI registry on bean factory shutdown,
provided that this bean actually created a registry.
|
getHost | public String getHost()(Code) | | Return the host of the registry for the exported RMI service.
|
getPort | public int getPort()(Code) | | Return the port of the registry for the exported RMI service.
|
getRegistry | protected Registry getRegistry(String registryHost, int registryPort, RMIClientSocketFactory clientSocketFactory, RMIServerSocketFactory serverSocketFactory) throws RemoteException(Code) | | Locate or create the RMI registry.
Parameters: registryHost - the registry host to use (if this is specified,no implicit creation of a RMI registry will happen) Parameters: registryPort - the registry port to use Parameters: clientSocketFactory - the RMI client socket factory for the registry (if any) Parameters: serverSocketFactory - the RMI server socket factory for the registry (if any) the RMI registry throws: java.rmi.RemoteException - if the registry couldn't be located or created |
getRegistry | protected Registry getRegistry(int registryPort, RMIClientSocketFactory clientSocketFactory, RMIServerSocketFactory serverSocketFactory) throws RemoteException(Code) | | Locate or create the RMI registry.
Parameters: registryPort - the registry port to use Parameters: clientSocketFactory - the RMI client socket factory for the registry (if any) Parameters: serverSocketFactory - the RMI server socket factory for the registry (if any) the RMI registry throws: RemoteException - if the registry couldn't be located or created |
getRegistry | protected Registry getRegistry(int registryPort) throws RemoteException(Code) | | Locate or create the RMI registry.
Parameters: registryPort - the registry port to use the RMI registry throws: RemoteException - if the registry couldn't be located or created |
isSingleton | public boolean isSingleton()(Code) | | |
setAlwaysCreate | public void setAlwaysCreate(boolean alwaysCreate)(Code) | | Set whether to always create the registry in-process,
not attempting to locate an existing registry at the specified port.
Default is "false". Switch this flag to "true" in order to avoid
the overhead of locating an existing registry when you always
intend to create a new registry in any case.
|
setHost | public void setHost(String host)(Code) | | Set the host of the registry for the exported RMI service,
i.e. rmi://HOST:port/name
Default is localhost.
|
setPort | public void setPort(int port)(Code) | | Set the port of the registry for the exported RMI service,
i.e. rmi://host:PORT/name
Default is Registry.REGISTRY_PORT (1099).
|
|
|