Package com.alibaba.wasp.util

Examples of com.alibaba.wasp.util.InfoServer


    // Put up info server.
    int port = this.conf.getInt(FConstants.MASTER_INFO_PORT, FConstants.DEFAULT_MASTER_INFOPORT);
    if (port >= 0) {
      String a = this.conf.get("wasp.master.info.bindAddress", "0.0.0.0");
      this.infoServer = new InfoServer(MASTER, a, port, false, this.conf);
      this.infoServer.addServlet("status", "/master-status",
          FMasterStatusServlet.class);
      this.infoServer.addServlet("dump", "/dump", FMasterDumpServlet.class);
      this.infoServer.setAttribute(MASTER, this);
      this.infoServer.start();
View Full Code Here


    // check if auto port bind enabled
    boolean auto = this.conf.getBoolean(FConstants.FSERVER_INFO_PORT_AUTO,
        false);
    while (true) {
      try {
        this.infoServer = new InfoServer("fserver", addr, port, false,
            this.conf);
        this.infoServer.addServlet("status", "/fs-status",
            FSStatusServlet.class);
        this.infoServer.addServlet("dump", "/dump", FSDumpServlet.class);
        this.infoServer.setAttribute(FSERVER, this);
View Full Code Here

TOP

Related Classes of com.alibaba.wasp.util.InfoServer

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.