Examples of ListenerNotFoundException


Examples of javax.management.ListenerNotFoundException

                    return;
                }
            }
        }

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

Examples of javax.management.ListenerNotFoundException

                    return;
                }
            }
        }

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

Examples of javax.management.ListenerNotFoundException

   }

   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

Examples of javax.management.ListenerNotFoundException

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

Examples of javax.management.ListenerNotFoundException

   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

Examples of javax.management.ListenerNotFoundException

   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

Examples of javax.management.ListenerNotFoundException

         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

Examples of javax.management.ListenerNotFoundException

         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

Examples of javax.management.ListenerNotFoundException

     * @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

Examples of javax.management.ListenerNotFoundException

                                           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
TOP
Copyright © 2018 www.massapi.com. 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.