Class JcrClusterConfig
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- org.hippoecm.frontend.model.map.AbstractValueMap
-
- org.hippoecm.frontend.plugin.config.impl.JcrPluginConfig
-
- org.hippoecm.frontend.plugin.config.impl.JcrClusterConfig
-
- All Implemented Interfaces:
Serializable
,Map<String,Object>
,org.apache.wicket.model.IDetachable
,org.apache.wicket.util.io.IClusterable
,org.apache.wicket.util.value.IValueMap
,IObservable
,IClusterConfig
,IPluginConfig
public class JcrClusterConfig extends JcrPluginConfig 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>
-
-
Field Summary
-
Fields inherited from class org.hippoecm.frontend.plugin.config.impl.JcrPluginConfig
nodeModel
-
-
Constructor Summary
Constructors Constructor Description JcrClusterConfig(JcrNodeModel nodeModel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<Map.Entry<String,Object>>
entrySet()
boolean
equals(Object other)
Equivalence of observables; observation will only be started on one instance.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.int
hashCode()
void
setPlugins(List<IPluginConfig> plugins)
Update the plugins in the cluster.void
startObservation()
When the firstIObserver
of this observable is registered with the observer registry, observation is started.void
stopObservation()
When the lastIObserver
unregisters, observation is stopped.-
Methods inherited from class org.hippoecm.frontend.plugin.config.impl.JcrPluginConfig
clear, detach, get, getBoolean, getCharSequence, getDouble, getDouble, getDuration, getInstant, getInt, getInt, getKey, getLong, getLong, getName, getNodeModel, getObservationContext, getPluginConfig, getPluginConfigSet, getString, getString, getStringArray, getStringValue, isImmutable, makeImmutable, put, setObservationContext, sync, toString, unwrap, unwrapConfig, wrap, wrapConfig
-
Methods inherited from class org.hippoecm.frontend.model.map.AbstractValueMap
add, getAsBoolean, getAsBoolean, getAsDouble, getAsDouble, getAsDuration, getAsDuration, getAsEnum, getAsEnum, getAsEnum, getAsInstant, getAsInteger, getAsInteger, getAsLong, getAsLong, getAsTime, putAll, remove
-
Methods inherited from class java.util.AbstractMap
clone, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.hippoecm.frontend.model.event.IObservable
setObservationContext
-
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, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
-
-
-
Constructor Detail
-
JcrClusterConfig
public JcrClusterConfig(JcrNodeModel nodeModel)
-
-
Method Detail
-
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
-
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
-
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
-
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
-
equals
public boolean equals(Object other)
Description copied from interface:IObservable
Equivalence of observables; observation will only be started on one instance.- Specified by:
equals
in interfaceIObservable
- Specified by:
equals
in interfaceMap<String,Object>
- Overrides:
equals
in classJcrPluginConfig
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceIObservable
- Specified by:
hashCode
in interfaceMap<String,Object>
- Overrides:
hashCode
in classJcrPluginConfig
- See Also:
IObservable.equals(Object)
-
startObservation
public void startObservation()
Description copied from interface:IObservable
When the firstIObserver
of this observable is registered with the observer registry, observation is started. Implementations must notify observers until observation is stopped.An implementation should register listeners with external data sources, when appropriate. It is possible for an observable to register as an observer for another observable.
- Specified by:
startObservation
in interfaceIObservable
- Overrides:
startObservation
in classJcrPluginConfig
-
stopObservation
public void stopObservation()
Description copied from interface:IObservable
When the lastIObserver
unregisters, observation is stopped. Any listeners or observers registered by the observable must be unregistered by the implementation.- Specified by:
stopObservation
in interfaceIObservable
- Overrides:
stopObservation
in classJcrPluginConfig
-
-