public interface IClusterConfig extends IPluginConfig
Entries at the top level are available as variables to plugins when the cluster is instantiated.
Suppose the cluster config has the key "mykey", value "myvalue". A plugin config contains
the key "pluginKey" with value "${mykey}.extra". When the instantiated IPlugin
invokes
IValueMap.getString(String)
, the value "myvalue.extra" will be returned.
In addition to these variables, the "cluster.id" variable has a value that is unique to the instantiated cluster. It can be used to create cluster-specific service names.
When the configuration has been obtained from an instantiated cluster with
IClusterControl.getClusterConfig()
, all variable expansion has been applied. The
configuration is read-only in that case.
Modifier and Type | Method and Description |
---|---|
List<IPluginConfig> |
getPlugins()
The plugin configurations in the cluster.
|
List<String> |
getProperties()
Properties that specify additional plugin behavior.
|
List<PropertyDescriptor> |
getPropertyDescriptors()
Descriptors of additional plugin properties.
|
List<String> |
getReferences()
The keys for services that are used by plugins in the cluster.
|
List<String> |
getServices()
The list of keys for services.
|
void |
setPlugins(List<IPluginConfig> plugins)
Update the plugins in the cluster.
|
getName, getPluginConfig, getPluginConfigSet
getAsBoolean, getAsBoolean, getAsDouble, getAsDouble, getAsDuration, getAsDuration, getAsEnum, getAsEnum, getAsEnum, getAsInteger, getAsInteger, getAsLong, getAsLong, getAsTime, getAsTime, getBoolean, getCharSequence, getDouble, getDouble, getDuration, getInt, getInt, getKey, getLong, getLong, getString, getString, getStringArray, getStringValue, getTime, isImmutable, makeImmutable
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
equals, hashCode, setObservationContext, startObservation, stopObservation
List<IPluginConfig> getPlugins()
void setPlugins(List<IPluginConfig> plugins)
List<String> getServices()
IRenderService
.
The returned list is only mutable when the configuration is used as a template.
List<String> getReferences()
The returned list is only mutable when the configuration is used as a template.
List<String> getProperties()
The returned list is only mutable when the configuration is used as a template.
List<PropertyDescriptor> getPropertyDescriptors()
Changes to the returned list have no effect on actual configuration.
Copyright © 2007–2017 Hippo B.V. (http://www.onehippo.com). All rights reserved.