Package org.apache.flink.runtime.protocols

Examples of org.apache.flink.runtime.protocols.ExtendedManagementProtocol


  @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


      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

TOP

Related Classes of org.apache.flink.runtime.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.