Examples of DNodeStatusResponse


Examples of com.splout.db.dnode.beans.DNodeStatusResponse

          }
        };
        deployWait.start();
      }
      // Everything is asynchronous so this is quickly reached - it just means the process has started
      return JSONSerDe.ser(new DNodeStatusResponse("Ok. Deploy initiated"));
    } catch(Throwable t) {
      unexpectedException(t);
      throw new DNodeException(EXCEPTION_UNEXPECTED, t.getMessage());
    }
  }
View Full Code Here

Examples of com.splout.db.dnode.beans.DNodeStatusResponse

  @Override
  public String rollback(List<RollbackAction> rollbackActions, String ignoreMe) throws DNodeException {
    // The DNode doesn't need to do anything special for rolling back a version.
    // It can serve any version that is stored locally.
    try {
      return JSONSerDe.ser(new DNodeStatusResponse("Ok. Rollback order received."));
    } catch(JSONSerDeException e) {
      unexpectedException(e);
      throw new DNodeException(EXCEPTION_UNEXPECTED, e.getMessage());
    }
  }
View Full Code Here

Examples of com.splout.db.dnode.beans.DNodeStatusResponse

              log.error("Deploy Thread interrupted - continuing anyway.", e);
            }
          }
          deployThread = Executors.newFixedThreadPool(1);
        }
        return JSONSerDe.ser(new DNodeStatusResponse("Ok. Deploy cancelled."));
      } else {
        return JSONSerDe.ser(new DNodeStatusResponse("No deploy in progress."));
      }
    } catch(JSONSerDeException e) {
      unexpectedException(e);
      throw new DNodeException(EXCEPTION_UNEXPECTED, e.getMessage());
    }
View Full Code Here

Examples of com.splout.db.dnode.beans.DNodeStatusResponse

    try {
      // Publish new DNodeInfo in distributed registry.
      // This makes QNodes notice that a new version is available...
      // PartitionMap and ReplicationMap will be built incrementally as DNodes finish.
      dnodesRegistry.changeInfo(new DNodeInfo(config));
      return JSONSerDe.ser(new DNodeStatusResponse("Ok. Delete old versions executed."));
    } catch(JSONSerDeException e) {
      unexpectedException(e);
      throw new DNodeException(EXCEPTION_UNEXPECTED, e.getMessage());
    }
  }
View Full Code Here

Examples of com.splout.db.dnode.beans.DNodeStatusResponse

        log.error("Error while trying to connect to Hazelcast", e);
        throw new DNodeException(EXCEPTION_UNEXPECTED, e.getMessage());
      }
    }
    try {
      return JSONSerDe.ser(new DNodeStatusResponse("Ok. Test command " + commandStr
          + " received properly."));
    } catch(JSONSerDeException e) {
      unexpectedException(e);
      throw new DNodeException(EXCEPTION_UNEXPECTED, e.getMessage());
    }
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.