Package org.exoplatform.services.remote.group

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


   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
         {
            monitor.addMessageCounter(1);
            return handler.handle(message);
         }
         catch (Exception ex)
         {
            monitor.setLastError(ex);
            LOG.error("Error :", ex);
View Full Code Here


   {
      List monitors = new ArrayList();
      Iterator i = messageHandlers_.values().iterator();
      while (i.hasNext())
      {
         MessageHandler handler = (MessageHandler)i.next();
         monitors.add(handler.getMonitor());
      }
      return monitors;
   }
View Full Code Here

      channel_.connect("Portal");
   }

   synchronized public void addPlugin(ComponentPlugin plugin)
   {
      MessageHandler handler = (MessageHandler)plugin;
      handler.init(this);
      requestHandler_.registerMessageHandler(handler);
   }
View Full Code Here

      channel_.connect("Portal");
   }

   synchronized public void addPlugin(ComponentPlugin plugin)
   {
      MessageHandler handler = (MessageHandler)plugin;
      handler.init(this);
      requestHandler_.registerMessageHandler(handler);
   }
View Full Code Here

   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
         {
            monitor.addMessageCounter(1);
            return handler.handle(message);
         }
         catch (Exception ex)
         {
            monitor.setLastError(ex);
            LOG.error("Error :", ex);
View Full Code Here

   {
      List monitors = new ArrayList();
      Iterator i = messageHandlers_.values().iterator();
      while (i.hasNext())
      {
         MessageHandler handler = (MessageHandler)i.next();
         monitors.add(handler.getMonitor());
      }
      return monitors;
   }
View Full Code Here

TOP

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

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.