Package com.alibaba.wasp

Examples of com.alibaba.wasp.MetaException


      meta.put(p);
      if (LOG.isDebugEnabled()) {
        LOG.debug("FMeta Put " + p);
      }
    } catch (IOException e) {
      throw new MetaException(e);
    } finally {
      closeHTable(meta);
    }
  }
View Full Code Here


      if (LOG.isDebugEnabled()) {
        LOG.debug("FMeta Get " + get);
      }
      return meta.get(get);
    } catch (IOException e) {
      throw new MetaException(e);
    } finally {
      closeHTable(meta);
    }
  }
View Full Code Here

      if (LOG.isDebugEnabled()) {
        LOG.debug("FMeta Delete " + delete);
      }
      meta.delete(delete);
    } catch (IOException e) {
      throw new MetaException(e);
    } finally {
      closeHTable(meta);
    }
  }
View Full Code Here

      meta.delete(allDelete);
      if (LOG.isDebugEnabled()) {
        LOG.debug("FMeta Delete " + allDelete);
      }
    } catch (IOException e) {
      throw new MetaException(e);
    } finally {
      closeHTable(meta);
    }
  }
View Full Code Here

      if (LOG.isDebugEnabled()) {
        LOG.debug("FMeta " + get + " exists " + "=" + ex);
      }
      return ex;
    } catch (IOException e) {
      throw new MetaException(e);
    } finally {
      closeHTable(meta);
    }
  }
View Full Code Here

        desc.addCoprocessor(WaspAggregateImplementation.class.getName());
      }
      createStorageTable(desc);
    } catch (IOException e) {
      LOG.error("Failed to create table.", e);
      throw new MetaException(e);
    }
  }
View Full Code Here

      } finally {
        admin.close();
      }
    } catch (MasterNotRunningException e) {
      LOG.error("Failed to delete table.", e);
      throw new MetaException(e);
    } catch (ZooKeeperConnectionException e) {
      LOG.error("Failed to delete table.", e);
      throw new MetaException(e);
    } catch (IOException e) {
      LOG.error("Failed to delete table.", e);
      throw new MetaException(e);
    }
  }
View Full Code Here

      } finally {
        admin.close();
      }
    } catch (MasterNotRunningException e) {
      LOG.error("Failed to create index table.", e);
      throw new MetaException(e);
    } catch (ZooKeeperConnectionException e) {
      LOG.error("Failed to create index table.", e);
      throw new MetaException(e);
    } catch (IOException e) {
      LOG.error("Failed to create index table.", e);
      throw new MetaException(e);
    }
  }
View Full Code Here

    for (int tries = 0; tries < maxRetries; ++tries) {
      try {
        return fMetaServices.getTableEntityGroups(rootName);
      } catch (MetaException me) {
        if (tries == maxRetries - 1) {
          throw new MetaException(" RetriesExhaustedException ", me);
        }
        LOG.info("RetryCount " + tries, me);
      }
      try {
        Thread.sleep(ConnectionUtils.getPauseTime(pause, tries));
      } catch (InterruptedException e) {
        Thread.currentThread().interrupt();
        throw new MetaException("Giving up after tries=" + tries, e);
      }
    }
    return new ArrayList<EntityGroupInfo>(0);
  }
View Full Code Here

    for (int tries = 0; tries < maxRetries; ++tries) {
      try {
        return fMetaServices.getTableEntityGroups(rootName);
      } catch (MetaException me) {
        if (tries == maxRetries - 1) {
          throw new MetaException(" RetriesExhaustedException ", me);
        }
        LOG.info("RetryCount " + tries, me);
      }
      try {
        Thread.sleep(ConnectionUtils.getPauseTime(pause, tries));
      } catch (InterruptedException e) {
        Thread.currentThread().interrupt();
        throw new MetaException("Giving up after tries=" + tries, e);
      }
    }
    return new ArrayList<EntityGroupInfo>(0);
  }
View Full Code Here

TOP

Related Classes of com.alibaba.wasp.MetaException

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.