Package org.exoplatform.services.remote.group

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


      messageHandlers_.put(handler.getIdentifier(), handler);
   }

   public Object handle(org.jgroups.Message jmessage)
   {
      Message message = (Message)jmessage.getObject();
      String handlerId = message.getTargetHandler();
      MessageHandler handler = (MessageHandler)messageHandlers_.get(handlerId);
      MessageHandlerMonitor monitor = handler.getMonitor();
      if (handler != null)
      {
         try
View Full Code Here


   synchronized public PingResult ping(MemberInfo member, String message) throws Exception
   {
      Address dest = Util.findAddress(channel_, member);
      if (dest == null)
         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

      return p;
   }

   synchronized public List pingAll(String message) throws Exception
   {
      Message pingMesg = createMessage(PingMessageHandler.IDENTIFIER);
      pingMesg.setMessage(message);
      org.jgroups.Message jmessage = new org.jgroups.Message(null, null, pingMesg);
      RspList res = mdispatcher_.castMessage(null, jmessage, GroupRequest.GET_ALL, 0);
      List results = new ArrayList();
      for (int i = 0; i < res.size(); i++)
      {
View Full Code Here

         info = Util.createMemberInfo(channel_.getView().getCreator());
         CommunicationServiceMonitor monitor =
            new CommunicationServiceMonitor(requestHandler_.getMessageHandlerMonitors(), info);
         return monitor;
      }
      Message message = createMessage(GetCommunicationMonitorHandler.IDENTIFIER);
      CommunicationServiceMonitor monitor = (CommunicationServiceMonitor)send(info, message);
      return monitor;
   }
View Full Code Here

   synchronized public PingResult ping(MemberInfo member, String message) throws Exception
   {
      Address dest = Util.findAddress(channel_, member);
      if (dest == null)
         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

      return p;
   }

   synchronized public List pingAll(String message) throws Exception
   {
      Message pingMesg = createMessage(PingMessageHandler.IDENTIFIER);
      pingMesg.setMessage(message);
      org.jgroups.Message jmessage = new org.jgroups.Message(null, null, pingMesg);
      RspList res = mdispatcher_.castMessage(null, jmessage, GroupRequest.GET_ALL, 0);
      List results = new ArrayList();
      for (int i = 0; i < res.size(); i++)
      {
View Full Code Here

         info = Util.createMemberInfo(channel_.getView().getCreator());
         CommunicationServiceMonitor monitor =
            new CommunicationServiceMonitor(requestHandler_.getMessageHandlerMonitors(), info);
         return monitor;
      }
      Message message = createMessage(GetCommunicationMonitorHandler.IDENTIFIER);
      CommunicationServiceMonitor monitor = (CommunicationServiceMonitor)send(info, message);
      return monitor;
   }
View Full Code Here

      messageHandlers_.put(handler.getIdentifier(), handler);
   }

   public Object handle(org.jgroups.Message jmessage)
   {
      Message message = (Message)jmessage.getObject();
      String handlerId = message.getTargetHandler();
      MessageHandler handler = (MessageHandler)messageHandlers_.get(handlerId);
      MessageHandlerMonitor monitor = handler.getMonitor();
      if (handler != null)
      {
         try
View Full Code Here

TOP

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

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.