public class NodeConfiguration extends Object implements Serializable, Cloneable
Modifier and Type | Field and Description |
---|---|
static String |
AUTODETECT_PEERS |
static String |
CLIENT_JNDI_PREFIX |
static String |
IS_STREAMING_SERVER |
static String |
NODE_ID |
static String |
PEERS |
static String |
PRODUCT_NAME |
static String |
PRODUCT_VERSION |
static String |
SERVER_ENABLED |
static String |
SERVER_HOST |
static String |
SERVER_LOCATOR |
static String |
SERVER_PORT |
static String |
SERVER_TYPE |
static String |
STREAMING_LOCATOR |
Constructor and Description |
---|
NodeConfiguration() |
Modifier and Type | Method and Description |
---|---|
NodeConfiguration |
clone() |
Properties |
getClientEnvironment() |
static NodeConfiguration |
getConfiguration() |
String |
getHost() |
InvokerLocator |
getLocator() |
String |
getNodeId() |
int |
getPort() |
String |
getProductName() |
String |
getProductVersion() |
String |
getServerType() |
String |
getStreamingLocator() |
boolean |
isAutoDetectingPeers() |
boolean |
isServer() |
boolean |
isServerNode() |
boolean |
isStreamingServer() |
void |
normalize(InvokerLocator locator)
Normalize hosts specifications from several config properties like the invoker, streaming server, jndi client env.
|
static void |
setConfiguration(NodeConfiguration cfg)
Gives the possibility to override the current configuration.
|
public static final String NODE_ID
public static final String SERVER_ENABLED
public static final String SERVER_TYPE
public static final String SERVER_LOCATOR
public static final String SERVER_HOST
public static final String SERVER_PORT
public static final String PEERS
public static final String AUTODETECT_PEERS
public static final String CLIENT_JNDI_PREFIX
public static final String PRODUCT_NAME
public static final String PRODUCT_VERSION
public static final String IS_STREAMING_SERVER
public static final String STREAMING_LOCATOR
public NodeConfiguration() throws MalformedURLException
MalformedURLException
public static NodeConfiguration getConfiguration()
public static void setConfiguration(NodeConfiguration cfg)
cfg
- the configuration to use as the current node configurationpublic boolean isServerNode()
public String getNodeId()
public boolean isServer()
public String getServerType()
public InvokerLocator getLocator()
public String getHost()
public int getPort()
public String getProductName()
public String getProductVersion()
public String getStreamingLocator()
public boolean isStreamingServer()
public boolean isAutoDetectingPeers()
public Properties getClientEnvironment()
public void normalize(InvokerLocator locator) throws MalformedURLException
Should be called by clients using the locator of the remote server after downoalding the configuration from the server.
locator
- MalformedURLException
public NodeConfiguration clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
Copyright © 2011 Nuxeo SA. All Rights Reserved.