Examples of waitForShutdown()


Examples of com.linkedin.databus2.producers.EventProducer.waitForShutdown()

      if (null != producer
          && (producer.isRunning() || producer.isPaused())) {
        producer.shutdown();
        try {
          producer.waitForShutdown();
        } catch (InterruptedException ie) {
        }
        LOG.info("EventProducer is shutdown!");
      }
View Full Code Here

Examples of com.tinkerpop.rexster.server.ShutdownManager.waitForShutdown()

        //Start the shutdown listener
        shutdownManager.start();

        //Wait for a shutdown request and all shutdown listeners to complete
        shutdownManager.waitForShutdown();
    }

    public static void main(final String[] args)  {

        logger.info(".:Welcome to Rexster:.");
View Full Code Here

Examples of freenet.support.MemoryLimitedJobRunner.waitForShutdown()

                assertEquals(i, countEncodedCrossSegments(resumed));
                resumed.start();
                // The memoryLimitedJobRunner will only encode one segment at a time.
                // Wait for it to encode one segment.
                memoryLimitedJobRunner.shutdown();
                memoryLimitedJobRunner.waitForShutdown();
                executor.waitForIdle();
                assertEquals(i+1, countEncodedCrossSegments(resumed));
            }
        }
       
View Full Code Here

Examples of freenet.support.MemoryLimitedJobRunner.waitForShutdown()

            }
            resumed.start();
            // The memoryLimitedJobRunner will only encode one segment at a time.
            // Wait for it to encode one segment.
            memoryLimitedJobRunner.shutdown();
            memoryLimitedJobRunner.waitForShutdown();
            executor.waitForIdle();
            assertEquals(i+1, countEncodedSegments(resumed));
        }
       
        cb.waitForFinishedEncode();
View Full Code Here

Examples of org.xtreemfs.foundation.TimeSync.waitForShutdown()

     */
    @AfterClass
    public static void tearDownAfterClass() throws Exception {
        TimeSync ts = TimeSync.getInstance();
        ts.shutdown();
        ts.waitForShutdown();
    }
   
    /**
     * @throws Exception
     */
 
View Full Code Here

Examples of org.xtreemfs.foundation.TimeSync.waitForShutdown()

     */
    @AfterClass
    public static void tearDownAfterClass() throws Exception {
        TimeSync ts = TimeSync.getInstance();
        ts.shutdown();
        ts.waitForShutdown();
    }

    /**
     * @throws java.lang.Exception
     */
 
View Full Code Here

Examples of org.xtreemfs.foundation.TimeSync.waitForShutdown()

     */
    @AfterClass
    public static void tearDownAfterClass() throws Exception {
        TimeSync ts = TimeSync.getInstance();
        ts.shutdown();
        ts.waitForShutdown();
    }
   
    /**
     * @throws java.lang.Exception
     */
 
View Full Code Here

Examples of org.xtreemfs.foundation.TimeSync.waitForShutdown()

        rpcClient.shutdown();
        rpcClient.waitForShutdown();
       
        TimeSync ts = TimeSync.getInstance();
        ts.shutdown();
        ts.waitForShutdown();
       
        // delete testFile
        File f = new File(testFileName);
        if (!f.delete()) f.deleteOnExit();
    }
View Full Code Here

Examples of org.xtreemfs.foundation.TimeSync.waitForShutdown()

        rpcClient.shutdown();
        rpcClient.waitForShutdown();
       
        TimeSync ts = TimeSync.getInstance();
        ts.shutdown();
        ts.waitForShutdown();
    }

    /**
     * @throws java.lang.Exception
     */
 
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.