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
Deprecated.
since 0.7.0 replaced by
CatalogInitialization ; also note, default removed
(it was overridden anyway, and in almost all cases the new behaviour is still the default behaviour) |
static java.lang.String |
MANAGEMENT_NODE_ID_PROPERTY
string used in places where the management node ID is needed to resolve a path
|
static ConfigKey<java.lang.String> |
MGMT_BASE_DIR
Provided for setting; consumers should use
getMgmtBaseDir(ManagementContext) |
static ConfigKey<java.lang.Boolean> |
OSGI_CACHE_CLEAN |
static ConfigKey<java.lang.String> |
OSGI_CACHE_DIR |
static ConfigKey<java.lang.String> |
PERSISTENCE_BACKUPS_DIR |
static ConfigKey<java.lang.String> |
PERSISTENCE_BACKUPS_LOCATION_SPEC |
static ConfigKey<java.lang.Boolean> |
PERSISTENCE_BACKUPS_REQUIRED
Deprecated.
since 0.7.0, use
#PERSISTENCE_BACKUPS_ON_PROMOTION and #PERSISTENCE_BACKUPS_ON_DEMOTION ,
which allow using a different target location and are supported on more environments (and now default to true) |
static ConfigKey<java.lang.Boolean> |
PERSISTENCE_BACKUPS_REQUIRED_ON_DEMOTION |
static ConfigKey<java.lang.Boolean> |
PERSISTENCE_BACKUPS_REQUIRED_ON_PROMOTION |
static ConfigKey<java.lang.String> |
PERSISTENCE_DIR
Provided for setting; consumers should query the management context persistence subsystem
for the actual target, or use
BrooklynServerPaths.newMainPersistencePathResolver(ManagementContext)
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)
Deprecated.
since 0.7.0 use
BrooklynServerPaths.getBrooklynWebTmpDir(ManagementContext) |
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.
|
static java.lang.String |
getPersistenceDir(StringConfigMap brooklynProperties)
Deprecated.
|
static java.lang.String |
resolvePersistencePath(java.lang.String optionalSuppliedValue,
StringConfigMap brooklynProperties,
java.lang.String optionalObjectStoreLocationSpec)
Deprecated.
|
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 ConfigKey<java.lang.String> PERSISTENCE_DIR
BrooklynServerPaths.newMainPersistencePathResolver(ManagementContext)
if trying to resolve the valuepublic static final ConfigKey<java.lang.String> PERSISTENCE_LOCATION_SPEC
public static final ConfigKey<java.lang.String> PERSISTENCE_BACKUPS_DIR
public static final ConfigKey<java.lang.String> PERSISTENCE_BACKUPS_LOCATION_SPEC
public static final ConfigKey<java.lang.Boolean> PERSISTENCE_BACKUPS_REQUIRED_ON_PROMOTION
public static final ConfigKey<java.lang.Boolean> PERSISTENCE_BACKUPS_REQUIRED_ON_DEMOTION
@Deprecated public static final ConfigKey<java.lang.Boolean> PERSISTENCE_BACKUPS_REQUIRED
#PERSISTENCE_BACKUPS_ON_PROMOTION
and #PERSISTENCE_BACKUPS_ON_DEMOTION
,
which allow using a different target location and are supported on more environments (and now default to true)public static final ConfigKey<java.lang.String> BROOKLYN_CATALOG_URL
@Deprecated public static final ConfigKey<CatalogLoadMode> CATALOG_LOAD_MODE
CatalogInitialization
; also note, default removed
(it was overridden anyway, and in almost all cases the new behaviour is still the default behaviour)public static final java.lang.String MANAGEMENT_NODE_ID_PROPERTY
public static final ConfigKey<java.lang.Boolean> USE_OSGI
public static final ConfigKey<java.lang.String> OSGI_CACHE_DIR
public static final ConfigKey<java.lang.Boolean> OSGI_CACHE_CLEAN
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)
BrooklynServerPaths.newMainPersistencePathResolver(ManagementContext)
public static java.lang.String getPersistenceDir(StringConfigMap brooklynProperties)
BrooklynServerPaths.newMainPersistencePathResolver(ManagementContext)
public static java.lang.String resolvePersistencePath(java.lang.String optionalSuppliedValue, StringConfigMap brooklynProperties, java.lang.String optionalObjectStoreLocationSpec)
BrooklynServerPaths.newMainPersistencePathResolver(ManagementContext)
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)
BrooklynServerPaths.getBrooklynWebTmpDir(ManagementContext)
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.