Class JavaClusterConfig
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<K,V>
-
- java.util.LinkedHashMap<String,Object>
-
- org.apache.wicket.util.value.ValueMap
-
- org.hippoecm.frontend.plugin.config.impl.JavaPluginConfig
-
- org.hippoecm.frontend.plugin.config.impl.JavaClusterConfig
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,Object>
,org.apache.wicket.util.io.IClusterable
,org.apache.wicket.util.value.IValueMap
,IObservable
,IClusterConfig
,IPluginConfig
public class JavaClusterConfig extends JavaPluginConfig implements IClusterConfig
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Constructor Summary
Constructors Constructor Description JavaClusterConfig()
JavaClusterConfig(IClusterConfig upstream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPlugin(IPluginConfig config)
void
addProperty(String key)
void
addReference(String key)
void
addService(String key)
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.-
Methods inherited from class org.hippoecm.frontend.plugin.config.impl.JavaPluginConfig
entrySet, equals, getName, getObservationContext, getPluginConfig, getPluginConfigSet, hashCode, newPluginConfig, put, putAll, setObservationContext, startObservation, stopObservation
-
Methods inherited from class org.apache.wicket.util.value.ValueMap
add, clear, getAsBoolean, getAsBoolean, getAsDouble, getAsDouble, getAsDuration, getAsDuration, getAsEnum, getAsEnum, getAsEnum, getAsInstant, getAsInteger, getAsInteger, getAsLong, getAsLong, getAsTime, getBoolean, getCharSequence, getDouble, getDouble, getDuration, getInstant, getInt, getInt, getKey, getLong, getLong, getString, getString, getStringArray, getStringValue, isImmutable, makeImmutable, remove, toString
-
Methods inherited from class java.util.LinkedHashMap
containsValue, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
-
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, putIfAbsent, remove, replace, replace, size
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.hippoecm.frontend.model.event.IObservable
equals, hashCode, setObservationContext, startObservation, stopObservation
-
Methods inherited from interface org.hippoecm.frontend.plugin.config.IPluginConfig
getName, getPluginConfig, getPluginConfigSet
-
Methods inherited from interface org.apache.wicket.util.value.IValueMap
getAsBoolean, getAsBoolean, getAsDouble, getAsDouble, getAsDuration, getAsDuration, getAsEnum, getAsEnum, getAsEnum, getAsInstant, getAsInteger, getAsInteger, getAsLong, getAsLong, getAsTime, getBoolean, getCharSequence, getDouble, getDouble, getDuration, getInstant, getInt, getInt, getKey, getLong, getLong, getString, getString, getStringArray, getStringValue, isImmutable, makeImmutable
-
Methods inherited from interface java.util.Map
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
-
-
-
-
Constructor Detail
-
JavaClusterConfig
public JavaClusterConfig()
-
JavaClusterConfig
public JavaClusterConfig(IClusterConfig upstream)
-
-
Method Detail
-
addPlugin
public void addPlugin(IPluginConfig config)
-
getPlugins
public List<IPluginConfig> getPlugins()
Description copied from interface:IClusterConfig
The plugin configurations in the cluster. Returns an immutable list of plugins.- Specified by:
getPlugins
in interfaceIClusterConfig
-
setPlugins
public void setPlugins(List<IPluginConfig> plugins)
Description copied from interface:IClusterConfig
Update the plugins in the cluster. Only available when the the configuration is used as a template for the cluster configuration.- Specified by:
setPlugins
in interfaceIClusterConfig
-
addService
public void addService(String key)
-
getServices
public List<String> getServices()
Description copied from interface:IClusterConfig
The list of keys for services. Since service types are not available, it is recommended to always use well-known keys when they exist. I.e. use "wicket.id" to identify anIRenderService
.The returned list is only mutable when the configuration is used as a template.
- Specified by:
getServices
in interfaceIClusterConfig
-
addReference
public void addReference(String key)
-
getReferences
public List<String> getReferences()
Description copied from interface:IClusterConfig
The keys for services that are used by plugins in the cluster.The returned list is only mutable when the configuration is used as a template.
- Specified by:
getReferences
in interfaceIClusterConfig
-
addProperty
public void addProperty(String key)
-
getProperties
public List<String> getProperties()
Description copied from interface:IClusterConfig
Properties that specify additional plugin behavior.The returned list is only mutable when the configuration is used as a template.
- Specified by:
getProperties
in interfaceIClusterConfig
-
getPropertyDescriptors
public List<PropertyDescriptor> getPropertyDescriptors()
Description copied from interface:IClusterConfig
Descriptors of additional plugin properties.Changes to the returned list have no effect on actual configuration.
- Specified by:
getPropertyDescriptors
in interfaceIClusterConfig
-
-