public class TriggerExecutor
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static TriggerExecutor |
instance |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<Mutation> |
execute(java.util.Collection<? extends IMutation> mutations)
Takes a collection of mutations and possibly augments it by adding extra mutations
generated by configured triggers.
|
PartitionUpdate |
execute(PartitionUpdate updates)
Augment a partition update by executing triggers to generate an intermediate
set of mutations, then merging the update from each mutation with those
supplied.
|
ITrigger |
loadTriggerInstance(java.lang.String triggerClass) |
void |
reloadClasses()
Reload the triggers which is already loaded, Invoking this will update
the class loader so new jars can be loaded.
|
public static final TriggerExecutor instance
public void reloadClasses()
public PartitionUpdate execute(PartitionUpdate updates) throws InvalidRequestException
updates
- partition update to be applied, contains the merge of the original
update and any generated mutationsInvalidRequestException
- if any mutation generated by a trigger does not
apply to the exact same partition as the initial updatepublic java.util.Collection<Mutation> execute(java.util.Collection<? extends IMutation> mutations) throws InvalidRequestException
mutations
- initial collection of mutationsInvalidRequestException
- if additional mutations were generated, but
the initial mutations contains counter updatespublic ITrigger loadTriggerInstance(java.lang.String triggerClass) throws java.lang.Exception
java.lang.Exception
Copyright © 2009-2022 The Apache Software Foundation