Package org.apache.aries.quiesce.manager

Examples of org.apache.aries.quiesce.manager.QuiesceManager.quiesce()


    //participant
   
    QuiesceManager quiesceMgr = getOsgiService(QuiesceManager.class);
    List<Bundle> bundleList = new ArrayList<Bundle>();
    bundleList.add(bapi);
    quiesceMgr.quiesce(500,bundleList);
    Thread.sleep(1000);
   
    //blog api bundle should now be stopped, but others should still be running
    assertTrue("Blog api bundle should have been quiesced, but it's state is "+bapi.getState(), bapi.getState() != bapi.ACTIVE);
  assertEquals(bweb.ACTIVE, bweb.getState());
View Full Code Here


 
  bundleList.add(bweb);
  bundleList.add(bbiz);
  bundleList.add(bper);
 
  quiesceMgr.quiesce(500,bundleList);
    Thread.sleep(1000);
   
    //all blog bundles should now be stopped
    assertTrue("Blog api bundle should have been quiesced, but it's state is "+bapi.getState(), bapi.getState() != bapi.ACTIVE);
    assertTrue("Blog web bundle should have been quiesced, but it's state is "+bweb.getState(), bweb.getState() != bweb.ACTIVE);
View Full Code Here

    //participant
   
    QuiesceManager quiesceMgr = getOsgiService(QuiesceManager.class);
    List<Bundle> bundleList = new ArrayList<Bundle>();
    bundleList.add(bapi);
    quiesceMgr.quiesce(500,bundleList);
    Thread.sleep(1000);
   
    //blog api bundle should now be stopped, but others should still be running
    assertTrue("Blog api bundle should have been quiesced, but it's state is "+bapi.getState(), bapi.getState() != bapi.ACTIVE);
  assertEquals(bweb.ACTIVE, bweb.getState());
View Full Code Here

 
  bundleList.add(bweb);
  bundleList.add(bbiz);
  bundleList.add(bper);
 
  quiesceMgr.quiesce(500,bundleList);
    Thread.sleep(1000);
   
    //all blog bundles should now be stopped
    assertTrue("Blog api bundle should have been quiesced, but it's state is "+bapi.getState(), bapi.getState() != bapi.ACTIVE);
    assertTrue("Blog web bundle should have been quiesced, but it's state is "+bweb.getState(), bweb.getState() != bweb.ACTIVE);
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.