Package com.splunk.shuttl.server.mbeans

Examples of com.splunk.shuttl.server.mbeans.ShuttlServer


          "../jetty/shuttl.xml").toURI().toURL());
      configuration.configure(server);

      // TODO: Replace paths relative to /bin/
      server.setHandler(new WebAppContext("../webapps/shuttl", "/shuttl"));
      ShuttlServer servermbean = new ShuttlServer();
      Connector connectors[] = server.getConnectors();
      for (Connector c : connectors) {
        logger.debug("Connector Name: " + c.getName());
        logger.debug("  host: " + c.getHost());
        logger.debug("  port: " + c.getPort());
        if (c.getName().equals("Splunk.Shuttl.Http")) {
          c.setPort(servermbean.getHttpPort());
        }
      }
      StartUpCleaner.create().clean();
      server.start();
    } catch (Exception e) {
View Full Code Here


  static void registerMBeans(File confDir) {
    registerByNameAndClass(ShuttlArchiverMBean.OBJECT_NAME,
        ShuttlArchiver.createWithConfDirectory(confDir));
    registerByNameAndClass(JMXSplunkMBean.OBJECT_NAME,
        JMXSplunk.createWithConfDirectory(confDir));
    registerByNameAndClass(ShuttlServer.OBJECT_NAME, new ShuttlServer(confDir));
  }
View Full Code Here

TOP

Related Classes of com.splunk.shuttl.server.mbeans.ShuttlServer

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.