org.nuxeo.runtime.config
Class NodeConfiguration
java.lang.Object
org.nuxeo.runtime.config.NodeConfiguration
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public class NodeConfiguration
- extends java.lang.Object
- implements java.io.Serializable, java.lang.Cloneable
- Author:
- Bogdan Stefanescu
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NODE_ID
public static final java.lang.String NODE_ID
- See Also:
- Constant Field Values
SERVER_ENABLED
public static final java.lang.String SERVER_ENABLED
- See Also:
- Constant Field Values
SERVER_TYPE
public static final java.lang.String SERVER_TYPE
- See Also:
- Constant Field Values
SERVER_LOCATOR
public static final java.lang.String SERVER_LOCATOR
- See Also:
- Constant Field Values
SERVER_HOST
public static final java.lang.String SERVER_HOST
- See Also:
- Constant Field Values
SERVER_PORT
public static final java.lang.String SERVER_PORT
- See Also:
- Constant Field Values
PEERS
public static final java.lang.String PEERS
- See Also:
- Constant Field Values
AUTODETECT_PEERS
public static final java.lang.String AUTODETECT_PEERS
- See Also:
- Constant Field Values
CLIENT_JNDI_PREFIX
public static final java.lang.String CLIENT_JNDI_PREFIX
- See Also:
- Constant Field Values
PRODUCT_NAME
public static final java.lang.String PRODUCT_NAME
- See Also:
- Constant Field Values
PRODUCT_VERSION
public static final java.lang.String PRODUCT_VERSION
- See Also:
- Constant Field Values
IS_STREAMING_SERVER
public static final java.lang.String IS_STREAMING_SERVER
- See Also:
- Constant Field Values
STREAMING_LOCATOR
public static final java.lang.String STREAMING_LOCATOR
- See Also:
- Constant Field Values
NodeConfiguration
public NodeConfiguration()
throws java.net.MalformedURLException
- Throws:
java.net.MalformedURLException
getConfiguration
public static NodeConfiguration getConfiguration()
setConfiguration
public static void setConfiguration(NodeConfiguration cfg)
- Gives the possibility to override the current configuration.
This is useful for clients using auto configuration like Apogee.
- Parameters:
cfg
- the configuration to use as the current node configuration
isServerNode
public boolean isServerNode()
getNodeId
public java.lang.String getNodeId()
isServer
public boolean isServer()
getServerType
public java.lang.String getServerType()
getLocator
public InvokerLocator getLocator()
getHost
public java.lang.String getHost()
getPort
public int getPort()
getProductName
public java.lang.String getProductName()
getProductVersion
public java.lang.String getProductVersion()
getStreamingLocator
public java.lang.String getStreamingLocator()
isStreamingServer
public boolean isStreamingServer()
isAutoDetectingPeers
public boolean isAutoDetectingPeers()
getClientEnvironment
public java.util.Properties getClientEnvironment()
normalize
public void normalize(InvokerLocator locator)
throws java.net.MalformedURLException
- Normalize hosts specifications from several config properties like the invoker, streaming server, jndi client env.
given a final host as used by the client at connection time.
Should be called by clients using the locator of the remote server after downoalding the configuration from the server.
- Parameters:
locator
-
- Throws:
java.net.MalformedURLException
clone
public NodeConfiguration clone()
throws java.lang.CloneNotSupportedException
- Overrides:
clone
in class java.lang.Object
- Throws:
java.lang.CloneNotSupportedException
Copyright © 2010 Nuxeo SAS. All Rights Reserved.