public class BaseExecutionResultHandler extends AbstractExecutionResultHandler
Simple 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, onThrowable
public void onQueryValidationException(com.datastax.driver.core.exceptions.QueryValidationException e, OutputCollector collector, Tuple tuple)
Invoked when a 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)
Invoked when a 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)
Invoked when a 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)
Invoked when a UnavailableException
is thrown.
e
- the cassandra exception.collector
- the storm collector.tuple
- an input tuple.public void onQuerySuccess(OutputCollector collector, Tuple tuple)
Invoked when a query is executed with success. This method is NOT responsible for acknowledging input tuple.
collector
- the storm collector.tuple
- an input tuple.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. 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 © 2019 The Apache Software Foundation. All Rights Reserved.