Package eu.stratosphere.nephele.protocols

Examples of eu.stratosphere.nephele.protocols.ExtendedManagementProtocol


    }
   

    @Override
    public void run() {
      ExtendedManagementProtocol jobManagerConnection = null;

      try {
        jobManagerConnection = RPC.getProxy(ExtendedManagementProtocol.class,
          this.jobManagerAddress, NetUtils.getSocketFactory());

        this.instances = jobManagerConnection.getMapOfAvailableInstanceTypes();
        if (this.instances == null) {
          throw new IOException("Returned instance map was <null>");
        }
      } catch (Throwable t) {
        this.error = t;
View Full Code Here


      System.out.println("Error: Specify the status of the jobs to list.");
      printHelpForList();
      return 1;
    }
   
    ExtendedManagementProtocol jmConn = null;
    try {
      jmConn = getJobManagerConnection(line);
      if (jmConn == null) {
        printHelpForList();
        return 1;
      }
     
      List<RecentJobEvent> recentJobs = jmConn.getRecentJobs();
     
      ArrayList<RecentJobEvent> runningJobs = null;
      ArrayList<RecentJobEvent> scheduledJobs = null;
      if (running) {
        runningJobs = new ArrayList<RecentJobEvent>();
View Full Code Here

      System.out.println("Error: Specify a Job ID to cancel a job.");
      printHelpForCancel();
      return 1;
    }
   
    ExtendedManagementProtocol jmConn = null;
    try {
      jmConn = getJobManagerConnection(line);
      if (jmConn == null) {
        printHelpForCancel();
        return 1;
      }
     
      jmConn.cancelJob(jobId);
      return 0;
    }
    catch (Throwable t) {
      return handleError(t);
    }
View Full Code Here

  @Override
  protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
    //resp.setContentType("application/json");
   
    ExtendedManagementProtocol jmConn = null;
    try {
     
      jmConn = getJMConnection();
      List<RecentJobEvent> recentJobs = jmConn.getRecentJobs();
     
      ArrayList<RecentJobEvent> jobs = new ArrayList<RecentJobEvent>(recentJobs);
     
      resp.setStatus(HttpServletResponse.SC_OK);
      PrintWriter wrt = resp.getWriter();
View Full Code Here

TOP

Related Classes of eu.stratosphere.nephele.protocols.ExtendedManagementProtocol

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.