public class RestrictingRMISocketFactory extends RMISocketFactory
RMISocketFactory implementation which allow to bind JMX to a specific
IP| Constructor and Description |
|---|
RestrictingRMISocketFactory() |
RestrictingRMISocketFactory(String address) |
| Modifier and Type | Method and Description |
|---|---|
ServerSocket |
createServerSocket(int port)
Create a
ServerSocket which is bound to an specific address and
the given port. |
Socket |
createSocket(String host,
int port)
Create a new
Socket for the given host and port |
getDefaultSocketFactory, getFailureHandler, getSocketFactory, setFailureHandler, setSocketFactorypublic RestrictingRMISocketFactory(String address)
public RestrictingRMISocketFactory()
public ServerSocket createServerSocket(int port) throws IOException
ServerSocket which is bound to an specific address and
the given port. The address can be specified by the System Property
james.jmx.address. If none is given it will use localhostcreateServerSocket in interface RMIServerSocketFactorycreateServerSocket in class RMISocketFactoryIOExceptionpublic Socket createSocket(String host, int port) throws IOException
Socket for the given host and portcreateSocket in interface RMIClientSocketFactorycreateSocket in class RMISocketFactoryIOExceptionCopyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.