Package org.apache.thrift

Examples of org.apache.thrift.TException


  @Override
  public void unwatchFlow(TSessionId sessionId, TFlowId flowId) throws TException {
    try {
      mExecEnv.unwatchFlow(SessionId.fromThrift(sessionId), FlowId.fromThrift(flowId));
    } catch (Exception e) {
      throw new TException(e);
    }
  }
View Full Code Here


      for (FlowId flowId : flowList) {
        outList.add(flowId.toThrift());
      }
      return outList;
    } catch (Exception e) {
      throw new TException(e);
    }
  }
View Full Code Here

  @Override
  public void setFlowName(TFlowId flowId, String name) throws TException {
    try {
      mExecEnv.setFlowName(FlowId.fromThrift(flowId), name);
    } catch (Exception e) {
      throw new TException(e);
    }
  }
View Full Code Here

      } else {
        mThriftServer.stop();
      }
      mStarted = false;
    } catch (Exception e) {
      throw new TException(e);
    }
  }
View Full Code Here

      verify(c, check(c, SystemPermission.SYSTEM));
      try {
        SystemPropUtil.removeSystemProperty(property);
      } catch (Exception e) {
        log.error("Problem removing config property in zookeeper", e);
        throw new TException(e.getMessage());
      }
    }
View Full Code Here

      verify(credentials, check(credentials, SystemPermission.SYSTEM));
      try {
        SystemPropUtil.setSystemProperty(property, value);
      } catch (Exception e) {
        log.error("Problem setting config property in zookeeper", e);
        throw new TException(e.getMessage());
      }
    }
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

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.