Package org.apache.aries.quiesce.participant

Examples of org.apache.aries.quiesce.participant.QuiesceParticipant.quiesce()


   
    QuiesceParticipant participant = getParticipant("org.apache.aries.jpa.container.context");
   
    TestQuiesceCallback callback = new TestQuiesceCallback();
   
    participant.quiesce(callback, Collections.singletonList(getBundle(
        "org.apache.aries.jpa.org.apache.aries.jpa.container.itest.bundle")));
   
    Thread.sleep(1000);
   
    assertFalse("Quiesce finished", callback.bundleClearedUp());
View Full Code Here


   
    QuiesceParticipant participant = getParticipant("org.apache.aries.jpa.container.context");
   
    TestQuiesceCallback callback = new TestQuiesceCallback();
   
    participant.quiesce(callback, Collections.singletonList(getBundle(
        "org.apache.aries.jpa.container.context")));
   
    Thread.sleep(1000);
   
    assertFalse("Quiesce not finished", callback.bundleClearedUp());
View Full Code Here

   
    QuiesceParticipant participant = getParticipant("org.apache.aries.jpa.container");
   
    TestQuiesceCallback callback = new TestQuiesceCallback();
   
    participant.quiesce(callback, Collections.singletonList(getBundle(
        "org.apache.aries.jpa.org.apache.aries.jpa.container.itest.bundle")));
   
    Thread.sleep(1000);
   
    assertTrue("Quiesce not finished", callback.bundleClearedUp());
View Full Code Here

   
    QuiesceParticipant participant = getParticipant("org.apache.aries.jpa.container");
   
    TestQuiesceCallback callback = new TestQuiesceCallback();
   
    participant.quiesce(callback, Collections.singletonList(getBundle(
        "org.apache.aries.jpa.org.apache.aries.jpa.container.itest.bundle")));
   
    Thread.sleep(1000);
   
    assertFalse("Quiesce finished", callback.bundleClearedUp());
View Full Code Here

   
    QuiesceParticipant participant = getParticipant("org.apache.aries.jpa.container");
   
    TestQuiesceCallback callback = new TestQuiesceCallback();
   
    participant.quiesce(callback, Collections.singletonList(getBundle(
        "org.apache.aries.jpa.container")));
   
    Thread.sleep(1000);
   
    assertFalse("Quiesce finished early", callback.bundleClearedUp());
View Full Code Here

    //Quiesce the Unit, nothing should happen
    QuiesceParticipant participant = getParticipant("org.apache.aries.jpa.container");
   
    TestQuiesceCallback unitCallback = new TestQuiesceCallback();
   
    participant.quiesce(unitCallback, Collections.singletonList(getBundle(
        "org.apache.aries.jpa.org.apache.aries.jpa.container.itest.bundle")));
   
    Thread.sleep(1000);
   
    assertFalse("Quiesce finished", unitCallback.bundleClearedUp());
View Full Code Here

   
    participant = getParticipant("org.apache.aries.jpa.container.context");
   
    TestQuiesceCallback contextCallback = new TestQuiesceCallback();
   
    participant.quiesce(contextCallback, Collections.singletonList(getBundle(
    "org.apache.aries.jpa.org.apache.aries.jpa.container.itest.bundle")));
   
    Thread.sleep(1000);
   
    assertFalse("Quiesce finished", unitCallback.bundleClearedUp());
View Full Code Here

    //Quiesce the Unit, nothing should happen
    QuiesceParticipant participant = getParticipant("org.apache.aries.jpa.container");
   
    MultiQuiesceCallback callback = new MultiQuiesceCallback();
   
    participant.quiesce(callback, Collections.singletonList(getBundle(
        "org.apache.aries.jpa.org.apache.aries.jpa.container.itest.bundle")));
   
    //Quiesce the context, still nothing
    participant = getParticipant("org.apache.aries.jpa.container.context");
   
View Full Code Here

        "org.apache.aries.jpa.org.apache.aries.jpa.container.itest.bundle")));
   
    //Quiesce the context, still nothing
    participant = getParticipant("org.apache.aries.jpa.container.context");
   
    participant.quiesce(callback, Collections.singletonList(getBundle(
       "org.apache.aries.jpa.org.apache.aries.jpa.container.itest.bundle")));
   
    Thread.sleep(1000);
   
    assertFalse("Quiesce finished", callback.bundleClearedUp());
View Full Code Here

   
    QuiesceCallback cbk = Skeleton.newMock(QuiesceCallback.class);
   
    QuiesceParticipant p = (QuiesceParticipant) ctx.getService(ctx.getServiceReference(QuiesceParticipant.class.getName()));
 
    p.quiesce(cbk, Collections.singletonList(persistenceBundle));
   
    Thread.sleep(100);
   
    Skeleton.getSkeleton(cbk).assertCalledExactNumberOfTimes(new MethodCall(QuiesceCallback.class,
        "bundleQuiesced", Bundle[].class), 1);
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.