Examples of MyMp


Examples of com.nokia.dempsy.cluster.zookeeper.FullApplication.MyMp

         //... and then recover.

         // get the MyMp prototype
         cluster = dempsy.getCluster(new ClusterId(FullApplication.class.getSimpleName(),MyMp.class.getSimpleName()));
         node = cluster.getNodes().get(0);
         final MyMp prototype = (MyMp)node.getMpContainer().getPrototype();

         // so let's see where we are
         final long interimMessageCount = prototype.myMpReceived.get();

         // and now we should eventually get more as the session recovers.
View Full Code Here

Examples of com.nokia.dempsy.cluster.zookeeper.FullApplication.MyMp

         // we should be getting failures now ... and then recover.

         // get the MyMp prototype
         cluster = dempsy.getCluster(new ClusterId(FullApplication.class.getSimpleName(),MyMp.class.getSimpleName()));
         node = cluster.getNodes().get(1); // notice, we're getting the SECOND node.
         final MyMp prototype = (MyMp)node.getMpContainer().getPrototype();

         // so let's see where we are
         final long interimMessageCount = prototype.myMpReceived.get();

         // and now we should eventually get more as the session recovers.
View Full Code Here

Examples of com.nokia.dempsy.cluster.zookeeper.FullApplication.MyMp

         final StatsCollector collector = node.getStatsCollector();
        
         // we are going to create another node of the MyMp via a test hack
         cluster = spare.dempsy.getCluster(new ClusterId(FullApplication.class.getSimpleName(),MyMp.class.getSimpleName()));
         node = cluster.getNodes().get(0);
         final MyMp spareprototype = (MyMp)node.getMpContainer().getPrototype();

         // TODO, see if we really need that check, and if so, implement
         // an alternate way to get it, since with the stats collector rework
         // we no longer use an independent MetricsRegistry per StatsCollector
         // instance.
         assertEquals(0,((MetricGetters)collector).getDispatchedMessageCount());
         assertEquals(0,spareprototype.myMpReceived.get());
        
         // now bring down the original
         DempsyHolder original = dempsys.get(spare.clusterid);
         final MyMp originalprototype = (MyMp)original.dempsy.getCluster(spare.clusterid).getNodes().get(0).getMpContainer().getPrototype();
         final long originalNumMessages = originalprototype.myMpReceived.get();
        
         // makes sure the message count is still advancing
         assertTrue(poll(baseTimeoutMillis, app, new Condition<Object>()
         {
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.