Examples of stop()


Examples of org.jboss.com.sun.net.httpserver.HttpServer.stop()

        } catch (Exception e) {
            ByteArrayOutputStream baos = new ByteArrayOutputStream();
            e.printStackTrace(new PrintStream(baos));
            Assert.assertTrue(baos.toString().contains("SocketTimeoutException: Read timed out"));
        }
        httpServer.stop(0);
    }

    @Test
    public void authentication() throws Exception {
        HttpServer httpServer = HttpServer.create(new InetSocketAddress(8100), 10);
View Full Code Here

Examples of org.jboss.com.sun.net.httpserver.HttpsServer.stop()

            test (false, "https", root+"/test1", httpsport, "largefile.txt", 2730088);
            System.out.println ("OK");
        } finally {
            delay();
            s1.stop(2);
            s2.stop(2);
            executor.shutdown ();
        }
    }

    static void test (boolean fixedLen, String protocol, String root, int port, String f, int size) throws Exception {
View Full Code Here

Examples of org.jboss.dashboard.commons.misc.Chronometer.stop()

        try {
            // Ensure data retrieved is refreshed.
            Chronometer crono = new Chronometer();
            crono.start();
            DataSet ds = dataProvider.refreshDataSet();
            crono.stop();
            elapsedTime = crono.elapsedTime();
            nrows = 0;
            if (ds != null && ds.getProperties().length > 0) nrows = ds.getRowCount();
            loadAttemptOk = true;
        } catch (Exception e) {
View Full Code Here

Examples of org.jboss.deployers.spi.management.deploy.DeploymentManager.stop()

    DeploymentManager deploymentManager = getConnection()
        .getDeploymentManager();
   
    log.debug("Stopping deployment [" + this.deploymentUrl + "]..."); //$NON-NLS-1$ //$NON-NLS-2$
    DeploymentProgress progress = deploymentManager
        .stop(this.deploymentUrl);
    DeploymentStatus stopStatus = DeploymentUtils.run(progress);
    if (stopStatus.isFailed()) {
      log.error("Failed to stop deployment '" + this.deploymentUrl //$NON-NLS-1$
          + "'.", stopStatus.getFailure()); //$NON-NLS-1$
View Full Code Here

Examples of org.jboss.dna.common.statistic.Stopwatch.stop()

            // Get the root ...
            sw.start();
            Node<JcrNodePayload, JcrPropertyPayload> root = cache.findNode(null, path("/"));
            root.getPath();
            root.getPayload(); // forces a load
            sw.stop();

            // Walk the infos for nodes under the root (this is recursive) ...
            walkInfosForNodesUnder(root, sw);
            System.out.println("Statistics for walking nodes using SessionCache: " + sw.getSimpleStatistics() + "  -> "
                               + super.numberOfConnections);
View Full Code Here

Examples of org.jboss.ejb3.Ejb3Deployment.stop()

      if(deployment == null)
         return;

      try
      {
         deployment.stop();
      }
      catch(Exception e)
      {
         log.warn("Failed to stop deployment " + deployment, e);
      }
View Full Code Here

Examples of org.jboss.ejb3.ProxyFactory.stop()

   public void stop() throws Exception
   {
      for (int i = 0; i < proxyFactories.size(); i++)
      {
         ProxyFactory factory = (ProxyFactory) proxyFactories.get(i);
         factory.stop();
      }
   }
}
View Full Code Here

Examples of org.jboss.forge.container.addons.AddonRegistry.stop()

      try
      {
         repository.disable(addonToUndeploy);
         Addon addonToStop = registry.getAddon(addonToUndeploy);
         registry.stop(addonToStop);
         Addons.waitUntilStopped(addonToStop);
      }
      catch (Exception e)
      {
         throw new DeploymentException("Failed to undeploy " + addonToUndeploy, e);
View Full Code Here

Examples of org.jboss.forge.furnace.Furnace.stop()

      ClassLoader addonClassLoader = projectsAddon.getClassLoader().loadClass(Addon.class.getName()).getClassLoader();
      ClassLoader appClassLoader = Addon.class.getClassLoader();
      Assert.assertNotEquals(appClassLoader, addonClassLoader);

      Assert.assertTrue(projectsAddon.getStatus().isStarted());
      furnace.stop();
   }

}
View Full Code Here

Examples of org.jboss.forge.furnace.lifecycle.AddonLifecycleProvider.stop()

                  }
                  catch (Throwable e)
                  {
                     logger.log(Level.FINE, "Failed to execute pre-shutdown task for [" + addon + "]", e);
                  }
                  lifecycleProvider.stop(addon);
                  return null;
               }
            });
         }
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.