Package org.jboss.mx.remoting

Examples of org.jboss.mx.remoting.MBeanLocator


      {
         Set set = getMBeans();
         Iterator iter = set.iterator();
         while(iter.hasNext())
         {
            MBeanLocator locator = (MBeanLocator) iter.next();
            fireRegister(locator);
         }
      }
   }
View Full Code Here


               Object src = ch.getSource();
               if(src instanceof ObjectName)
               {
                  ObjectName obj = (ObjectName) src;
                  // indicate the state changed
                  fireStateChange(new MBeanLocator(server, obj), ((Integer) ch.getOldValue()).intValue(), ((Integer) ch.getNewValue()).intValue());
                  return;
               }
               else if(src instanceof MBeanLocator)
               {
                  fireNotification((MBeanLocator) src, notification, o);
                  return;
               }
            }
         }
         if(wantNotifications && hasActions())
         {
            // fire notification to listener
            MBeanServerLocator server = (MBeanServerLocator) o;
            if(server != null)
            {
               Object src = notification.getSource();
               if(src instanceof ObjectName)
               {
                  ObjectName obj = (ObjectName) src;
                  MBeanLocator locator = new MBeanLocator(server, obj);
                  fireNotification(locator, notification, o);
                  return;
               }
               else if(src instanceof MBeanLocator)
               {
View Full Code Here

      if(log.isTraceEnabled())
      {
         log.debug("addMBean called: " + server + ", mbean: " + mbean);
      }

      MBeanLocator locator = new MBeanLocator(server, mbean);

      boolean found = false;

      synchronized(mbeans)
      {
View Full Code Here

      if(log.isTraceEnabled())
      {
         log.debug("removeMBean called: " + server + ", mbean: " + mbean);
      }

      MBeanLocator locator = new MBeanLocator(server, mbean);

      synchronized(mbeans)
      {
         Set set = (Set) mbeans.get(server);
         if(set != null)
View Full Code Here

            log.debug("lost mbean server = " + server + ", list = " + list);
         }
         Iterator iter = list.iterator();
         while(iter.hasNext())
         {
            MBeanLocator locator = (MBeanLocator) iter.next();
            removeMBean(server, locator.getObjectName());
         }
         list.clear();
         list = null;
      }
   }
View Full Code Here

            }
            Iterator iter = copy.keySet().iterator();
            Integer myhash=new Integer(hashCode());
            while(iter.hasNext())
            {
                MBeanLocator l=(MBeanLocator)iter.next();
                try
                {
                    Object obj = l.getServerLocator().getMBeanServer().invoke(l.getObjectName(),"ping",new Object[]{myhash},new String[]{Object.class.getName()});
                    //PingPongMBean friend=(PingPongMBean)copy.get(l);
                    log.info("pinging my friend at: "+l+", with: "+myhash);
                    // send my friend a ping
                    //Object obj = friend.ping(myhash);
                    if (!obj.equals(myhash))
View Full Code Here

TOP

Related Classes of org.jboss.mx.remoting.MBeanLocator

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.