Examples of stop()


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

      DiscoveryGroupControl discoveryGroupControl = createManagementControl(discoveryGroupConfig.getName());

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

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

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

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

            }

        } else if (STOP.equals(operationName)) {
            control = getHornetQComponentControl(context, operation, true);
            try {
                control.stop();
                appliedToRuntime = true;
                context.getResult();
            } catch (Exception e) {
                context.getFailureDescription().set(e.getLocalizedMessage());
            }
View Full Code Here

Examples of org.hornetq.core.cluster.DiscoveryGroup.stop()

      List<DiscoveryEntry> entries = dg.getDiscoveryEntries();
      assertEqualsDiscoveryEntries(Arrays.asList(live1), entries);

      bg.stop();

      dg.stop();

   }
  
   public void testSimpleBroadcastSpecificNIC() throws Exception
   {
View Full Code Here

Examples of org.hornetq.core.cluster.impl.DiscoveryGroupImpl.stop()

      bg2.stop();
      bg3.stop();

      dg1.stop();
      dg2.stop();
      dg3.stop();
   }

//   -- fix this test
//   public void testBroadcastNullBackup() throws Exception
//   {
View Full Code Here

Examples of org.hornetq.core.deployers.impl.FileDeploymentManager.stop()

      {
         Assert.assertEquals(file.toURI().toURL(), deployer.deployedUrl);
         deployer.deployedUrl = null;
         fdm.start();
         Assert.assertNull(deployer.deployedUrl);
         fdm.stop();

      }
      finally
      {
         file.delete();
View Full Code Here

Examples of org.hornetq.core.journal.Journal.stop()

         try
         {
            // files should be already in place.
            filesReservedForSync.remove(jc);
            registerJournal(jc.typeByte, journal);
            journal.stop();
            journal.start();
            journal.loadSyncOnly(JournalState.SYNCING_UP_TO_DATE);
         }
         finally
         {
View Full Code Here

Examples of org.hornetq.core.journal.impl.JournalImpl.stop()

         {
            jrn.appendDeleteRecord(info.id, false);
         }
      }

      jrn.stop();

      server = createServer(true,
                            config,
                            PagingTest.PAGE_SIZE,
                            PagingTest.PAGE_MAX,
View Full Code Here

Examples of org.hornetq.core.journal.impl.TimedBuffer.stop()

            Assert.assertEquals(UnitTestCase.getSamplebyte(i), flushedBuffer.get());
         }
      }
      finally
      {
         timedBuffer.stop();
      }

   }

   public void testTimingAndFlush() throws Exception
View Full Code Here

Examples of org.hornetq.core.paging.PagingStore.stop()

      // this is not supposed to throw an exception.
      // As you could have start being called twice as Stores are dynamically
      // created, on a multi-thread environment
      storeImpl.start();

      storeImpl.stop();

   }

   public void testPageWithNIO() throws Exception
   {
View Full Code Here

Examples of org.hornetq.core.paging.impl.PagingStoreImpl.stop()

      // this is not supposed to throw an exception.
      // As you could have start being called twice as Stores are dynamically
      // created, on a multi-thread environment
      storeImpl.start();

      storeImpl.stop();

   }

   public void testPageWithNIO() throws Exception
   {
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.