public class BrokerOptions extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_CONFIG_NAME_PREFIX |
static String |
DEFAULT_INITIAL_CONFIG_LOCATION |
static String |
DEFAULT_INITIAL_CONFIG_NAME |
static String |
DEFAULT_STORE_TYPE |
static String |
MANAGEMENT_MODE_USER_NAME |
static String |
QPID_HOME_DIR
Configuration property name for the absolute path to use for the broker home directory.
|
static String |
QPID_WORK_DIR
Configuration property name for the absolute path to use for the broker work directory.
|
Constructor and Description |
---|
BrokerOptions() |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
convertToSystemConfigAttributes() |
Map<String,String> |
getConfigProperties()
Get an un-editable copy of the configuration properties, representing
the user-configured values as well as any defaults for properties
not otherwise configured.
|
String |
getConfigurationStoreLocation()
Get the broker configuration store location.
|
String |
getConfigurationStoreType()
Get the broker configuration store type.
|
String |
getInitialConfigurationLocation()
Get the broker initial JSON configuration location.
|
String |
getInitialSystemProperties()
Get the location of initial JVM system properties to set.
|
int |
getManagementModeHttpPortOverride() |
int |
getManagementModeJmxPortOverride() |
String |
getManagementModePassword() |
int |
getManagementModeRmiPortOverride() |
boolean |
isManagementMode() |
boolean |
isManagementModeQuiesceVirtualHosts() |
boolean |
isOverwriteConfigurationStore()
Returns whether the existing broker configuration store should be overwritten with the current
initial configuration file (see
getInitialConfigurationLocation() ). |
boolean |
isStartupLoggedToSystemOut() |
void |
setConfigProperty(String name,
String value)
Sets the named configuration property to the given value.
|
void |
setConfigurationStoreLocation(String configurationStore)
Set the absolute path to use for the broker configuration store.
|
void |
setConfigurationStoreType(String configurationStoreType)
Set the broker configuration store type.
|
void |
setInitialConfigurationLocation(String initialConfigurationLocation)
Set the absolute path or URL to use for the initial JSON configuration, which is loaded with the
in order to initialise any new store for the broker.
|
void |
setInitialSystemProperties(String initialSystemProperties)
Set the location of initial properties file to set as JVM system properties.
|
void |
setManagementMode(boolean managementMode) |
void |
setManagementModeHttpPortOverride(int managementModeHttpPortOverride) |
void |
setManagementModeJmxPortOverride(int managementModeJmxPortOverride) |
void |
setManagementModePassword(String managementModePassword) |
void |
setManagementModeQuiesceVirtualHosts(boolean managementModeQuiesceVhosts) |
void |
setManagementModeRmiPortOverride(int managementModeRmiPortOverride) |
void |
setOverwriteConfigurationStore(boolean overwrite)
Sets whether the existing broker configuration store should be overwritten with the current
initial configuration file (see
getInitialConfigurationLocation() ). |
void |
setStartupLoggedToSystemOut(boolean startupLoggedToSystemOut) |
public static final String QPID_WORK_DIR
public static final String QPID_HOME_DIR
public static final String DEFAULT_INITIAL_CONFIG_NAME
public static final String DEFAULT_STORE_TYPE
public static final String DEFAULT_CONFIG_NAME_PREFIX
public static final String DEFAULT_INITIAL_CONFIG_LOCATION
public static final String MANAGEMENT_MODE_USER_NAME
public String getManagementModePassword()
public void setManagementModePassword(String managementModePassword)
public boolean isManagementMode()
public void setManagementMode(boolean managementMode)
public boolean isManagementModeQuiesceVirtualHosts()
public void setManagementModeQuiesceVirtualHosts(boolean managementModeQuiesceVhosts)
public int getManagementModeRmiPortOverride()
public void setManagementModeRmiPortOverride(int managementModeRmiPortOverride)
public int getManagementModeJmxPortOverride()
public void setManagementModeJmxPortOverride(int managementModeJmxPortOverride)
public int getManagementModeHttpPortOverride()
public void setManagementModeHttpPortOverride(int managementModeHttpPortOverride)
public String getConfigurationStoreType()
public void setConfigurationStoreType(String configurationStoreType)
public String getConfigurationStoreLocation()
getConfigurationStoreType()
)
within the broker work directory (gathered via config property QPID_WORK_DIR
).public void setConfigurationStoreLocation(String configurationStore)
public boolean isOverwriteConfigurationStore()
getInitialConfigurationLocation()
).public void setOverwriteConfigurationStore(boolean overwrite)
getInitialConfigurationLocation()
).public String getInitialConfigurationLocation()
public void setInitialConfigurationLocation(String initialConfigurationLocation)
public void setConfigProperty(String name, String value)
public Map<String,String> getConfigProperties()
public boolean isStartupLoggedToSystemOut()
public void setStartupLoggedToSystemOut(boolean startupLoggedToSystemOut)
public String getInitialSystemProperties()
public void setInitialSystemProperties(String initialSystemProperties)
initialSystemProperties
- the location of initial JVM system properties.Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.