Examples of stop()


Examples of org.h2.test.utils.OutputCatcher.stop()

     * @param args the command line arguments
     */
    public static void main(String... args) throws Exception {
        OutputCatcher catcher = OutputCatcher.start();
        run(args);
        catcher.stop();
        catcher.writeTo("Test Output", "docs/html/testOutput.html");
    }

    private static void run(String... args) throws Exception {
        SelfDestructor.startCountdown(3 * 60);
 
View Full Code Here

Examples of org.h2.tools.Server.stop()

   private void stopRemoteDatabase() throws SQLException
   {
       final Server server = getRemoteServer() ;
       if (server != null)
       {
           server.stop() ;
       }
   }
  
   /**
    * Set the remote server instance.
View Full Code Here

Examples of org.hibernate.cache.infinispan.InfinispanRegionFactory.stop()

         assertEquals(EvictionStrategy.LRU, cacheCfg.getEvictionStrategy());
         assertEquals(3500, cacheCfg.getEvictionWakeUpInterval());
         assertEquals(25000, cacheCfg.getEvictionMaxEntries());
         assertFalse(cacheCfg.isExposeJmxStatistics());
      } finally {
         factory.stop();
      }
   }

   public void testBuildEntityCollectionRegionOverridesOnly() {
      CacheAdapter cache = null;
View Full Code Here

Examples of org.hibernate.jmx.HibernateService.stop()

    HibernateService hs = new HibernateService();
    hs.setJndiName("SessionFactory");
    hs.setMapResources("net/sf/hibernate/test/Simple.hbm.xml, net/sf/hibernate/test/Blobber.hbm.xml");
    hs.setShowSqlEnabled("true");
    hs.start();
    hs.stop();
    hs.setProperty("foo", "bar");
    hs.start();
    hs.stop();
  }
View Full Code Here

Examples of org.hive2hive.core.api.interfaces.IFileObserver.stop()

    // stop file observer
    IFileObserver fileObserver = menus.getFileObserverMenu().getFileObserver();
    if (fileObserver != null && fileObserver.isRunning()) {
      print("Stopping the file observer...");
      try {
        fileObserver.stop();
      } catch (Exception e) {
        printError(e);
      }
    }
  }
View Full Code Here

Examples of org.hornetq.api.core.client.ClientSession.stop()

      session.start();
      ClientConsumer consumer = session.createConsumer(ADDRESS);

      ClientMessage msg = consumer.receive(1000);
      Assert.assertEquals(1, msg.getDeliveryCount());
      session.stop();

      // if strictUpdate == true, this will simulate a crash, where the server is stopped without closing/rolling back
      // the session
      if (!strictUpdate)
      {
View Full Code Here

Examples of org.hornetq.api.core.management.AcceptorControl.stop()

      ClientSessionFactory sf = HornetQClient.createClientSessionFactory(new TransportConfiguration(InVMConnectorFactory.class.getName()));
      ClientSession session = sf.createSession(false, true, true);
      Assert.assertNotNull(session);
      session.close();

      acceptorControl.stop();

      Assert.assertFalse(acceptorControl.isStarted());

      try
      {
View Full Code Here

Examples of org.hornetq.api.core.management.BridgeControl.stop()

      BridgeControl bridgeControl = createBridgeControl(bridgeConfig.getName(), mbeanServer);

      // started by the server
      Assert.assertTrue(bridgeControl.isStarted());

      bridgeControl.stop();
      Assert.assertFalse(bridgeControl.isStarted());

      bridgeControl.start();
      Assert.assertTrue(bridgeControl.isStarted());
   }
View Full Code Here

Examples of org.hornetq.api.core.management.BroadcastGroupControl.stop()

      BroadcastGroupControl broadcastGroupControl = createManagementControl(broadcastGroupConfig.getName());

      // started by the server
      Assert.assertTrue(broadcastGroupControl.isStarted());

      broadcastGroupControl.stop();
      Assert.assertFalse(broadcastGroupControl.isStarted());

      broadcastGroupControl.start();
      Assert.assertTrue(broadcastGroupControl.isStarted());
   }
View Full Code Here

Examples of org.hornetq.api.core.management.ClusterConnectionControl.stop()

      ClusterConnectionControl clusterConnectionControl = createManagementControl(clusterConnectionConfig1.getName());

      // started by the server
      Assert.assertTrue(clusterConnectionControl.isStarted());

      clusterConnectionControl.stop();
      Assert.assertFalse(clusterConnectionControl.isStarted());

      clusterConnectionControl.start();
      Assert.assertTrue(clusterConnectionControl.isStarted());
   }
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.