Class AutoScalingConfig.TriggerConfig
- java.lang.Object
-
- org.apache.solr.client.solrj.cloud.autoscaling.AutoScalingConfig.TriggerConfig
-
- All Implemented Interfaces:
MapSerializable,MapWriter,NavigableObject
- Enclosing class:
- AutoScalingConfig
public static class AutoScalingConfig.TriggerConfig extends Object implements MapWriter
Bean representation of trigger config.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.solr.common.MapWriter
MapWriter.EntryWriter
-
-
Field Summary
Fields Modifier and Type Field Description List<AutoScalingConfig.ActionConfig>actionsList of configured actions, never null.booleanenabledEnabled flag.TriggerEventTypeeventTrigger event type.StringnameTrigger name.Map<String,Object>propertiesMap of additional trigger properties, never null.
-
Constructor Summary
Constructors Constructor Description TriggerConfig(String name, Map<String,Object> properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringtoString()AutoScalingConfig.TriggerConfigwithEnabled(boolean enabled)Create a copy of this config with specified enabled flag.AutoScalingConfig.TriggerConfigwithProperty(String key, Object value)Create a copy of this config with specified property.voidwriteMap(MapWriter.EntryWriter ew)-
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.solr.common.NavigableObject
_forEachEntry, _forEachEntry, _forEachEntry, _get, _get, _getStr, _getStr
-
-
-
-
Field Detail
-
name
public final String name
Trigger name.
-
event
public final TriggerEventType event
Trigger event type.
-
enabled
public final boolean enabled
Enabled flag.
-
actions
public final List<AutoScalingConfig.ActionConfig> actions
List of configured actions, never null.
-
-
Method Detail
-
withEnabled
public AutoScalingConfig.TriggerConfig withEnabled(boolean enabled)
Create a copy of this config with specified enabled flag.- Parameters:
enabled- true when enabled, false otherwise.- Returns:
- modified copy of the configuration
-
withProperty
public AutoScalingConfig.TriggerConfig withProperty(String key, Object value)
Create a copy of this config with specified property.- Parameters:
key- property namevalue- property value- Returns:
- modified copy of the configuration
-
writeMap
public void writeMap(MapWriter.EntryWriter ew) throws IOException
- Specified by:
writeMapin interfaceMapWriter- Throws:
IOException
-
-