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(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
- Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.