Examples of nextID()


Examples of org.apache.uima.aae.UIDGenerator.nextId()

  public VmTransport(UimaAsContext aContext, AnalysisEngineController aController) {
    context = aContext;
    UIDGenerator idGenerator = new UIDGenerator();
    controller = aController;
    threadGroup = new ThreadGroup("VmThreadGroup" + idGenerator.nextId() + "_"
            + controller.getComponentName());
  }

  public void addSpiListener(SpiListener listener) {
    spiListeners.add(listener);
View Full Code Here

Examples of org.apache.uima.aae.UIDGenerator.nextId()

  public VmTransport(UimaAsContext aContext, AnalysisEngineController aController) {
    context = aContext;
    UIDGenerator idGenerator = new UIDGenerator();
    controller = aController;
    threadGroup = new ThreadGroup("VmThreadGroup" + idGenerator.nextId() + "_"
            + controller.getComponentName());
  }

  public void addSpiListener(SpiListener listener) {
    spiListeners.add(listener);
View Full Code Here

Examples of org.dspace.content.ItemIterator.nextID()

        try
        {
            iter = getPendingMatch(context, researcher);
            while (iter.hasNext())
            {
                invalidIds.add(iter.nextID());
            }
        }
        finally
        {
            if (iter != null)
View Full Code Here

Examples of org.dspace.content.ItemIterator.nextID()

                try
                {
                    ArrayList idslist = new ArrayList();
                    while (itr.hasNext())
                    {
                        idslist.add(new Integer(itr.nextID()));
                    }

                    for (int i = 0; i < browseItems.length; i++)
                    {
                        // only if it isn't already in this collection
View Full Code Here

Examples of org.fusesource.stomp.client.BlockingConnection.nextId()

        Stomp stomp = new Stomp("tcp://localhost:" + getPort());
        final BlockingConnection subscribeConnection = stomp.connectBlocking();

        StompFrame frame = new StompFrame(SUBSCRIBE);
        frame.addHeader(DESTINATION, StompFrame.encodeHeader("/queue/test"));
        frame.addHeader(ID, subscribeConnection.nextId());
        StompFrame response = subscribeConnection.request(frame);

        final CountDownLatch latch = new CountDownLatch(numberOfMessages);

        Thread thread = new Thread(new Runnable() {
View Full Code Here

Examples of org.fusesource.stomp.client.BlockingConnection.nextId()

        Stomp stomp = new Stomp("tcp://localhost:" + getPort());
        final BlockingConnection subscribeConnection = stomp.connectBlocking();

        StompFrame frame = new StompFrame(SUBSCRIBE);
        frame.addHeader(DESTINATION, StompFrame.encodeHeader("/queue/test"));
        frame.addHeader(ID, subscribeConnection.nextId());
        StompFrame response = subscribeConnection.request(frame);

        final CountDownLatch latch = new CountDownLatch(numberOfMessages);

        Thread thread = new Thread(new Runnable() {
View Full Code Here

Examples of org.fusesource.stomp.client.BlockingConnection.nextId()

        Stomp stomp = new Stomp("tcp://localhost:61613");
        final BlockingConnection subscribeConnection = stomp.connectBlocking();

        StompFrame frame = new StompFrame(SUBSCRIBE);
        frame.addHeader(DESTINATION, StompFrame.encodeHeader("/queue/test"));
        frame.addHeader(ID, subscribeConnection.nextId());
        StompFrame response = subscribeConnection.request(frame);

        final CountDownLatch latch = new CountDownLatch(numberOfMessages);

        Thread thread = new Thread(new Runnable() {
View Full Code Here

Examples of org.neo4j.kernel.impl.nioneo.store.IdGenerator.nextId()

        {
            Config config = getConfig( db );
            IdGenerator generator = config.getIdGeneratorFactory().get( IdType.NODE );
            for ( int i = 0; i < count; i++ )
            {
                generator.nextId();
            }
            return null;
        }
    }
View Full Code Here

Examples of org.neo4j.kernel.impl.nioneo.store.IdGenerator.nextId()

        IdGenerator idGenerator = new JumpingIdGeneratorFactory( 10 ).get( IdType.NODE );
        JumpingFileChannel channel = (JumpingFileChannel) offsettedFileSystem.open( fileName, "rw" );
       
        for ( int i = 0; i < 16; i++ )
        {
            writeSomethingLikeNodeRecord( channel, idGenerator.nextId(), i );
        }
       
        channel.close();
        channel = (JumpingFileChannel) offsettedFileSystem.open( fileName, "rw" );
        idGenerator = new JumpingIdGeneratorFactory( 10 ).get( IdType.NODE );
View Full Code Here

Examples of org.neo4j.kernel.impl.nioneo.store.IdGenerator.nextId()

        channel = (JumpingFileChannel) offsettedFileSystem.open( fileName, "rw" );
        idGenerator = new JumpingIdGeneratorFactory( 10 ).get( IdType.NODE );
       
        for ( int i = 0; i < 16; i++ )
        {
            assertEquals( i, readSomethingLikeNodeRecord( channel, idGenerator.nextId() ) );
        }
       
        channel.close();
    }
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.