Class ActionContext
- java.lang.Object
-
- org.apache.solr.cloud.autoscaling.ActionContext
-
- All Implemented Interfaces:
MapSerializable
,MapWriter
,NavigableObject
public class ActionContext extends Object implements MapWriter
Provides additional context for the TriggerAction such as the trigger instance on which the action is being executed as well as helper methods to pass computed information along to the next action
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.solr.common.MapWriter
MapWriter.EntryWriter
-
-
Constructor Summary
Constructors Constructor Description ActionContext(SolrCloudManager cloudManager, AutoScaling.Trigger source, Map<String,Object> properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SolrCloudManager
getCloudManager()
Map<String,Object>
getProperties()
Object
getProperty(String name)
AutoScaling.Trigger
getSource()
void
writeMap(MapWriter.EntryWriter ew)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.solr.common.NavigableObject
_forEachEntry, _forEachEntry, _forEachEntry, _get, _get, _getStr, _getStr
-
-
-
-
Constructor Detail
-
ActionContext
public ActionContext(SolrCloudManager cloudManager, AutoScaling.Trigger source, Map<String,Object> properties)
-
-
Method Detail
-
getCloudManager
public SolrCloudManager getCloudManager()
-
getSource
public AutoScaling.Trigger getSource()
-
writeMap
public void writeMap(MapWriter.EntryWriter ew) throws IOException
- Specified by:
writeMap
in interfaceMapWriter
- Throws:
IOException
-
-