public class BrooklynFeatureEnablement
extends java.lang.Object
setEnablement(String, boolean)
(or to enable(String)
or disable(String)
)).
init(BrooklynProperties)
)
setDefault(String, boolean)
For example, start Brooklyn with -Dbrooklyn.executionManager.renameThreads=true
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FEATURE_AUTO_FIX_CATALOG_REF_ON_REBIND
When rebinding, an entity could reference a catalog item that no longer exists.
|
static java.lang.String |
FEATURE_BACKWARDS_COMPATIBILITY_INFER_CATALOG_ITEM_ON_REBIND
When rebinding to state created from very old versions, the catalogItemId properties will be missing which
results in errors when OSGi bundles are used.
|
static java.lang.String |
FEATURE_BUNDLE_PERSISTENCE_PROPERTY |
static java.lang.String |
FEATURE_CATALOG_PERSISTENCE_PROPERTY |
static java.lang.String |
FEATURE_CORS_CXF_PROPERTY |
static java.lang.String |
FEATURE_DEFAULT_STANDBY_IS_HOT_PROPERTY
whether the default standby mode is
HighAvailabilityMode.HOT_STANDBY or falling back to the traditional
HighAvailabilityMode.STANDBY |
static java.lang.String |
FEATURE_ENRICHER_PERSISTENCE_PROPERTY |
static java.lang.String |
FEATURE_FEED_PERSISTENCE_PROPERTY |
static java.lang.String |
FEATURE_FEED_REGISTRATION_PROPERTY
whether feeds are automatically registered when set on entities, so that they are persisted
|
static java.lang.String |
FEATURE_JITTER_THREADS
Add a jitter to the startup of tasks for testing concurrency code.
|
static java.lang.String |
FEATURE_PERSIST_ENTITY_SPEC_AS_SUPPLIER
whether $brooklyn:entitySpec blocks persist a
DeferredSupplier containing YAML or the resolved EntitySpec ;
the former allows upgrades and deferred resolution of other flags, whereas the latter is the traditional
behaviour (prior to 2017-11) which resolves the EntitySpec earlier and persists that |
static java.lang.String |
FEATURE_POLICY_PERSISTENCE_PROPERTY |
static java.lang.String |
FEATURE_PROPERTY_PREFIX |
static java.lang.String |
FEATURE_REFERENCED_OBJECTS_REPERSISTENCE_PROPERTY
When persisting an entity that changes, whether to persist its adjuncts and locations
(i.e.
|
static java.lang.String |
FEATURE_RENAME_THREADS
Renaming threads can really helps with debugging etc; however it's a massive performance hit (2x)
|
static java.lang.String |
FEATURE_SSH_ASYNC_EXEC
When executing over ssh, whether to support the "async exec" approach, or only the classic approach.
|
static java.lang.String |
FEATURE_VALIDATE_LOCATION_SSH_KEYS |
Constructor and Description |
---|
BrooklynFeatureEnablement() |
Modifier and Type | Method and Description |
---|---|
static void |
clearCache() |
static boolean |
disable(java.lang.String property) |
static boolean |
enable(java.lang.String property) |
static void |
init(BrooklynProperties props)
Initialises the feature-enablement from brooklyn properties.
|
static boolean |
isEnabled(java.lang.String property) |
static void |
setDefault(java.lang.String property,
boolean val) |
static boolean |
setEnablement(java.lang.String property,
boolean val) |
public static final java.lang.String FEATURE_PROPERTY_PREFIX
public static final java.lang.String FEATURE_POLICY_PERSISTENCE_PROPERTY
public static final java.lang.String FEATURE_ENRICHER_PERSISTENCE_PROPERTY
public static final java.lang.String FEATURE_FEED_PERSISTENCE_PROPERTY
public static final java.lang.String FEATURE_REFERENCED_OBJECTS_REPERSISTENCE_PROPERTY
public static final java.lang.String FEATURE_FEED_REGISTRATION_PROPERTY
public static final java.lang.String FEATURE_CORS_CXF_PROPERTY
public static final java.lang.String FEATURE_BUNDLE_PERSISTENCE_PROPERTY
public static final java.lang.String FEATURE_CATALOG_PERSISTENCE_PROPERTY
public static final java.lang.String FEATURE_DEFAULT_STANDBY_IS_HOT_PROPERTY
HighAvailabilityMode.HOT_STANDBY
or falling back to the traditional
HighAvailabilityMode.STANDBY
public static final java.lang.String FEATURE_PERSIST_ENTITY_SPEC_AS_SUPPLIER
DeferredSupplier
containing YAML or the resolved EntitySpec
;
the former allows upgrades and deferred resolution of other flags, whereas the latter is the traditional
behaviour (prior to 2017-11) which resolves the EntitySpec
earlier and persists thatpublic static final java.lang.String FEATURE_RENAME_THREADS
We get 55000 tasks per sec with this off, 28k/s with this on.
Defaults to false if system property is not set.
public static final java.lang.String FEATURE_JITTER_THREADS
brooklyn.executionManager.jitterThreads.maxDelay
to tune the maximum time task
startup gets delayed in milliseconds. The actual time will be a random value between [0, maxDelay).
Default is 200 milliseconds.public static final java.lang.String FEATURE_BACKWARDS_COMPATIBILITY_INFER_CATALOG_ITEM_ON_REBIND
public static final java.lang.String FEATURE_AUTO_FIX_CATALOG_REF_ON_REBIND
public static final java.lang.String FEATURE_SSH_ASYNC_EXEC
ShellTool.PROP_EXEC_ASYNC
is configured it
will still use the classic ssh approach.public static final java.lang.String FEATURE_VALIDATE_LOCATION_SSH_KEYS
public static boolean isEnabled(java.lang.String property)
public static void init(BrooklynProperties props)
public static boolean enable(java.lang.String property)
public static boolean disable(java.lang.String property)
public static boolean setEnablement(java.lang.String property, boolean val)
public static void setDefault(java.lang.String property, boolean val)
public static void clearCache()