public class BrooklynServerConfig
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static ConfigKey<java.lang.String> |
BROOKLYN_CATALOG_URL |
static ConfigKey<java.lang.String> |
BROOKLYN_DATA_DIR
Deprecated.
|
static ConfigKey<CampPlatform> |
CAMP_PLATFORM |
static ConfigKey<CatalogLoadMode> |
CATALOG_LOAD_MODE |
static java.lang.String |
DEFAULT_PERSISTENCE_CONTAINER_NAME |
static java.lang.String |
DEFAULT_PERSISTENCE_DIR_FOR_FILESYSTEM
on file system, the 'data' subdir is used so that there is an obvious place to put backup dirs
|
static ConfigKey<java.lang.String> |
MGMT_BASE_DIR
Provided for setting; consumers should use
getMgmtBaseDir(ManagementContext) |
static ConfigKey<java.lang.Boolean> |
PERSISTENCE_BACKUPS_REQUIRED |
static ConfigKey<java.lang.String> |
PERSISTENCE_DIR
Provided for setting; consumers should query the management context persistence subsystem
for the actual target, or use
resolvePersistencePath(String, StringConfigMap, String)
if trying to resolve the value |
static ConfigKey<java.lang.String> |
PERSISTENCE_LOCATION_SPEC |
static ConfigKey<java.lang.Boolean> |
USE_OSGI |
Constructor and Description |
---|
BrooklynServerConfig() |
Modifier and Type | Method and Description |
---|---|
static java.io.File |
getBrooklynWebTmpDir(ManagementContext mgmt) |
static Maybe<java.net.URI> |
getBrooklynWebUri(ManagementContext mgmt) |
static Maybe<CampPlatform> |
getCampPlatform(ManagementContext mgmt) |
static java.lang.String |
getMgmtBaseDir(ManagementContext mgmt) |
static java.lang.String |
getMgmtBaseDir(java.util.Map<java.lang.String,?> brooklynProperties) |
static java.lang.String |
getMgmtBaseDir(StringConfigMap brooklynProperties) |
static java.lang.String |
getPersistenceDir(ManagementContext mgmt)
Deprecated.
since 0.7.0 use
resolvePersistencePath(String, StringConfigMap, String) |
static java.lang.String |
getPersistenceDir(StringConfigMap brooklynProperties)
Deprecated.
since 0.7.0 use
resolvePersistencePath(String, StringConfigMap, String) |
static java.lang.String |
resolvePersistencePath(java.lang.String optionalSuppliedValue,
StringConfigMap brooklynProperties,
java.lang.String optionalObjectStoreLocationSpec) |
public static final ConfigKey<java.lang.String> MGMT_BASE_DIR
getMgmtBaseDir(ManagementContext)
@Deprecated public static final ConfigKey<java.lang.String> BROOKLYN_DATA_DIR
public static final java.lang.String DEFAULT_PERSISTENCE_CONTAINER_NAME
public static final java.lang.String DEFAULT_PERSISTENCE_DIR_FOR_FILESYSTEM
public static final ConfigKey<java.lang.String> PERSISTENCE_DIR
resolvePersistencePath(String, StringConfigMap, String)
if trying to resolve the valuepublic static final ConfigKey<java.lang.String> PERSISTENCE_LOCATION_SPEC
public static final ConfigKey<java.lang.Boolean> PERSISTENCE_BACKUPS_REQUIRED
public static final ConfigKey<java.lang.String> BROOKLYN_CATALOG_URL
public static final ConfigKey<CatalogLoadMode> CATALOG_LOAD_MODE
public static final ConfigKey<java.lang.Boolean> USE_OSGI
public static final ConfigKey<CampPlatform> CAMP_PLATFORM
public static java.lang.String getMgmtBaseDir(ManagementContext mgmt)
public static java.lang.String getMgmtBaseDir(StringConfigMap brooklynProperties)
public static java.lang.String getMgmtBaseDir(java.util.Map<java.lang.String,?> brooklynProperties)
public static java.lang.String getPersistenceDir(ManagementContext mgmt)
resolvePersistencePath(String, StringConfigMap, String)
public static java.lang.String getPersistenceDir(StringConfigMap brooklynProperties)
resolvePersistencePath(String, StringConfigMap, String)
public static java.lang.String resolvePersistencePath(java.lang.String optionalSuppliedValue, StringConfigMap brooklynProperties, java.lang.String optionalObjectStoreLocationSpec)
optionalSuppliedValue
- An optional value which has been supplied explicitlybrooklynProperties
- The properties map where the persistence path should be looked up if not supplied,
along with finding the brooklyn.base.dir if needed (using file system persistence
with a relative path)optionalObjectStoreLocationSpec
- If a location spec is supplied, this will return a container name suitable for use
with the given object store based on brooklyn.persistence.dir; if null this method
will return a full file system path, relative to the brooklyn.base.dir if the
configured brooklyn.persistence.dir is not absolutepublic static java.io.File getBrooklynWebTmpDir(ManagementContext mgmt)
public static Maybe<CampPlatform> getCampPlatform(ManagementContext mgmt)
public static Maybe<java.net.URI> getBrooklynWebUri(ManagementContext mgmt)
ManagementContext.getManagementNodeUri()
, located in this utility class for convenience.