while (EnvironmentEdgeManager.currentTime() < deadlineTs) { actualRegCount.set(0); MetaTableAccessor.scanMetaForTableRegions(getAdmin().getConnection(), visitor, desc.getTableName()); if (actualRegCount.get() == numRegs) { Thread.sleep(getAdmin().getPauseTime(tries++)); } catch (InterruptedException e) { throw new InterruptedIOException("Interrupted when opening" + " regions; "
@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; } });
while (EnvironmentEdgeManager.currentTime() < deadlineTs) { actualRegCount.set(0); MetaTableAccessor.scanMetaForTableRegions(getAdmin().getConnection(), visitor, desc.getTableName()); if (actualRegCount.get() == numRegs) { Thread.sleep(getAdmin().getPauseTime(tries++)); } catch (InterruptedException e) { throw new InterruptedIOException("Interrupted when opening" + " regions; "
while (EnvironmentEdgeManager.currentTime() < deadlineTs) { actualRegCount.set(0); MetaTableAccessor.scanMetaForTableRegions(getAdmin().getConnection(), visitor, desc.getTableName()); if (actualRegCount.get() == numRegs) { Thread.sleep(getAdmin().getPauseTime(tries++)); } catch (InterruptedException e) { throw new InterruptedIOException("Interrupted when opening" + " regions; "
@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; } });
@Override public boolean checkState(int tries) throws IOException { return getAdmin().getAlterStatus(tableName).getFirst() == 0; } });
@Override public boolean checkState(int tries) throws IOException { return !getAdmin().tableExists(tableName); } });
@Override public boolean checkState(int tries) throws IOException { return getAdmin().isTableDisabled(tableName); } });
/** * @return the table descriptor */ protected TableDescriptor getTableDescriptor() throws IOException { return getAdmin().getDescriptor(getTableName()); }
@Override public boolean checkState(int tries) throws IOException { return getAdmin().isTableDisabled(tableName); } });
@Override public boolean checkState(int tries) throws IOException { return !getAdmin().tableExists(tableName); } });
@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; } });
/** * @return the table descriptor */ protected TableDescriptor getTableDescriptor() throws IOException { return getAdmin().getDescriptor(getTableName()); }
@Override public boolean checkState(int tries) throws IOException { return getAdmin().getAlterStatus(tableName).getFirst() == 0; } });
@Override public boolean checkState(int tries) throws IOException { return getAdmin().getAlterStatus(tableName).getFirst() == 0; } });
@Override public boolean checkState(int tries) throws IOException { return getAdmin().isTableDisabled(tableName); } });
@Override public boolean checkState(int tries) throws IOException { return !getAdmin().tableExists(tableName); } });
/** * @return the table descriptor */ protected TableDescriptor getTableDescriptor() throws IOException { return getAdmin().getDescriptor(getTableName()); }