public class BaseExecutionResultHandler extends AbstractExecutionResultHandler
ExecutionResultHandler which fail the incoming tuple when an
DriverException is thrown.
The exception is then automatically report to storm.| Constructor and Description |
|---|
BaseExecutionResultHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
onDriverException(com.datastax.driver.core.exceptions.DriverException e,
OutputCollector collector,
Tuple tuple)
This method is called when an one of the methods of the
BaseExecutionResultHandler is not
overridden. |
void |
onQuerySuccess(OutputCollector collector,
Tuple tuple)
Invoked when a query is executed with success.
|
void |
onQueryValidationException(com.datastax.driver.core.exceptions.QueryValidationException e,
OutputCollector collector,
Tuple tuple)
Invoked when a
QueryValidationException is thrown. |
void |
onReadTimeoutException(com.datastax.driver.core.exceptions.ReadTimeoutException e,
OutputCollector collector,
Tuple tuple)
Invoked when a
ReadTimeoutException is thrown. |
void |
onUnavailableException(com.datastax.driver.core.exceptions.UnavailableException e,
OutputCollector collector,
Tuple tuple)
Invoked when a
UnavailableException is thrown. |
void |
onWriteTimeoutException(com.datastax.driver.core.exceptions.WriteTimeoutException e,
OutputCollector collector,
Tuple tuple)
Invoked when a
WriteTimeoutException is thrown. |
onThrowable, onThrowablepublic void onQueryValidationException(com.datastax.driver.core.exceptions.QueryValidationException e,
OutputCollector collector,
Tuple tuple)
QueryValidationException is thrown.e - the cassandra exception.collector - the storm collector.tuple - an input tuple.public void onReadTimeoutException(com.datastax.driver.core.exceptions.ReadTimeoutException e,
OutputCollector collector,
Tuple tuple)
ReadTimeoutException is thrown.e - the cassandra exception.collector - the storm collector.tuple - an input tuple.public void onWriteTimeoutException(com.datastax.driver.core.exceptions.WriteTimeoutException e,
OutputCollector collector,
Tuple tuple)
WriteTimeoutException is thrown.e - the cassandra exception.collector - the storm collector.tuple - an input tuple.public void onUnavailableException(com.datastax.driver.core.exceptions.UnavailableException e,
OutputCollector collector,
Tuple tuple)
UnavailableException is thrown.e - the cassandra exception.collector - the storm collector.tuple - an input tuple.public void onQuerySuccess(OutputCollector collector, Tuple tuple)
collector - the storm collector.tuple - an input tuple.protected void onDriverException(com.datastax.driver.core.exceptions.DriverException e,
OutputCollector collector,
Tuple tuple)
BaseExecutionResultHandler is not
overridden. It can be practical if you want to bundle some/all of the methods to a single method.e - the exception throwscollector - the output collectortuple - the tuple in failureCopyright © 2023 The Apache Software Foundation. All rights reserved.