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, AbstractEntityAdjunct.BasicSubscriptionSupport
BrooklynObject.RelationSupport<T extends BrooklynObject>, BrooklynObject.SubscriptionSupport, BrooklynObject.TagSupport
Configurable.ConfigurationSupport
BrooklynObjectInternal.ConfigurationSupportInternal, BrooklynObjectInternal.RelationSupportInternal<T extends BrooklynObject>, BrooklynObjectInternal.SubscriptionSupportInternal
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
HIGHLIGHT_NAME_LAST_ACTION, HIGHLIGHT_NAME_LAST_CONFIRMATION, HIGHLIGHT_NAME_LAST_VIOLATION, HIGHLIGHT_NAME_TRIGGERS
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, isRunning, isSuspended, relations, resume, setEntity, start, stop, suspend
config, configure, getAdjunctType, getConfig, getDisplayName, getExecutionContext, getHighlights, getManagementContext, getUniqueTag, isDestroyed, setDisplayName, setHighlights, subscriptions, tags, toString
addSearchPath, getCatalogItemId, getCatalogItemIdSearchPath, getId, init, rebind, setCatalogItemId, setCatalogItemIdAndSearchPath, setManagementContext, stackCatalogItemId
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getHighlights, getId, getUniqueTag, isDestroyed
getCatalogItemId, getCatalogItemIdSearchPath, getDisplayName, subscriptions, tags
config, getConfig
addSearchPath, setCatalogItemId, setCatalogItemIdAndSearchPath, stackCatalogItemId
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()