Package javax.management

Examples of javax.management.ListenerNotFoundException


                    return;
                }
            }
        }

        ListenerNotFoundException errorVar = new ListenerNotFoundException("Listener not registered");
        ErrorMgr.addError(errorVar);
        throw errorVar;
    }
View Full Code Here


   }

   public void removeNotificationListener(ObjectName observed, NotificationListener listener, NotificationFilter filter, Object handback) throws InstanceNotFoundException, ListenerNotFoundException, IOException
   {
      Integer id = notificationHandler.getNotificationListener(new NotificationTuple(observed, listener, filter, handback));
      if (id == null) throw new ListenerNotFoundException("Could not find listener " + listener + " with filter " + filter + " and handback " + handback);
      Integer[] ids = new Integer[]{id};
      try
      {
         ((HTTPConnection)getConnection()).removeNotificationListeners(observed, ids, getDelegateSubject());
         notificationHandler.removeNotificationListeners(ids);
View Full Code Here

               super.removeNotificationListener(listener, filter, handback);
               listeners.remove(listener);
               return;
            }
         }
         throw new ListenerNotFoundException();
      }
View Full Code Here

   public void removeNotificationListener(ObjectName observed, NotificationListener listener)
           throws InstanceNotFoundException, ListenerNotFoundException, IOException
   {
      Integer[] ids = notificationHandler.getNotificationListeners(new NotificationTuple(observed, listener));
      if (ids == null) throw new ListenerNotFoundException("Could not find listener " + listener);
      try
      {
         connection.removeNotificationListeners(observed, ids, delegate);
         notificationHandler.removeNotificationListeners(ids);
      }
View Full Code Here

   public void removeNotificationListener(ObjectName observed, NotificationListener listener, NotificationFilter filter, Object handback)
           throws InstanceNotFoundException, ListenerNotFoundException, IOException
   {
      Integer id = notificationHandler.getNotificationListener(new NotificationTuple(observed, listener, filter, handback));
      if (id == null) throw new ListenerNotFoundException("Could not find listener " + listener + " with filter " + filter + " and handback " + handback);
      Integer[] ids = new Integer[]{id};
      try
      {
         connection.removeNotificationListeners(observed, ids, delegate);
         notificationHandler.removeNotificationListeners(ids);
View Full Code Here

         ListenerWrapper wrapper = null;
         synchronized (wrappers)
         {
            ListenerWrapperKey key = new ListenerWrapperKey(listener, metadata.getObjectName());
            wrapper = (ListenerWrapper)wrappers.remove(key);
            if (wrapper == null) throw new ListenerNotFoundException("Could not find listener " + listener);
            wrapper.resetReferenceCount();

            Set keys = (Set)objectNames.get(metadata.getObjectName());
            keys.remove(key);
            if (keys.isEmpty()) objectNames.remove(metadata.getObjectName());
View Full Code Here

         ListenerWrapper wrapper = null;
         synchronized (wrappers)
         {
            ListenerWrapperKey key = new ListenerWrapperKey(listener, metadata.getObjectName());
            wrapper = (ListenerWrapper)wrappers.get(key);
            if (wrapper == null) throw new ListenerNotFoundException("Could not find listener " + listener);
            wrapper.decreaseReferenceCount();
            if (wrapper.getReferenceCount() == 0)
            {
               wrappers.remove(key);
               Set keys = (Set)objectNames.get(metadata.getObjectName());
View Full Code Here

     * @see #addNotificationListener
     **/
    public void removeNotificationListener(NotificationListener listener)
        throws ListenerNotFoundException {
        if (listener == null)
            throw new ListenerNotFoundException(
                      "Notification listener is null");

        final String mth="removeNotificationListener(NotificationListener)";
        if (MODELMBEAN_LOGGER.isLoggable(Level.FINER)) {
                MODELMBEAN_LOGGER.logp(Level.FINER,
                    RequiredModelMBean.class.getName(), mth, "Entry");
        }

        if (generalBroadcaster == null)
            throw new ListenerNotFoundException(
                  "No notification listeners registered");


        generalBroadcaster.removeNotificationListener(listener);
        if (MODELMBEAN_LOGGER.isLoggable(Level.FINER)) {
View Full Code Here

                                           NotificationFilter filter,
                                           Object handback)
        throws ListenerNotFoundException {

        if (listener == null)
            throw new ListenerNotFoundException(
                      "Notification listener is null");

        final String mth = "removeNotificationListener(" +
                "NotificationListener, NotificationFilter, Object)";

        if (MODELMBEAN_LOGGER.isLoggable(Level.FINER)) {
            MODELMBEAN_LOGGER.logp(Level.FINER,
                    RequiredModelMBean.class.getName(), mth, "Entry");
        }

        if (generalBroadcaster == null)
            throw new ListenerNotFoundException(
                  "No notification listeners registered");


        generalBroadcaster.removeNotificationListener(listener,filter,
                                                      handback);
View Full Code Here

    public void removeAttributeChangeNotificationListener(
            NotificationListener inlistener, String inAttributeName)
        throws MBeanException, RuntimeOperationsException,
               ListenerNotFoundException {
        if (inlistener == null) throw new
            ListenerNotFoundException("Notification listener is null");

        final String mth = "removeAttributeChangeNotificationListener(" +
                "NotificationListener, String)";

        if (MODELMBEAN_LOGGER.isLoggable(Level.FINER)) {
            MODELMBEAN_LOGGER.logp(Level.FINER,
                    RequiredModelMBean.class.getName(),mth,"Entry");
        }


        if (attributeBroadcaster == null)
            throw new ListenerNotFoundException(
                  "No attribute change notification listeners registered");


        MBeanAttributeInfo[] attrInfo = modelMBeanInfo.getAttributes();
        boolean found = false;
View Full Code Here

TOP

Related Classes of javax.management.ListenerNotFoundException

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.