public class AcsLocations
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CDB_SYMBOL
The suffix for a cdb-dal location.
|
static java.lang.String |
CONTAINERDAEMON_SYMBOL
The suffix for a ContainerDaemon location.
|
static java.lang.String |
INTERFACEREPOSITORY_SYMBOL
The suffix for a InterfaceRepository location.
|
static java.lang.String |
MANAGER_SYMBOL
The suffix for a Manager location.
|
static java.lang.String |
NAMESERVICE_SYMBOL
The suffix for a NameService location.
|
static java.lang.String |
SERVICESDAEMON_SYMBOL
The suffix for a ServicesDaemon location.
|
| Constructor and Description |
|---|
AcsLocations() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String[] |
convert(java.lang.String loc)
Extracts host and port from a location string (either a corbaloc or an IOR).
|
static java.lang.String |
convertToCdbLocation(java.lang.String host,
java.lang.String port)
Composes a CDB corbaloc for the specified host and port.
|
static java.lang.String |
convertToCdbLocation(java.lang.String host,
java.lang.String port,
java.lang.String protocol)
Composes a CDB corbaloc for the specified host, port, and protocol.
|
static java.lang.String |
convertToContainerDaemonLocation(java.lang.String host)
Composes a ContainerDaemon corbaloc for the specified host.
|
static java.lang.String |
convertToInterfaceRepositoryLocation(java.lang.String host,
java.lang.String port)
Composes a InterfaceRepository corbaloc for the specified host and port.
|
static java.lang.String |
convertToInterfaceRepositoryLocation(java.lang.String host,
java.lang.String port,
java.lang.String protocol)
Composes a InterfaceRepository corbaloc for the specified host, port, and protocol.
|
static java.lang.String |
convertToManagerLocation(java.lang.String host,
java.lang.String port)
Composes a Manager corbaloc for the specified host and port.
|
static java.lang.String |
convertToManagerLocation(java.lang.String host,
java.lang.String port,
java.lang.String protocol)
Composes a Manager corbaloc for the specified host, port, and protocol.
|
static java.lang.String |
convertToNameServiceLocation(java.lang.String host,
java.lang.String port)
Composes a NameService corbaloc for the specified host and port.
|
static java.lang.String |
convertToNameServiceLocation(java.lang.String host,
java.lang.String port,
java.lang.String protocol)
Composes a NameService corbaloc for the specified host, port, and protocol.
|
static java.lang.String |
convertToServicesDaemonLocation(java.lang.String host)
Composes a ServicesDaemon corbaloc for the specified host.
|
static java.lang.String |
figureOutManagerLocation()
Figures out the manager location by reading the related system properties, otherwise
falls back to a default value.
|
static java.lang.String |
getLocalIP()
Returns the stringified IP or "localhost" if an error were to occur.
|
public static java.lang.String MANAGER_SYMBOL
public static java.lang.String NAMESERVICE_SYMBOL
public static java.lang.String INTERFACEREPOSITORY_SYMBOL
public static java.lang.String CDB_SYMBOL
public static final java.lang.String SERVICESDAEMON_SYMBOL
Note that this string constant is also defined in acsdaemon.idl and would be accessible as "alma.acsdaemon.servicesDaemonServiceName.value" if module acsdaemonidl would not come after jacsutil.
public static final java.lang.String CONTAINERDAEMON_SYMBOL
Note that this string constant is also defined in acsdaemon.idl and would be accessible as "alma.acsdaemon.containerDaemonServiceName.value" if module acsdaemonidl would not come after jacsutil.
public static java.lang.String getLocalIP()
ACSPorts.getIP().public static java.lang.String figureOutManagerLocation()
ACS.manager
ACS.baseport together with
local IP
3000 together with local IP
corbaloc::134.171.27.234:3000/Manager)public static java.lang.String[] convert(java.lang.String loc)
throws java.lang.IllegalArgumentException
This method is the counterpart to all the convertTo... methods
defined in this class.
The location string's format is recognized by the prefix (case insensitive). If the format is unknown, an exception will be thrown.
loc - a CORBALOC or an IORjava.lang.IllegalArgumentException - If the location has an unknown format or is otherwise invalidpublic static java.lang.String convertToManagerLocation(java.lang.String host,
java.lang.String port)
public static java.lang.String convertToManagerLocation(java.lang.String host,
java.lang.String port,
java.lang.String protocol)
public static java.lang.String convertToNameServiceLocation(java.lang.String host,
java.lang.String port)
public static java.lang.String convertToNameServiceLocation(java.lang.String host,
java.lang.String port,
java.lang.String protocol)
public static java.lang.String convertToInterfaceRepositoryLocation(java.lang.String host,
java.lang.String port)
public static java.lang.String convertToInterfaceRepositoryLocation(java.lang.String host,
java.lang.String port,
java.lang.String protocol)
public static java.lang.String convertToCdbLocation(java.lang.String host,
java.lang.String port)
public static java.lang.String convertToCdbLocation(java.lang.String host,
java.lang.String port,
java.lang.String protocol)
public static java.lang.String convertToServicesDaemonLocation(java.lang.String host)
public static java.lang.String convertToContainerDaemonLocation(java.lang.String host)