Examples of ListenerNotFoundException


Examples of com.amazonaws.services.elasticloadbalancing.model.ListenerNotFoundException

        // marshaller understands.
        String errorCode = parseErrorCode(node);
        if (errorCode == null || !errorCode.equals("ListenerNotFound"))
            return null;

        ListenerNotFoundException e = (ListenerNotFoundException)super.unmarshall(node);
       
        return e;
    }
View Full Code Here

Examples of javax.management.ListenerNotFoundException

      if( log.isTraceEnabled() )
         log.trace("removeNotificationListener, name="+name+", listener="+listener);
      NotificationListenerDelegate delegate = (NotificationListenerDelegate)
         remoteListeners.remove(listener);
      if( delegate == null )
         throw new ListenerNotFoundException("No listener matches: "+listener);
      getServer().removeNotificationListener(name, delegate);
   }
View Full Code Here

Examples of javax.management.ListenerNotFoundException

          it.remove();
          return;
        }
      }
    }
    throw new ListenerNotFoundException();
  }
View Full Code Here

Examples of javax.management.ListenerNotFoundException

          it.remove();
          return;
        }
      }
    }
    throw new ListenerNotFoundException();
  }
View Full Code Here

Examples of javax.management.ListenerNotFoundException

   public void removeNotificationListener(ObjectName observed, NotificationListener listener)
           throws InstanceNotFoundException, ListenerNotFoundException
   {
      if (listener == null)
      {
         throw new ListenerNotFoundException("NotificationListener cannot be null");
      }

      observed = secureObjectName(observed);

      MBeanMetaData metadata = findMBeanMetaData(observed);
View Full Code Here

Examples of javax.management.ListenerNotFoundException

   public void removeNotificationListener(ObjectName observed, NotificationListener listener, NotificationFilter filter, Object handback)
           throws InstanceNotFoundException, ListenerNotFoundException
   {
      if (listener == null)
      {
         throw new ListenerNotFoundException("NotificationListener cannot be null");
      }

      observed = secureObjectName(observed);

      MBeanMetaData metadata = findMBeanMetaData(observed);
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);
      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};
      connection.removeNotificationListeners(observed, ids, delegate);
      notificationHandler.removeNotificationListeners(ids);
   }
View Full Code Here

Examples of javax.management.ListenerNotFoundException

      synchronized(registries)
      {
         ListenerRegistry registry = (ListenerRegistry) registries.get(name);
         if (registry == null)
            throw new ListenerNotFoundException("Listener not found " + listener + " for object name " + name);

         registry.remove(listener);
         if (registry.isEmpty())
            registries.remove(name);
      }
View Full Code Here

Examples of javax.management.ListenerNotFoundException

      synchronized(registries)
      {
         ListenerRegistry registry = (ListenerRegistry) registries.get(name);
         if (registry == null)
            throw new ListenerNotFoundException("Listener not found listener=" + listener +
                                                " filter=" + filter + " handback=" + handback +
                                                " for object name " + name);

         registry.remove(listener, filter, handback);
         if (registry.isEmpty())
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.