Package org.exoplatform.services.remote.group

Examples of org.exoplatform.services.remote.group.PingResult


         throw new Exception("Cannot find the member: " + member.getIpAddress());
      Message pingMesg = createMessage(PingMessageHandler.IDENTIFIER);
      pingMesg.setMessage(message);
      org.jgroups.Message jmessage = new org.jgroups.Message(dest, null, pingMesg);
      Object result = mdispatcher_.sendMessage(jmessage, GroupRequest.GET_ALL, 0);
      PingResult p = new PingResult(member, (String)result);
      return p;
   }
View Full Code Here


      RspList res = mdispatcher_.castMessage(null, jmessage, GroupRequest.GET_ALL, 0);
      List results = new ArrayList();
      for (int i = 0; i < res.size(); i++)
      {
         Rsp rsp = (Rsp)res.elementAt(i);
         PingResult result = new PingResult(Util.createMemberInfo(rsp.getSender()), (String)rsp.getValue());
         results.add(result);
      }
      return results;
   }
View Full Code Here

         throw new Exception("Cannot find the member: " + member.getIpAddress());
      Message pingMesg = createMessage(PingMessageHandler.IDENTIFIER);
      pingMesg.setMessage(message);
      org.jgroups.Message jmessage = new org.jgroups.Message(dest, null, pingMesg);
      Object result = mdispatcher_.sendMessage(jmessage, GroupRequest.GET_ALL, 0);
      PingResult p = new PingResult(member, (String)result);
      return p;
   }
View Full Code Here

      RspList res = mdispatcher_.castMessage(null, jmessage, GroupRequest.GET_ALL, 0);
      List results = new ArrayList();
      for (int i = 0; i < res.size(); i++)
      {
         Rsp rsp = (Rsp)res.elementAt(i);
         PingResult result = new PingResult(Util.createMemberInfo(rsp.getSender()), (String)rsp.getValue());
         results.add(result);
      }
      return results;
   }
View Full Code Here

TOP

Related Classes of org.exoplatform.services.remote.group.PingResult

Copyright © 2018 www.massapicom. 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.