Package com.salesforce.hbase.index.exception

Examples of com.salesforce.hbase.index.exception.SingleIndexWriteFailureException


            throwFailureIfDone();
            table.batch(mutations);
          } catch (SingleIndexWriteFailureException e) {
            throw e;
          } catch (IOException e) {
            throw new SingleIndexWriteFailureException(tableReference.toString(), mutations, e);
          } catch (InterruptedException e) {
            // reset the interrupt status on the thread
            Thread.currentThread().interrupt();
            throw new SingleIndexWriteFailureException(tableReference.toString(), mutations, e);
          }
          return null;
        }

        private void throwFailureIfDone() throws SingleIndexWriteFailureException {
          if (this.isBatchFailed() || Thread.currentThread().isInterrupted()) {
            throw new SingleIndexWriteFailureException(
                "Pool closed, not attempting to write to the index!", null);
          }

        }
      });
View Full Code Here


    try {
      throw throwable;
    } catch (SingleIndexWriteFailureException e1) {
      throw e1;
    } catch (Throwable e1) {
      throw new SingleIndexWriteFailureException(
          "Got an abort notification while writing to the index!", e1);
    }

  }
View Full Code Here

        }

        private void throwFailureIfDone() throws SingleIndexWriteFailureException {
          if (stopped.isStopped() || abortable.isAborted()
              || Thread.currentThread().isInterrupted()) {
            throw new SingleIndexWriteFailureException(
                "Pool closed, not attempting to write to the index!", null);
          }

        }
      });
View Full Code Here

TOP

Related Classes of com.salesforce.hbase.index.exception.SingleIndexWriteFailureException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.