本文整理了Java中org.mortbay.jetty.Server.join()
方法的一些代码示例,展示了Server.join()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Server.join()
方法的具体详情如下:
包路径:org.mortbay.jetty.Server
类名称:Server
方法名:join
暂无
代码示例来源:origin: tjake/Solandra
public void stop() throws Exception
{
if( server.isRunning() ) {
server.stop();
server.join();
}
}
代码示例来源:origin: twitter/ambrose
server.join();
} catch (Exception e) {
LOG.error("Error launching ScriptStatusServer", e);
代码示例来源:origin: mapsforge/mapsforge
@After
public final void afterTest() throws Exception {
try {
this.server.stop();
this.server.join();
} finally {
FileUtils.deleteDirectory(this.httpRoot);
}
}
代码示例来源:origin: org.apache.cassandra.deps/avro
@Override
public void join() throws InterruptedException {
server.join();
}
}
代码示例来源:origin: org.apache.avro/avro-ipc
@Override
public void join() throws InterruptedException {
server.join();
}
}
代码示例来源:origin: com.github.jiayuhan-it/hadoop-common
public void join() throws InterruptedException {
webServer.join();
}
代码示例来源:origin: com.facebook.hadoop/hadoop-core
public void join() throws InterruptedException {
webServer.join();
}
代码示例来源:origin: com.ebay.jetstream/jetstreamcore
public void join() {
try {
getServer().join();
}
catch (InterruptedException e) {
LOGGER.warn( e.getMessage());
}
}
代码示例来源:origin: org.xworker/xworker_core
public void run(){
try {
aserver.start();
aserver.join();
} catch (Exception e) {
logger.error("Start jetty server error", e);
}
}
}).start();
代码示例来源:origin: org.apache.jackrabbit/jackrabbit-standalone
public void run() {
try {
message("Shutting down the server...");
server.stop();
server.join();
message("-------------------------------");
message("Goodbye from Apache Jackrabbit!");
} catch (Exception e) {
e.printStackTrace();
}
}
});
代码示例来源:origin: org.dspace.dependencies.solr/dspace-solr-server
public void stop() throws Exception
{
if( server.isRunning() ) {
server.stop();
server.join();
}
}
代码示例来源:origin: opoo/opoopress
@Override
protected void executeInternal(SiteConfigImpl config, SiteImpl site) throws MojoExecutionException, MojoFailureException {
Server server = createJettyServer(site);
try {
server.start();
onServerStart(site, server);
server.join();
} catch (Exception e) {
throw new MojoExecutionException("Start server failed: " + e.getMessage(), e);
}
}
}
代码示例来源:origin: NGDATA/lilyproject
/**
* Restarts the servlet container without throwing away the data.
*/
public void restartServletContainer() throws Exception {
server.stop();
server.join();
// Somehow restarting the same server object does not work, so create a new one
server = createServer();
server.start();
}
代码示例来源:origin: aseldawy/spatialhadoop2
/**
* Create an HTTP web server (using Jetty) that will stay running to answer
* all queries
* @throws Exception
*/
private static void startServer() throws Exception {
int port = 8890;
Server server = new Server(port);
server.setHandler(new DavinciServer());
server.start();
server.join();
}
代码示例来源:origin: aseldawy/spatialhadoop2
/**
* Create an HTTP web server (using Jetty) that will stay running to answer
* all queries
* @throws Exception
*/
private static void startServer() throws Exception {
int port = 8889;
Server server = new Server(port);
server.setHandler(new DaVinciServerV2());
server.start();
server.join();
}
代码示例来源:origin: org.mortbay.jetty/jetty-embedded
public static void main(String[] args)
throws Exception
{
Server server = new Server();
Connector connector=new SocketConnector();
connector.setPort(8080);
server.setConnectors(new Connector[]{connector});
Handler handler=new HelloHandler();
server.setHandler(handler);
server.start();
server.join();
}
代码示例来源:origin: org.mortbay.jetty/jetty-embedded
public static void main(String[] args)
throws Exception
{
Server server = new Server(8080);
Context context = new Context(server,"/",Context.SESSIONS);
context.addServlet(new ServletHolder(new HelloServlet()), "/*");
server.start();
server.join();
}
代码示例来源:origin: org.mortbay.jetty/jetty-embedded
public static void main(String[] args)
throws Exception
{
Server server = new Server();
Connector connector=new SocketConnector();
connector.setPort(8080);
server.setConnectors(new Connector[]{connector});
ServletHandler handler=new ServletHandler();
server.setHandler(handler);
handler.addServletWithMapping("org.mortbay.jetty.example.MinimalServlets$HelloServlet", "/");
server.start();
server.join();
}
代码示例来源:origin: apache/commons-vfs
public void shutdown() throws Exception, InterruptedException {
message("Shutting down the server...");
server.setGracefulShutdown(5);
server.stop();
Logger.getRootLogger().removeAppender(jackrabbitAppender);
Logger.getLogger("org.mortbay.log").removeAppender(jettyAppender);
jackrabbitAppender.close();
jettyAppender.close();
server.join();
message("-------------------------------");
message("Goodbye from Apache Jackrabbit!");
}
代码示例来源:origin: org.apache.commons/commons-vfs2
public void shutdown() throws Exception, InterruptedException {
message("Shutting down the server...");
server.setGracefulShutdown(5);
server.stop();
Logger.getRootLogger().removeAppender(jackrabbitAppender);
Logger.getLogger("org.mortbay.log").removeAppender(jettyAppender);
jackrabbitAppender.close();
jettyAppender.close();
server.join();
message("-------------------------------");
message("Goodbye from Apache Jackrabbit!");
}
内容来源于网络,如有侵权,请联系作者删除!