public abstract class AbstractEntityAdjunct extends AbstractBrooklynObject implements BrooklynObjectInternal, EntityAdjunct, Configurable
Modifier and Type | Class and Description |
---|---|
class |
AbstractEntityAdjunct.AdjunctTagSupport |
BrooklynObjectInternal.ConfigurationSupportInternal
BrooklynObject.TagSupport
Configurable.ConfigurationSupport
Constructor and Description |
---|
AbstractEntityAdjunct() |
AbstractEntityAdjunct(java.util.Map properties) |
Modifier and Type | Method and Description |
---|---|
BrooklynObjectInternal.ConfigurationSupportInternal |
config() |
AbstractEntityAdjunct |
configure(java.util.Map flags)
Deprecated.
since 0.7.0; only used for legacy brooklyn types where constructor is called directly
|
void |
destroy()
Unsubscribes and clears all managed subscriptions; is called by the owning entity when a policy is removed
and should always be called by any subclasses overriding this method
|
java.util.Map<ConfigKey<?>,java.lang.Object> |
getAllConfig()
Deprecated.
since 0.7.0; use
config() , such as entity.config().getBag() |
<T> T |
getConfig(ConfigKey<T> key) |
ConfigMap |
getConfigMap()
Deprecated.
|
java.lang.String |
getDisplayName()
A display name; recommended to be a concise single-line description.
|
java.lang.String |
getName()
Deprecated.
|
java.lang.String |
getUniqueTag()
An optional tag used to identify adjuncts with a specific purpose, typically created by the caller.
|
boolean |
isDestroyed()
Whether the adjunct is destroyed
|
boolean |
isRunning()
Whether the adjunct is available/active, ie started and not stopped or interrupted
|
<T> T |
setConfig(ConfigKey<T> key,
T val)
Deprecated.
|
void |
setDisplayName(java.lang.String name) |
void |
setEntity(EntityLocal entity) |
void |
setName(java.lang.String name)
Deprecated.
since 0.7.0; see
setDisplayName(String) |
BrooklynObject.TagSupport |
tags()
Tags are arbitrary objects which can be attached to an entity for subsequent reference.
|
java.lang.String |
toString() |
getCatalogItemId, getId, getManagementContext, getTagSupport, init, rebind, setCatalogItemId, setManagementContext
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getRebindSupport, setCatalogItemId
getId
getCatalogItemId, getTagSupport
public AbstractEntityAdjunct()
public AbstractEntityAdjunct(java.util.Map properties)
@Deprecated public AbstractEntityAdjunct configure(java.util.Map flags)
AbstractBrooklynObject
ConfigBag.getUnusedConfig()
.
To be overridden by AbstractEntity, AbstractLoation, AbstractPolicy, AbstractEnricher, etc.
But should not be overridden by specific entity types. If you do, the entity may break in subsequent releases. Also note that if you require fields to be initialized you must do that in this method. You must *not* rely on field initializers because they may not run until *after* this method (this method is invoked by the constructor in this class, so initializers in subclasses will not have run when this overridden method is invoked.)
public BrooklynObjectInternal.ConfigurationSupportInternal config()
config
in interface BrooklynObjectInternal
config
in interface Configurable
public <T> T getConfig(ConfigKey<T> key)
@Deprecated public java.util.Map<ConfigKey<?>,java.lang.Object> getAllConfig()
@Deprecated public <T> T setConfig(ConfigKey<T> key, T val)
setConfig
in interface Configurable
@Beta @Deprecated public ConfigMap getConfigMap()
public java.lang.String getDisplayName()
BrooklynObject
getDisplayName
in interface BrooklynObject
@Deprecated public java.lang.String getName()
getName
in interface EntityAdjunct
public void setDisplayName(java.lang.String name)
setDisplayName
in class AbstractBrooklynObject
@Deprecated public void setName(java.lang.String name)
setDisplayName(String)
public void setEntity(EntityLocal entity)
public void destroy()
public boolean isDestroyed()
EntityAdjunct
isDestroyed
in interface EntityAdjunct
public boolean isRunning()
EntityAdjunct
isRunning
in interface EntityAdjunct
public java.lang.String getUniqueTag()
EntityAdjunct
This will be included in the call to #getTags()
.
getUniqueTag
in interface EntityAdjunct
public BrooklynObject.TagSupport tags()
BrooklynObject
ImmutableMap
may be used under the covers; also there is little point!);
and they should be amenable to our persistence (on-disk serialization) and our JSON serialization in the REST API.tags
in interface BrooklynObject
tags
in class AbstractBrooklynObject
public java.lang.String toString()
toString
in class java.lang.Object