Package org.apache.thrift

Examples of org.apache.thrift.TException


    public void heartbeat(HeartbeatRequest ids)
        throws NoSuchLockException, NoSuchTxnException, TxnAbortedException, TException {
      try {
        getTxnHandler().heartbeat(ids);
      } catch (MetaException e) {
        throw new TException(e);
      }
    }
View Full Code Here


    public HeartbeatTxnRangeResponse heartbeat_txn_range(HeartbeatTxnRangeRequest rqst)
      throws TException {
      try {
        return getTxnHandler().heartbeatTxnRange(rqst);
      } catch (MetaException e) {
        throw new TException(e);
      }
    }
View Full Code Here

    @Override
    public void compact(CompactionRequest rqst) throws TException {
      try {
        getTxnHandler().compact(rqst);
      } catch (MetaException e) {
        throw new TException(e);
      }
    }
View Full Code Here

    @Override
    public ShowCompactResponse show_compact(ShowCompactRequest rqst) throws TException {
      try {
        return getTxnHandler().showCompact(rqst);
      } catch (MetaException e) {
        throw new TException(e);
      }
    }
View Full Code Here

        });
        try {
            latch.await();
            return ref.get();
        } catch (Exception e) {
            throw new TException("failed to generate response", e);
        }
    }
View Full Code Here

    try {
      getConnector(login).tableOperations().clearLocatorCache(tableName);
    } catch (TableNotFoundException e) {
      throw new org.apache.accumulo.proxy.thrift.TableNotFoundException(e.toString());
    } catch (Exception e) {
      throw new TException(e.toString());
    }
  }
View Full Code Here

  @Override
  public boolean tableExists(ByteBuffer login, String tableName) throws TException {
    try {
      return getConnector(login).tableOperations().exists(tableName);
    } catch (Exception e) {
      throw new TException(e);
    }
  }
View Full Code Here

  @Override
  public Set<String> listTables(ByteBuffer login) throws TException {
    try {
      return getConnector(login).tableOperations().list();
    } catch (Exception e) {
      throw new TException(e);
    }
  }
View Full Code Here

  @Override
  public Map<String,String> tableIdMap(ByteBuffer login) throws TException {
    try {
      return getConnector(login).tableOperations().tableIdMap();
    } catch (Exception e) {
      throw new TException(e);
    }
  }
View Full Code Here

  @Override
  public List<String> getTabletServers(ByteBuffer login) throws TException {
    try {
      return getConnector(login).instanceOperations().getTabletServers();
    } catch (Exception e) {
      throw new TException(e);
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.thrift.TException

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.