public class ChefAttributeFeed extends AbstractFeed
To use this feed, you must provide the entity, the name of the node as it is known to Chef, and a collection of attribute sensors. The attribute sensors must follow the naming convention of starting with the string chef.attribute. followed by a period-separated path through the Chef attribute hierarchy. For example, an attribute sensor named chef.attribute.sql_server.instance_name would cause the feed to search for a Chef attribute called sql_server, and within that an attribute instance_name, and set the sensor to the value of this attribute.
This feed uses the knife tool to query all the attributes on a named node. It then iterates over the configured list of attribute sensors, using the sensor name to locate an equivalent Chef attribute. The sensor is then set to the value of the Chef attribute.
Example:
{@codeModifier and Type | Class and Description |
---|---|
static class |
ChefAttributeFeed.Builder |
AbstractEntityAdjunct.AdjunctTagSupport
BrooklynObject.TagSupport
Configurable.ConfigurationSupport
BrooklynObjectInternal.ConfigurationSupportInternal
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CHEF_ATTRIBUTE_PREFIX
Prefix for attribute sensor names.
|
static ConfigKey<java.lang.String> |
NODE_NAME |
static ConfigKey<java.util.Set<ChefAttributePollConfig<?>>> |
POLLS |
ONLY_IF_SERVICE_UP
Constructor and Description |
---|
ChefAttributeFeed()
For rebind; do not call directly; use builder
|
Modifier and Type | Method and Description |
---|---|
static ChefAttributeFeed.Builder |
builder() |
destroy, getEntity, getRebindSupport, isActivated, isActive, isRunning, isSuspended, resume, setEntity, start, stop, suspend
config, configure, getAllConfig, getConfig, getConfigMap, getDisplayName, getName, getUniqueTag, isDestroyed, setConfig, setDisplayName, setName, tags, toString
getCatalogItemId, getId, getManagementContext, getTagSupport, init, rebind, setCatalogItemId, setManagementContext
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getId, getName, getUniqueTag, isDestroyed
getCatalogItemId, getDisplayName, getTagSupport, tags
config, setConfig
setCatalogItemId
public static final java.lang.String CHEF_ATTRIBUTE_PREFIX
public static final ConfigKey<java.util.Set<ChefAttributePollConfig<?>>> POLLS
public static final ConfigKey<java.lang.String> NODE_NAME
public ChefAttributeFeed()
public static ChefAttributeFeed.Builder builder()