Examples of serve()


Examples of Acme.Serve.Serve.serve()

        srv.destroyAllServlets();
      }
    }));
    Thread exposerThread = new Thread("ContextExposer") {
      public void run() {
        srv.serve();
      }
    };
    exposerThread.setDaemon(true);
    exposerThread.setPriority(Thread.MIN_PRIORITY);
    exposerThread.start();
View Full Code Here

Examples of com.claymus.site.module.page.Page.serve()

    List<List<Block>> blocks = new LinkedList<List<Block>>();
    String[][] blockLocations = ThemeData.getTheme().getLocations();
    for(String[] location : blockLocations)
      blocks.add(BlockData.getBlocks(location[1], uri, userRoleKey));

    page.serve(contents, blocks, ThemeData.getTheme());
  }

}
View Full Code Here

Examples of com.cloudera.flume.master.FlumeMaster.serve()

  private void startMaster() {
    LOG.info("Starting standalone Flume master.");
    mFlumeConf.set("flume.master.store", "memory");
    FlumeMaster master = new FlumeMaster(mFlumeConf, false);
    try {
      master.serve();
      mFlumeMaster = master;
    } catch (IOException ioe) {
      LOG.error("IOException starting Flume master: " + ioe);
    }
  }
View Full Code Here

Examples of com.facebook.presto.hive.shaded.org.apache.thrift.server.TServer.serve()

      HMSHandler.LOG.info("TCP keepalive = " + tcpKeepAlive);

      if (startLock != null) {
        signalOtherThreadsToStart(tServer, startLock, startCondition, startedServing);
      }
      tServer.serve();
    } catch (Throwable x) {
      x.printStackTrace();
      HMSHandler.LOG.error(StringUtils.stringifyException(x));
      throw x;
    }
View Full Code Here

Examples of com.facebook.presto.hive.shaded.org.apache.thrift.server.TThreadPoolServer.serve()

      HMSHandler.LOG.info("TCP keepalive = " + tcpKeepAlive);

      if (startLock != null) {
        signalOtherThreadsToStart(tServer, startLock, startCondition, startedServing);
      }
      tServer.serve();
    } catch (Throwable x) {
      x.printStackTrace();
      HMSHandler.LOG.error(StringUtils.stringifyException(x));
      throw x;
    }
View Full Code Here

Examples of com.facebook.thrift.direct_server.TDirectServer.serve()

    final TDirectServer server =
        TDirectServer.asHsHaServer(PORT, NUM_THREADS, MAX_PENDING, proc);
    new Thread() {
      @Override
      public void run() {
        server.serve();
      }
    }.start();
    final int NUM_ITERS = 20, MS_PER_ITER = 100;
    for (int i = 0; i < NUM_ITERS; i++) {
      try {
View Full Code Here

Examples of com.facebook.thrift.server.TServer.serve()

    Hbase.Processor processor = new Hbase.Processor(handler);
    TServerTransport serverTransport = new TServerSocket(port);
    TProtocolFactory protFactory = new TBinaryProtocol.Factory(true, true);
    TServer server = new TThreadPoolServer(processor, serverTransport,
      protFactory);
    server.serve();
  }
 
  /**
   * @param args
   * @throws Exception
View Full Code Here

Examples of com.facebook.thrift.server.TServer.serve()

               new TTransportFactory(), new TTransportFactory(),
               new TBinaryProtocol.Factory(), new TBinaryProtocol.Factory(), options);

      ThriftMetaStoreHandler.LOG.info("Starting the metaserver on port [" + port + "]...");

      server.serve();

    } catch (Exception x) {
      x.printStackTrace();
    }
  }
View Full Code Here

Examples of com.facebook.thrift.server.TServer.serve()

      FacebookService.Processor processor = new ThriftHive.Processor(handler);
      TThreadPoolServer.Options options = new TThreadPoolServer.Options();
      TServer server = new TThreadPoolServer(processor, serverTransport,
          new TTransportFactory(), new TTransportFactory(),
          new TBinaryProtocol.Factory(), new TBinaryProtocol.Factory(), options);
      server.serve();
      HiveServerHandler.LOG.info("Started the new hive server on port " + port);
    } catch (Exception x) {
      x.printStackTrace();
    }
  }
View Full Code Here

Examples of com.facebook.thrift.server.TServer.serve()

          new TTransportFactory(), new TTransportFactory(),
          new TBinaryProtocol.Factory(), new TBinaryProtocol.Factory(), options);
      HMSHandler.LOG.info("Started the new metaserver on port [" + port + "]...");
      HMSHandler.LOG.info("Options.minWorkerThreads = " + options.minWorkerThreads);
      HMSHandler.LOG.info("Options.maxWorkerThreads = " + options.maxWorkerThreads);
      server.serve();
    } catch (Exception x) {
      x.printStackTrace();
    }
  }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.