Package org.hornetq.api.core

Examples of org.hornetq.api.core.HornetQIllegalStateException


         throw e;
      }
      catch (Throwable e)
      {
         HornetQServerLogger.LOGGER.errorAckingMessage((Exception) e);
         HornetQException hqex = new HornetQIllegalStateException(e.getMessage());
         if (startedTransaction)
         {
            tx.rollback();
         }
         else
View Full Code Here


         throw new HornetQAlreadyReplicatingException();
      }

      if (!isStarted())
      {
         throw new HornetQIllegalStateException();
      }

      synchronized (replicationLock)
      {
View Full Code Here

   {
      ByteBuffer id = ByteBuffer.allocateDirect(16);
      int read = channel.read(id, 3);
      if (read != 16)
      {
         throw new HornetQIllegalStateException("live server did not write id to file");
      }
      byte[] bytes = new byte[16];
      id.position(0);
      id.get(bytes);
      setUUID(new UUID(UUID.TYPE_TIME_BASED, bytes));
View Full Code Here

      for (ClusterConnectionConfiguration clusterConf : conf.getClusterConfigurations())
      {
         if (replicationCluster.equals(clusterConf.getName()))
            return clusterConf;
      }
      throw new HornetQIllegalStateException("Missing cluster-configuration for replication-cluster-name '" +
               replicationCluster + "'.");
   }
View Full Code Here

         Map<SimpleString, Collection<Integer>> pageFilesToSync;
         storageManagerLock.writeLock().lock();
         try
         {
            if (isReplicated())
               throw new HornetQIllegalStateException("already replicating");
            replicator = replicationManager;

            // Establishes lock
            originalMessageJournal.synchronizationLock();
            originalBindingsJournal.synchronizationLock();
View Full Code Here

         throw e;
      }
      catch (Throwable e)
      {
         HornetQServerLogger.LOGGER.errorAckingMessage((Exception) e);
         HornetQException hqex = new HornetQIllegalStateException(e.getMessage());
         if (startedTransaction)
         {
            tx.rollback();
         }
         else
View Full Code Here

      if (state == STATE.INITIALIZED)
         return;
      synchronized (stateGuard)
      {
         if (state == STATE.CLOSING)
            throw new HornetQIllegalStateException();

      try
      {
         state = STATE.INITIALIZED;
         latch = new CountDownLatch(1);
View Full Code Here

      if (state == STATE.INITIALIZED)
         return;
      synchronized (stateGuard)
      {
         if (state == STATE.CLOSING)
            throw new HornetQIllegalStateException();
         try
         {
            state = STATE.INITIALIZED;
            latch = new CountDownLatch(1);
View Full Code Here

         throw e;
      }
      catch (Throwable e)
      {
         HornetQServerLogger.LOGGER.errorAckingMessage((Exception) e);
         HornetQException hqex = new HornetQIllegalStateException(e.getMessage());
         if (startedTransaction)
         {
            tx.rollback();
         }
         else
View Full Code Here

   {
      try
      {
         if (channel == null)
         {
            throw new HornetQIllegalStateException("File " + this.getFileName() + " has a null channel");
         }
         int bytesRead = channel.read(bytes);

         if (callback != null)
         {
View Full Code Here

TOP

Related Classes of org.hornetq.api.core.HornetQIllegalStateException

Copyright © 2018 www.massapicom. 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.