public class IndexSizeTrigger extends TriggerBase
Modifier and Type | Class and Description |
---|---|
static class |
IndexSizeTrigger.IndexSizeEvent
Deprecated.
|
static class |
IndexSizeTrigger.Unit
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
static String |
ABOVE_BYTES_PROP
Deprecated.
|
static String |
ABOVE_DOCS_PROP
Deprecated.
|
static String |
ABOVE_OP_PROP
Deprecated.
|
static String |
ABOVE_SIZE_KEY
Deprecated.
|
static String |
BELOW_BYTES_PROP
Deprecated.
|
static String |
BELOW_DOCS_PROP
Deprecated.
|
static String |
BELOW_OP_PROP
Deprecated.
|
static String |
BELOW_SIZE_KEY
Deprecated.
|
static String |
BYTES_SIZE_KEY
Deprecated.
|
static String |
COLLECTIONS_PROP
Deprecated.
|
static String |
COMMIT_SIZE_KEY
Deprecated.
|
static int |
DEFAULT_MAX_OPS
Deprecated.
|
static String |
DOCS_SIZE_KEY
Deprecated.
|
static String |
MAX_DOC_KEY
Deprecated.
|
static String |
MAX_OPS_PROP
Deprecated.
|
static String |
SPLIT_BY_PREFIX
Deprecated.
|
static String |
SPLIT_FUZZ_PROP
Deprecated.
|
static String |
SPLIT_METHOD_PROP
Deprecated.
|
static String |
TOTAL_BYTES_SIZE_KEY
Deprecated.
|
static String |
VIOLATION_KEY
Deprecated.
|
actions, cloudManager, enabled, eventType, isClosed, lastState, loader, name, processorRef, properties, requiredProperties, stateManager, validProperties, waitForSecond
Constructor and Description |
---|
IndexSizeTrigger(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.
|
static long |
estimatedSize(long maxDoc,
long numDocs,
long commitSize)
Deprecated.
|
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 ABOVE_BYTES_PROP
public static final String ABOVE_DOCS_PROP
public static final String ABOVE_OP_PROP
public static final String BELOW_BYTES_PROP
public static final String BELOW_DOCS_PROP
public static final String BELOW_OP_PROP
public static final String COLLECTIONS_PROP
public static final String MAX_OPS_PROP
public static final String SPLIT_FUZZ_PROP
public static final String SPLIT_METHOD_PROP
public static final String SPLIT_BY_PREFIX
public static final String BYTES_SIZE_KEY
public static final String TOTAL_BYTES_SIZE_KEY
public static final String DOCS_SIZE_KEY
public static final String MAX_DOC_KEY
public static final String COMMIT_SIZE_KEY
public static final String ABOVE_SIZE_KEY
public static final String BELOW_SIZE_KEY
public static final String VIOLATION_KEY
public static final int DEFAULT_MAX_OPS
public IndexSizeTrigger(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()
public static long estimatedSize(long maxDoc, long numDocs, long commitSize)
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.