Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.runtime.config
Class Configuration

java.lang.Object
  extended by org.nuxeo.runtime.config.Configuration

public class Configuration
extends Object

Nuxeo Runtime Configurator.

Loads configuration from a remote server and configure the local runtime instance. Configuration includes:

Author:
Bogdan Stefanescu

Field Summary
static int APPEND
           
static int IGNORE
           
static int REPLACE
           
static int RESET
           
 
Constructor Summary
Configuration()
           
 
Method Summary
 String getDescription()
          Gets the description of the remote server.
 String getName()
          Gets the name of the remote server.
 Properties getProperties()
          Gets the remote server properties.
 int getUpdateBindingsOption()
           
 int getUpdateLoginOption()
           
 int getUpdateServersOption()
           
 int getUpdateStreamingOption()
           
 void load(String uri)
          Loads the configuration from a remote server given its address as an URI.
 void load(String host, int port)
          Loads the configuration from a remote server given its host and port.
 void setBindingsUpdateOption(int updateBindingsOption)
           
 void setLoginUpdateOption(int updateLoginOption)
           
 void setServersUpdateOption(int updateServersOption)
           
 void setUpdateStreamingOption(int updateStreamingOption)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IGNORE

public static final int IGNORE
See Also:
Constant Field Values

APPEND

public static final int APPEND
See Also:
Constant Field Values

REPLACE

public static final int REPLACE
See Also:
Constant Field Values

RESET

public static final int RESET
See Also:
Constant Field Values
Constructor Detail

Configuration

public Configuration()
Method Detail

getName

public String getName()
Gets the name of the remote server.

This information is available only after load(String, int) method was called

Returns:
the name.

getDescription

public String getDescription()
Gets the description of the remote server.

This information is available only after load(String, int) method was called.

Returns:
the description.

getProperties

public Properties getProperties()
Gets the remote server properties.

This information is available only after load(String, int) method was called.

Returns:
the properties.

setBindingsUpdateOption

public void setBindingsUpdateOption(int updateBindingsOption)

setLoginUpdateOption

public void setLoginUpdateOption(int updateLoginOption)

setServersUpdateOption

public void setServersUpdateOption(int updateServersOption)

setUpdateStreamingOption

public void setUpdateStreamingOption(int updateStreamingOption)

getUpdateBindingsOption

public int getUpdateBindingsOption()

getUpdateLoginOption

public int getUpdateLoginOption()

getUpdateServersOption

public int getUpdateServersOption()

getUpdateStreamingOption

public int getUpdateStreamingOption()

load

public void load(String uri)
          throws Exception
Loads the configuration from a remote server given its address as an URI.

URIs are in JBoss remoting format. Example: socket://localhost:62474/nxruntime

Parameters:
uri - the URI
Throws:
Exception

load

public void load(String host,
                 int port)
          throws Exception
Loads the configuration from a remote server given its host and port.

Parameters:
host - the host
port - the port
Throws:
Exception

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.