Package de.nava.informa.utils

Examples of de.nava.informa.utils.PersistChanGrpMgr.deActivate()


            if (!entry.deleted) {
              // Delete it and mark it deleted, and note that we deleted one.
              PersistChanGrpMgr theGrp = managers[entry.getPersistChanGrpMgrIdx()];

              Channel theChan = (Channel) entry.theItem.getChannel();
              theGrp.deActivate();
              int before = theGrp.getItemCount(theChan);
              int after = theGrp.deleteItemFromChannel(theChan, entry.theItem);

              if (getActiveSemaphor()) theGrp.activate();
              logger.debug("Deleted. Count before =" + before + " /after: " + after);
View Full Code Here


    assertTrue("expected group 2 to be active", group2.isActivated());
    assertTrue("expected group 3 to be active", group3.isActivated());
   
    Thread.sleep(500);

    group1.deActivate(true);
    assertFalse("expected group 1 to be inactive", group1.isActivated());
    assertTrue("expected group 2 to be active", group2.isActivated());
    assertTrue("expected group 3 to be active", group3.isActivated());
   
    Thread.sleep(500);
View Full Code Here

    // Start and stop a few times
    for (int i = 0; i < 2; i++) {
      groupStopStart.activate();
      assertTrue("Channel Group is supposed to be activated", groupStopStart.isActivated());
      groupStopStart.deActivate(true);
      assertFalse("ChannelGroup is not supposed to be activated", groupStopStart.isActivated());
      Thread.sleep(500);
    }
  }
 
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.