Examples of IDBlock


Examples of org.activiti.engine.impl.db.IdBlock

      .getPropertyManager()
      .findPropertyById("next.dbid");
    long oldValue = Long.parseLong(property.getValue());
    long newValue = oldValue+idBlockSize;
    property.setValue(Long.toString(newValue));
    return new IdBlock(oldValue, newValue-1);
  }
View Full Code Here

Examples of org.activiti.engine.impl.db.IdBlock

      .getPropertyEntityManager()
      .findPropertyById("next.dbid");
    long oldValue = Long.parseLong(property.getValue());
    long newValue = oldValue+idBlockSize;
    property.setValue(Long.toString(newValue));
    return new IdBlock(oldValue, newValue-1);
  }
View Full Code Here

Examples of org.camunda.bpm.engine.impl.db.IdBlock

      .getPropertyManager()
      .findPropertyById("next.dbid");
    long oldValue = Long.parseLong(property.getValue());
    long newValue = oldValue+idBlockSize;
    property.setValue(Long.toString(newValue));
    return new IdBlock(oldValue, newValue-1);
  }
View Full Code Here

Examples of org.jboss.jms.delegate.IDBlock

           
      long nextLow = Long.MIN_VALUE;
     
      for (int i = 0; i < 1000; i++)
      {
         IDBlock block = idm.getIDBlock(blockSize);
                  
         assertTrue(block.getLow() >= nextLow);
        
         assertEquals(blockSize, 1 + block.getHigh() - block.getLow());
        
         nextLow = block.getHigh() + 1;        
      }
     
      idm.stop();
   }
View Full Code Here

Examples of org.jboss.jms.delegate.IDBlock

      os.flush();
   }
  
   public void read(DataInputStream is) throws Exception
   {
      idBlock = new IDBlock();
     
      idBlock.read(is);
   }
View Full Code Here

Examples of org.jboss.jms.delegate.IDBlock

           
      long nextLow = Long.MIN_VALUE;
     
      for (int i = 0; i < 1000; i++)
      {
         IDBlock block = idm.getIDBlock(blockSize);
                  
         assertTrue(block.getLow() >= nextLow);
        
         assertEquals(blockSize, 1 + block.getHigh() - block.getLow());
        
         nextLow = block.getHigh() + 1;        
      }
     
      idm.stop();
   }
View Full Code Here

Examples of org.jboss.jms.delegate.IDBlock

      long low = this.low;

      this.low += size;

      return new IDBlock(low, this.low - 1);
   }
View Full Code Here

Examples of org.jboss.jms.delegate.IDBlock

         testPacket(resp, PacketSupport.RESP_CONNECTIONFACTORY_CREATECONNECTIONDELEGATE);                          
      }
     
      public void testConnectionFactoryGetIDBlockResponse() throws Exception
      {
         IDBlock block = new IDBlock(1, 76);
        
         ResponseSupport resp =
            new ConnectionGetIDBlockResponse(block);
                
         testPacket(resp, PacketSupport.RESP_CONNECTIONFACTORY_GETIDBLOCK);                          
View Full Code Here

Examples of org.jboss.jms.delegate.IDBlock

   // Public --------------------------------------------------------

   protected void getNextBlock(ConnectionEndpoint connection) throws JMSException
   {
      IDBlock block = connection.getIdBlock(blockSize);

      nextID = block.getLow();
      high = block.getHigh();

      if (trace) { log.trace("Got block of IDs from server, low=" + nextID + " high=" + high); }
   }
View Full Code Here

Examples of org.jboss.jms.delegate.IDBlock

         testPacket(resp, PacketSupport.RESP_CONNECTIONFACTORY_CREATECONNECTIONDELEGATE);                          
      }
     
      public void testConnectionFactoryGetIDBlockResponse() throws Exception
      {
         IDBlock block = new IDBlock(1, 76);
        
         ResponseSupport resp =
            new ConnectionGetIDBlockResponse(block);
                
         testPacket(resp, PacketSupport.RESP_CONNECTIONFACTORY_GETIDBLOCK);                          
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.