Examples of incRef()


Examples of org.apache.lucene.index.IndexReader.incRef()

      }
      finally {
        writeLock.unlock();
      }
    }
    indexReader.incRef();
    return indexReader;
  }

  @Override
  public void closeIndexReader(IndexReader reader) {
View Full Code Here

Examples of org.apache.lucene.index.IndexReader.incRef()

      }
      finally {
        writeLock.unlock();
      }
    }
    indexReader.incRef();
    return indexReader;
  }

  @Override
  public void closeIndexReader(IndexReader reader) {
View Full Code Here

Examples of org.elasticsearch.index.store.Store.incRef()

        IndexService indexService = indicesService.indexService(shardId.index().name());
        if (indexService != null) {
            InternalIndexShard indexShard = (InternalIndexShard) indexService.shard(shardId.id());
            if (indexShard != null) {
                final Store store = indexShard.store();
                store.incRef();
                try {
                    return new StoreFilesMetaData(true, shardId, store.getMetadataOrEmpty().asMap());
                } finally {
                    store.decRef();
                }
View Full Code Here

Examples of org.elasticsearch.index.store.Store.incRef()

        // Total size of segment files that are recovered
        long totalSize = 0;
        // Total size of segment files that were able to be re-used
        long existingTotalSize = 0;
        final Store store = shard.store();
        store.incRef();
        try {
            StopWatch stopWatch = new StopWatch().start();
            final Store.MetadataSnapshot recoverySourceMetadata = store.getMetadata(snapshot);
            for (String name : snapshot.getFiles()) {
                final StoreFileMetaData md = recoverySourceMetadata.get(name);
View Full Code Here

Examples of org.elasticsearch.index.store.Store.incRef()

                }

                pool.execute(new Runnable() {
                    @Override
                    public void run() {
                        store.incRef();
                        final StoreFileMetaData md = recoverySourceMetadata.get(name);
                        try (final IndexInput indexInput = store.directory().openInput(name, IOContext.READONCE)) {
                            final int BUFFER_SIZE = (int) recoverySettings.fileChunkSize().bytes();
                            final byte[] buf = new byte[BUFFER_SIZE];
                            boolean shouldCompressRequest = recoverySettings.compress();
View Full Code Here

Examples of org.mortbay.cometd.MessageImpl.incRef()

        synchronized (_inQ)
        {
            if (_mListeners == null)
            {
                message.incRef();
                _inQ.add(message);
            }
            else
            {
                for (MessageListener l : _mListeners)
View Full Code Here

Examples of org.mortbay.cometd.MessageImpl.incRef()

            MessageImpl message;//_messagePool.poll();
//            if (message == null)
//            {
                message=new MuleMessageImpl(this);
           // }
            message.incRef();
            return message;
        }

        @Override
        public MessageImpl newMessage(Message associated)
View Full Code Here

Examples of org.mortbay.cometd.MessageImpl.incRef()

            MessageImpl message;//_messagePool.poll();
//            if (message == null)
//            {
                message=new MuleMessageImpl(this);
            //}
            message.incRef();
            if (associated != null)
                message.setAssociated(associated);
            return message;
        }
    }
View Full Code Here

Examples of org.mortbay.cometd.MessageImpl.incRef()

            MessageImpl message;//_messagePool.poll();
//            if (message == null)
//            {
                message=new MuleMessageImpl(this);
           // }
            message.incRef();
            return message;
        }

        @Override
        public MessageImpl newMessage(Message associated)
View Full Code Here

Examples of org.mortbay.cometd.MessageImpl.incRef()

            MessageImpl message;//_messagePool.poll();
//            if (message == null)
//            {
                message=new MuleMessageImpl(this);
            //}
            message.incRef();
            if (associated != null)
                message.setAssociated(associated);
            return message;
        }
    }
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.