Examples of wasReceived()


Examples of org.jgroups.util.Rsp.wasReceived()

      Map.Entry entry;
       for(Iterator it=rsps.entrySet().iterator(); it.hasNext();) {
           entry=(Map.Entry)it.next();
           Address member=(Address)entry.getKey();
           Rsp rsp=(Rsp)entry.getValue();
           if(!rsp.wasReceived())
               throw new RuntimeException("response from " + member + " was not received, rsp=" + rsp);
       }

   }
View Full Code Here

Examples of org.jgroups.util.Rsp.wasReceived()

            }


            Rsp rsp=requests.get(sender);
            if(rsp != null) {
                if(rsp.wasReceived() == false) {
                    rsp.setValue(response_value);
                    rsp.setReceived(true);
                    if(log.isTraceEnabled())
                        log.trace(new StringBuilder("received response for request ").append(req_id).append(", sender=").
                                append(sender).append(", val=").append(response_value));
View Full Code Here

Examples of org.jgroups.util.Rsp.wasReceived()

        
         while (iter.hasNext())
         {
           Rsp rsp = (Rsp)iter.next();
          
           if (!rsp.wasReceived())
           {
             throw new IllegalStateException(this + " response not received from " + rsp.getSender() + " - there may be others");
           }
         }   
       }
View Full Code Here

Examples of org.jgroups.util.Rsp.wasReceived()

        
         while (iter.hasNext())
         {
           Rsp rsp = (Rsp)iter.next();
          
           if (!rsp.wasReceived())
           {
             throw new IllegalStateException(this + " response not received from " + rsp.getSender() + " - there may be others");
           }
         }   
       }
View Full Code Here

Examples of org.jgroups.util.Rsp.wasReceived()

                                    GroupRequest.GET_ALL, 0);
        assert rsps.size() == 2;
        for(Iterator<Rsp> it=rsps.values().iterator(); it.hasNext();) {
            Rsp rsp=it.next();
            assert rsp.getValue() == null;
            assertTrue(rsp.wasReceived());
            assertFalse(rsp.wasSuspected());
        }

        rsps=disp.callRemoteMethods(null, "methodB", null, (Class[])null, GroupRequest.GET_ALL, 0);
        assertEquals(2, rsps.size());
View Full Code Here

Examples of org.jgroups.util.Rsp.wasReceived()

        assertEquals(2, rsps.size());
        for(Iterator<Rsp> it=rsps.values().iterator(); it.hasNext();) {
            Rsp rsp=it.next();
            assertNotNull(rsp.getValue());
            assertEquals(Boolean.TRUE, rsp.getValue());
            assertTrue(rsp.wasReceived());
            assertFalse(rsp.wasSuspected());
        }


        rsps=disp.callRemoteMethods(null, "methodC", null, (Class[])null, GroupRequest.GET_ALL, 0);
View Full Code Here

Examples of org.jgroups.util.Rsp.wasReceived()

        assertEquals(2, rsps.size());
        for(Iterator<Rsp> it=rsps.values().iterator(); it.hasNext();) {
            Rsp rsp=it.next();
            assertNotNull(rsp.getValue());
            assertTrue(rsp.getValue() instanceof Throwable);
            assertTrue(rsp.wasReceived());
            assertFalse(rsp.wasSuspected());
        }

        disp.setRequestMarshaller(null);
        disp.setResponseMarshaller(null);
View Full Code Here

Examples of org.jgroups.util.Rsp.wasReceived()

        Map.Entry entry;
        for(Iterator it=rsps.entrySet().iterator(); it.hasNext();) {
            entry=(Map.Entry)it.next();
            Address member=(Address)entry.getKey();
            Rsp rsp=(Rsp)entry.getValue();
            if(!rsp.wasReceived())
                throw new RuntimeException("response from " + member + " was not received, rsp=" + rsp);
        }

    }
View Full Code Here

Examples of org.jgroups.util.Rsp.wasReceived()

    private static void checkResults(RspList rsps, int num, boolean received) {
        assertEquals("responses: " + rsps, num, rsps.size());       
        for(Iterator<Map.Entry<Address,Rsp>> it=rsps.entrySet().iterator(); it.hasNext();) {
            Map.Entry<Address,Rsp> entry=it.next();
            Rsp rsp=entry.getValue();
            assertEquals("rsp: " + rsp, rsp.wasReceived(), received);
        }
    }


    static class ServerObject {
View Full Code Here

Examples of org.jgroups.util.Rsp.wasReceived()

        
         while (iter.hasNext())
         {
           Rsp rsp = (Rsp)iter.next();
          
           if (!rsp.wasReceived())
           {
             throw new IllegalStateException(this + " response not received from " + rsp.getSender() + " - there may be others");
           }
         }   
       }
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.