Examples of NullReturnedException


Examples of org.apache.blur.agent.exceptions.NullReturnedException

  @Override
  public void run() {
    try {
      Map<String, String> shardServerLayout = blurConnection.shardServerLayout(tableName);
      if (shardServerLayout == null) {
        throw new NullReturnedException("No server layout was returned!");
      }
      Map<String, ArrayList<String>> serverLayout = getServerLayout(shardServerLayout);
      this.database.updateTableServer(tableId, new ObjectMapper().writeValueAsString(serverLayout));

    } catch (BlurException e) {
View Full Code Here

Examples of org.apache.blur.agent.exceptions.NullReturnedException

  public void run() {
    try {
      TableStats tableStats = blurConnection.tableStats(this.tableName);

      if (tableStats == null) {
        throw new NullReturnedException("No table statistics were returned!");
      }

      this.database.updateTableStats(tableId, tableStats.getBytes(), tableStats.getRecordCount(),  tableStats.getRowCount());
    } catch (BlurException e) {
      log.error("Unable to get table stats for table [" + tableId + "].", e);
View Full Code Here

Examples of org.apache.blur.agent.exceptions.NullReturnedException

  public void run() {
    try {
      Schema schema = null;
      schema = blurConnection.schema(tableName);
      if (schema == null || descriptor == null) {
        throw new NullReturnedException("No Schema or Descriptor Defined!");
      }

      List<Family> columnDefs = getColumnDefinitions(schema);

      this.database.updateTableSchema(this.tableId, new ObjectMapper().writeValueAsString(columnDefs), "UNKNOWN");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.