org.nuxeo.runtime.remoting
Class LocatorHelper
java.lang.Object
org.nuxeo.runtime.remoting.LocatorHelper
public class LocatorHelper
- extends Object
Helps to create locators for nuxeo runtime nodes.
- Author:
- Bogdan Stefanescu
DEFAULT_PORT
public static final int DEFAULT_PORT
- See Also:
- Constant Field Values
getLocator
public static InvokerLocator getLocator(String protocol,
String host,
int port,
String path,
Map<String,String> parameters)
getLocator
public static InvokerLocator getLocator(String protocol,
String host,
int port)
getLocator
public static InvokerLocator getLocator(String host,
int port)
getLocator
public static InvokerLocator getLocator(String host)
parse
public static InvokerLocator parse(String uri)
throws MalformedURLException
- Constructs the object used to identify a remoting server via simple uri
format string (e.g. socket://myhost:7000).
Note: the uri passed may not always be the one returned via call to
getLocatorURI() as may need to change if port not specified, host is
0.0.0.0, etc. If need original uri that is passed to this constructor,
need to call getOriginalURI().
- Throws:
MalformedURLException
resolveHost
public static String resolveHost(String host)
fixRemoteAddress
public static String fixRemoteAddress(String address)
Copyright © 2011 Nuxeo SAS. All Rights Reserved.