Package backtype.storm.generated

Examples of backtype.storm.generated.NotAliveException


    }

    window = UIUtils.getWindow(ctx);

    if (topologyid == null) {
      throw new NotAliveException("Input topologyId is null ");
    }

    init();
  }
View Full Code Here


      taskid = ctx.getExternalContext().getRequestParameterMap()
          .get("taskid");
    }

    if (topologyid == null) {
      throw new NotAliveException("Input topologyId is null ");
    }
    if (taskid == null) {
      throw new NotAliveException("Input taskId is null ");
    }

    NimbusClient client = null;

    try {
      if(clusterName != null && !(clusterName.equals(""))) {
        UIUtils.getClusterInfoByName(conf, clusterName);
      }
     
      client = NimbusClient.getConfiguredClient(conf);

      TopologyInfo summ = client.getClient().getTopologyInfo(topologyid);

      // find the specified task entity
      TaskSummary taskSummary = null;
      for (TaskSummary _taskSummary : summ.get_tasks()) {
        if (taskid.equals(String.valueOf(_taskSummary.get_task_id()))) {
          taskSummary = _taskSummary;
          break;
        }
      }

      if (taskSummary == null) {
        throw new NotAliveException("topologyid=" + topologyid
            + ", taskid=" + taskid);
      }

      ComponentTask componentTask = UIUtils.getComponentTask(taskSummary,
          topologyid);
View Full Code Here

      taskid = (String) ctx.getExternalContext().getRequestParameterMap()
          .get("taskid");
    }

    if (topologyid == null) {
      throw new NotAliveException("Input topologyId is null ");
    }

    window = UIUtils.getWindow(ctx);
    init();
  }
View Full Code Here

      TopologyInfo summ = client.getClient().getTopologyInfo(topologyid);

      List<TaskSummary> ts = summ.get_tasks();
      if (ts == null) {
        throw new NotAliveException("No TaskSummary");
      }
      TaskSummary t = null;
      if (ts != null) {
        int tssize = ts.size();
        for (int i = 0; i < tssize; i++) {
View Full Code Here

    }

    window = UIUtils.getWindow(ctx);

    if (topologyid == null) {
      throw new NotAliveException("Input topologyId is null ");
    }

    init();
  }
View Full Code Here

    LOG.info("Window:" + window);

    if (topologyid == null) {

      LOG.error("Not set topologyid");
      throw new NotAliveException("Input topologyId is null ");

    }

    init();
  }
View Full Code Here

   */
  private void getComponents(List<TaskSummary> ts, StormTopology topology)
      throws NotAliveException {
    if (ts == null) {
      LOG.error("Task list is empty");
      throw new NotAliveException("Task list is empty");
    }

    Map<String, List<TaskSummary>> spoutTasks = new HashMap<String, List<TaskSummary>>();
    Map<String, List<TaskSummary>> boltTasks = new HashMap<String, List<TaskSummary>>();

View Full Code Here

TOP

Related Classes of backtype.storm.generated.NotAliveException

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.