public class RemoteUtils extends Object
Modifier and Type | Method and Description |
---|---|
static void |
configureGlobalCustomSocketFactory(int timeoutMillis)
Configure a custom socket factory to set the timeout value.
|
static Registry |
createRegistry(int port)
Creates and exports a registry on the specified port of the local host.
|
static String |
getNamingURL(RemoteLocation location,
String serviceName)
Get the naming url used for RMI registration
|
static String |
getNamingURL(String registryHost,
int registryPort,
String serviceName)
Get the naming url used for RMI registration
|
static Properties |
loadProps(String propFile)
Loads properties for the named props file.
|
public static Registry createRegistry(int port)
port
- public static Properties loadProps(String propFile) throws IOException
propFile
- IOException
public static void configureGlobalCustomSocketFactory(int timeoutMillis)
timeoutMillis
- public static String getNamingURL(RemoteLocation location, String serviceName)
location
- the remote locationserviceName
- the remote service namepublic static String getNamingURL(String registryHost, int registryPort, String serviceName)
registryHost
- the remote hostregistryPort
- the remote portserviceName
- the remote service nameCopyright © 2002–2018 The Apache Software Foundation. All rights reserved.