public class Configuration extends Object
Loads configuration from a remote server and configure the local runtime instance. Configuration includes:
Modifier and Type | Field and Description |
---|---|
static int |
APPEND |
static int |
IGNORE |
static int |
REPLACE |
static int |
RESET |
Constructor and Description |
---|
Configuration() |
Modifier and Type | Method and Description |
---|---|
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) |
public static final int IGNORE
public static final int APPEND
public static final int REPLACE
public static final int RESET
public String getName()
This information is available only after
load(String, int)
method was called
public String getDescription()
This information is available only after
load(String, int)
method was called.
public Properties getProperties()
This information is available only after
load(String, int)
method was called.
public void setBindingsUpdateOption(int updateBindingsOption)
public void setLoginUpdateOption(int updateLoginOption)
public void setServersUpdateOption(int updateServersOption)
public void setUpdateStreamingOption(int updateStreamingOption)
public int getUpdateBindingsOption()
public int getUpdateLoginOption()
public int getUpdateServersOption()
public int getUpdateStreamingOption()
public void load(String uri) throws Exception
URIs are in JBoss remoting format. Example: socket://localhost:62474/nxruntime
uri
- the URIException
Copyright © 2013 Nuxeo SA. All Rights Reserved.