Examples of allocate()


Examples of com.alibaba.rocketmq.client.consumer.AllocateMessageQueueStrategy.allocate()

                AllocateMessageQueueStrategy strategy = this.allocateMessageQueueStrategy;

                // 执行分配算法
                List<MessageQueue> allocateResult = null;
                try {
                    allocateResult = strategy.allocate(this.mQClientFactory.getClientId(), mqAll, cidAll);
                }
                catch (Throwable e) {
                    log.error("AllocateMessageQueueStrategy.allocate Exception", e);
                    return;
                }
View Full Code Here

Examples of com.caucho.amber.idgen.IdGenerator.allocate()

  public long nextGeneratorId(AmberConnection aConn, String name)
    throws SQLException
  {
    IdGenerator idGen = _idGenMap.get(name);

    return idGen.allocate(aConn);
  }

  /**
   * Loads from an object.
   */
 
View Full Code Here

Examples of com.caucho.db.block.Block.allocate()

    long blockId = store.addressToBlockId(blockAddress);
     
    Block block = null;

    if (block != null)
      block.allocate();
    else
      block = store.readBlock(blockId);

    return block;
  }
View Full Code Here

Examples of com.caucho.db.block.Block.allocate()

                      int keyLength)
    throws SQLException
  {
    try {
      Block rootBlock = _rootBlock; // _store.readBlock(_rootBlockId);
      rootBlock.allocate();

      try {
        if (! removeRead(rootBlock, keyBuffer, keyOffset, keyLength)) {
          removeWrite(rootBlock, keyBuffer, keyOffset, keyLength);
        }
View Full Code Here

Examples of com.caucho.db.block.Block.allocate()

  {
    Block block;

    if (blockId == _rootBlockId) {
      block = _rootBlock;
      block.allocate();
    }
    else
      block = _store.loadBlock(blockId);

    try {
View Full Code Here

Examples of com.caucho.db.block.Block.allocate()

  {
    Block block;

    if (blockId == _rootBlockId) {
      block = _rootBlock;
      block.allocate();
    }
    else
      block = _store.loadBlock(blockId);
   
    try {
View Full Code Here

Examples of com.caucho.db.block.Block.allocate()

   */
  private void splitRoot(long rootBlockId)
    throws IOException, SQLException, InterruptedException
  {
    Block rootBlock = _rootBlock; // store.readBlock(rootBlockId);
    rootBlock.allocate();

    try {
      Lock rootLock = rootBlock.getWriteLock();
      rootLock.tryLock(_timeout, TimeUnit.MILLISECONDS);
     
View Full Code Here

Examples of com.cloud.network.guru.NetworkGuru.allocate()

        NetworkGuru guru = _networkGurus.get(ntwkVO.getGuruName());

        if (requested != null && requested.getMode() == null) {
            requested.setMode(network.getMode());
        }
        NicProfile profile = guru.allocate(network, requested, vm);
        if (isDefaultNic != null) {
            profile.setDefaultNic(isDefaultNic);
        }

        if (profile == null) {
View Full Code Here

Examples of com.hp.hpl.jena.tdb.base.block.BlockMgr.allocate()

    @Test public void track_01()
    {
        BlockMgr mgr = BlockMgrFactory.createMem("BPTRecord", 4) ;
        mgr = BlockMgrFactory.tracker(mgr) ;
        mgr.beginUpdate() ;
        Block block = mgr.allocate(4) ;
        ByteBuffer bb = block.getByteBuffer() ;
        bb.putInt(0,1234) ;
        mgr.write(block) ;
        mgr.release(block) ;
        // -----
View Full Code Here

Examples of com.insightfullogic.slab.Allocator.allocate()

    @SuppressWarnings("rawtypes")
    @Test
    public void reproduceIssue() {
        int reps = 100;
        Allocator eventAllocator = Allocator.of(SlabOperation.class);
        final SlabOperation op = (SlabOperation) eventAllocator.allocate(reps);
        for (int i = 0; i < reps; i++) {
          op.move(1);

          op.setMagic((byte) 0x80);
          op.setOpCode((byte) 0x09);
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.