Examples of shutdown()


Examples of org.apache.tomcat.util.threads.DedicatedThreadExecutor.shutdown()

            }
           
        } finally {
            // Unbinding thread
            unbindThread(oldCCL);
            temporaryExecutor.shutdown();
        }

        // Set available status depending upon startup success
        if (ok) {
            if (log.isDebugEnabled())
View Full Code Here

Examples of org.apache.turbine.services.logging.LoggingService.shutdown()

     */
    public static void destroy()
    {
        LoggingService logger = (LoggingService)TurbineServices.getInstance()
            .getService(LoggingService.SERVICE_NAME);
        logger.shutdown();
    }

    /**
     * This method returns default logger for Turbine System
     *
 
View Full Code Here

Examples of org.apache.tuscany.core.client.TuscanyRuntime.shutdown()

        // Disassociate the runtime from this thread
        tuscany.stop();

        // Shut down the runtime
        tuscany.shutdown();
    }
}
View Full Code Here

Examples of org.apache.velocity.texen.Generator.shutdown()

            generator.setOutputEncoding("UTF-8");
            generator.setInputEncoding("UTF-8");
            generator.setOutputPath(outputDir);
            generator.setTemplatePath(templateDir);
            generator.parse(mainPage, context);
            generator.shutdown();
           
        } catch (Exception e) {
            log.error("ERROR generating planet", e);
        }
    }
View Full Code Here

Examples of org.apache.ws.notification.subscription.SubscriptionTableManager.shutdown()

      table.addSubscription( xsub5 );

      assertEquals( "3 subscriptions should have been left", 3,
                    table.getSubscribers( sub1.getResourceProps(  ).getTopicExpression(  ) ).length );

      mgr.shutdown(  );

      return;
   }

   /**
 
View Full Code Here

Examples of org.apache.xindice.client.xmldb.services.DatabaseInstanceManager.shutdown()

         col = DatabaseManager.getCollection( colstring );

         DatabaseInstanceManager man = (DatabaseInstanceManager)col.getService("DatabaseInstanceManager",XMLDBAPIVERSION);

         // Shutdown the server
         man.shutdown();

      } finally {
         if ( col != null ) {
            col.close();
         }
View Full Code Here

Examples of org.apache.xmlrpc.WebServer.shutdown()

        LOG.log(Level.INFO, "Num Crawls: [" + this.numCrawls + "]");
        LOG.log(Level.INFO, "Total time spent crawling: ["
                + (this.milisCrawling / 1000.0) + "] seconds");
        LOG.log(Level.INFO, "Average Crawl Time: ["
                + (this.getAverageCrawlTime() / 1000.0) + "] seconds");
        server.shutdown();
    }

    public double getAverageCrawlTime() {
        return (1.0 * milisCrawling) / (1.0 * numCrawls);
    }
View Full Code Here

Examples of org.apache.xmlrpc.webserver.ServletWebServer.shutdown()

                }
                Thread.sleep(1000);
            }
            assertTrue (evtRec.isCalled());
        } finally {
            server.shutdown();
        }
    }
   
    public class EventReceiver extends HttpServlet {
        private boolean called = false;
View Full Code Here

Examples of org.apache.zookeeper.server.NIOServerCnxnFactory.shutdown()

    for (int i = 0; i < standaloneServerFactoryList.size(); i++) {
      NIOServerCnxnFactory standaloneServerFactory =
        standaloneServerFactoryList.get(i);
      int clientPort = clientPortList.get(i);

      standaloneServerFactory.shutdown();
      if (!waitForServerDown(clientPort, CONNECTION_TIMEOUT)) {
        throw new IOException("Waiting for shutdown of standalone server");
      }
    }
View Full Code Here

Examples of org.apache.zookeeper.server.ServerCnxnFactory.shutdown()

        zks.sessionTracker = new MySessionTracker();
        PrepRequestProcessor processor = new PrepRequestProcessor(zks, new MyRequestProcessor());
        Request foo = new Request(null, 1l, 1, OpCode.create, ByteBuffer.allocate(3), null);
        processor.pRequest(foo);
        testEnd.await(5, java.util.concurrent.TimeUnit.SECONDS);
        f.shutdown();
        zks.shutdown();
    }

    private class MyRequestProcessor implements RequestProcessor {
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.