protected void waitForTableEnabled(final long deadlineTs) throws IOException, TimeoutException { waitForState(deadlineTs, new TableWaitForStateCallable() { @Override public boolean checkState(int tries) throws IOException { try { if (getAdmin().isTableAvailable(tableName)) { return true; } } catch (TableNotFoundException tnfe) { LOG.debug("Table " + tableName.getNameWithNamespaceInclAsString() + " was not enabled, sleeping. tries=" + tries); } return false; } }); }
protected void waitForSchemaUpdate(final long deadlineTs) throws IOException, TimeoutException { waitForState(deadlineTs, new TableWaitForStateCallable() { @Override public boolean checkState(int tries) throws IOException { return getAdmin().getAlterStatus(tableName).getFirst() == 0; } }); }
protected void waitForTableDisabled(final long deadlineTs) throws IOException, TimeoutException { waitForState(deadlineTs, new TableWaitForStateCallable() { @Override public boolean checkState(int tries) throws IOException { return getAdmin().isTableDisabled(tableName); } }); }
protected void waitTableNotFound(final long deadlineTs) throws IOException, TimeoutException { waitForState(deadlineTs, new TableWaitForStateCallable() { @Override public boolean checkState(int tries) throws IOException { return !getAdmin().tableExists(tableName); } }); }
protected void waitForTableEnabled(final long deadlineTs) throws IOException, TimeoutException { waitForState(deadlineTs, new TableWaitForStateCallable() { @Override public boolean checkState(int tries) throws IOException { try { if (getAdmin().isTableAvailable(tableName)) { return true; } } catch (TableNotFoundException tnfe) { LOG.debug("Table " + tableName.getNameWithNamespaceInclAsString() + " was not enabled, sleeping. tries=" + tries); } return false; } }); }
protected void waitTableNotFound(final long deadlineTs) throws IOException, TimeoutException { waitForState(deadlineTs, new TableWaitForStateCallable() { @Override public boolean checkState(int tries) throws IOException { return !getAdmin().tableExists(tableName); } }); }
protected void waitForTableDisabled(final long deadlineTs) throws IOException, TimeoutException { waitForState(deadlineTs, new TableWaitForStateCallable() { @Override public boolean checkState(int tries) throws IOException { return getAdmin().isTableDisabled(tableName); } }); }
protected void waitForSchemaUpdate(final long deadlineTs) throws IOException, TimeoutException { waitForState(deadlineTs, new TableWaitForStateCallable() { @Override public boolean checkState(int tries) throws IOException { return getAdmin().getAlterStatus(tableName).getFirst() == 0; } }); }
protected void waitForTableEnabled(final long deadlineTs) throws IOException, TimeoutException { waitForState(deadlineTs, new TableWaitForStateCallable() { @Override public boolean checkState(int tries) throws IOException { try { if (getAdmin().isTableAvailable(tableName)) { return true; } } catch (TableNotFoundException tnfe) { LOG.debug("Table " + tableName.getNameWithNamespaceInclAsString() + " was not enabled, sleeping. tries=" + tries); } return false; } }); }
protected void waitForTableDisabled(final long deadlineTs) throws IOException, TimeoutException { waitForState(deadlineTs, new TableWaitForStateCallable() { @Override public boolean checkState(int tries) throws IOException { return getAdmin().isTableDisabled(tableName); } }); }
protected void waitForSchemaUpdate(final long deadlineTs) throws IOException, TimeoutException { waitForState(deadlineTs, new TableWaitForStateCallable() { @Override public boolean checkState(int tries) throws IOException { return getAdmin().getAlterStatus(tableName).getFirst() == 0; } }); }
protected void waitTableNotFound(final long deadlineTs) throws IOException, TimeoutException { waitForState(deadlineTs, new TableWaitForStateCallable() { @Override public boolean checkState(int tries) throws IOException { return !getAdmin().tableExists(tableName); } }); }