public class SearchRateTrigger extends TriggerBase
TriggerEventType.SEARCHRATE
event.Modifier and Type | Class and Description |
---|---|
static class |
SearchRateTrigger.SearchRateEvent
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
static String |
ABOVE_NODE_OP_PROP
Deprecated.
|
static String |
ABOVE_NODE_RATE_PROP
Deprecated.
|
static String |
ABOVE_OP_PROP
Deprecated.
|
static String |
ABOVE_RATE_PROP
Deprecated.
|
static String |
BC_COLLECTION_PROP
Deprecated.
|
static String |
BC_RATE_PROP
Deprecated.
|
static String |
BELOW_NODE_OP_PROP
Deprecated.
|
static String |
BELOW_NODE_RATE_PROP
Deprecated.
|
static String |
BELOW_OP_PROP
Deprecated.
|
static String |
BELOW_RATE_PROP
Deprecated.
|
static String |
COLD_COLLECTIONS
Deprecated.
|
static String |
COLD_NODES
Deprecated.
|
static String |
COLD_REPLICAS
Deprecated.
|
static String |
COLD_SHARDS
Deprecated.
|
static String |
COLLECTIONS_PROP
Deprecated.
|
static int |
DEFAULT_MAX_OPS
Deprecated.
|
static String |
DEFAULT_METRIC
Deprecated.
|
static String |
HOT_COLLECTIONS
Deprecated.
|
static String |
HOT_NODES
Deprecated.
|
static String |
HOT_REPLICAS
Deprecated.
|
static String |
HOT_SHARDS
Deprecated.
|
static String |
MAX_OPS_PROP
Deprecated.
|
static String |
METRIC_PROP
Deprecated.
|
static String |
MIN_REPLICAS_PROP
Deprecated.
|
static String |
VIOLATION_PROP
Deprecated.
|
actions, cloudManager, enabled, eventType, isClosed, lastState, loader, name, processorRef, properties, requiredProperties, stateManager, validProperties, waitForSecond
Constructor and Description |
---|
SearchRateTrigger(String name)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
configure(SolrResourceLoader loader,
SolrCloudManager cloudManager,
Map<String,Object> properties)
Deprecated.
Called when trigger is created but before it's initialized or scheduled for use.
|
protected Map<String,Object> |
getState()
Deprecated.
Prepare and return internal state of this trigger in a format suitable for persisting in ZK.
|
void |
restoreState(AutoScaling.Trigger old)
Deprecated.
Set internal state of this trigger from another instance.
|
void |
run()
Deprecated.
|
protected void |
setState(Map<String,Object> state)
Deprecated.
Restore internal state of this trigger from properties retrieved from ZK.
|
close, deepCopyState, equals, getActions, getEventType, getName, getProcessor, getProperties, getRequiredProperties, getValidProperties, getWaitForSecond, hashCode, init, isClosed, isEnabled, restoreState, saveState, setProcessor
public static final String COLLECTIONS_PROP
public static final String METRIC_PROP
public static final String MAX_OPS_PROP
public static final String MIN_REPLICAS_PROP
public static final String ABOVE_RATE_PROP
public static final String BELOW_RATE_PROP
public static final String ABOVE_NODE_RATE_PROP
public static final String BELOW_NODE_RATE_PROP
public static final String ABOVE_OP_PROP
public static final String BELOW_OP_PROP
public static final String ABOVE_NODE_OP_PROP
public static final String BELOW_NODE_OP_PROP
public static final String BC_COLLECTION_PROP
public static final String BC_RATE_PROP
public static final String HOT_NODES
public static final String HOT_COLLECTIONS
public static final String HOT_SHARDS
public static final String HOT_REPLICAS
public static final String COLD_NODES
public static final String COLD_COLLECTIONS
public static final String COLD_SHARDS
public static final String COLD_REPLICAS
public static final String VIOLATION_PROP
public static final int DEFAULT_MAX_OPS
public static final String DEFAULT_METRIC
public SearchRateTrigger(String name)
public void configure(SolrResourceLoader loader, SolrCloudManager cloudManager, Map<String,Object> properties) throws TriggerValidationException
AutoScaling.Trigger
configure
in interface AutoScaling.Trigger
configure
in class TriggerBase
properties
- configuration propertiesTriggerValidationException
- contains details of invalid configuration parameters.protected Map<String,Object> getState()
TriggerBase
getState
in class TriggerBase
Utils.toJSON(Object)
.protected void setState(Map<String,Object> state)
TriggerBase
setState
in class TriggerBase
state
- never null but may be empty.public void restoreState(AutoScaling.Trigger old)
AutoScaling.Trigger
public void run()
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.