Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.runtime.remoting
Class LocatorHelper

java.lang.Object
  extended by org.nuxeo.runtime.remoting.LocatorHelper

public class LocatorHelper
extends Object

Helps to create locators for nuxeo runtime nodes.

Author:
Bogdan Stefanescu

Field Summary
static int DEFAULT_PORT
           
 
Method Summary
static String fixRemoteAddress(String address)
           
static InvokerLocator getLocator(String host)
           
static InvokerLocator getLocator(String host, int port)
           
static InvokerLocator getLocator(String protocol, String host, int port)
           
static InvokerLocator getLocator(String protocol, String host, int port, String path, Map<String,String> parameters)
           
static InvokerLocator parse(String uri)
          Constructs the object used to identify a remoting server via simple uri format string (e.g.
static String resolveHost(String host)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PORT

public static final int DEFAULT_PORT
See Also:
Constant Field Values
Method Detail

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)

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.