Package javax.management

Examples of javax.management.ListenerNotFoundException


         throws InstanceNotFoundException, ListenerNotFoundException, IOException
   {
      Integer id = clientNotifier.getListener(new ClientListenerHolder(name, listener, filter, handback));
      if(id == null)
      {
         throw new ListenerNotFoundException("Listener (" + listener + ") could not be found as registered listener.");
      }

      Integer[] ids = new Integer[]{id};
      connection.removeNotificationListeners(name, ids, subject);
      clientNotifier.removeListeners(ids);
View Full Code Here


        java.util.Vector handbackList =
      (java.util.Vector) handbackTable.get(listener) ;
        java.util.Vector filterList =
      (java.util.Vector) filterTable.get(listener) ;
        if ( handbackList == null ) {
            throw new ListenerNotFoundException("listener");
        }

        // If handback is null, remove the listener entry
        //
        handbackTable.remove(listener) ;
View Full Code Here

            // Tread carefully because if set.size() == 1 it may be a
            // Collections.singleton, which is unmodifiable.
            Set<IdAndFilter> set = listenerMap.get(name);
            IdAndFilter idaf = new IdAndFilter(listenerID, null);
            if (set == null || !set.contains(idaf))
                throw new ListenerNotFoundException("Listener not found");
            if (set.size() == 1)
                listenerMap.remove(name);
            else
                set.remove(idaf);
        }
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 ftag="removeNotificationListener(NotificationListener)";

  if (tracing()) trace(ftag,"Entry");

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

View Full Code Here

             NotificationFilter filter,
             Object handback)
  throws ListenerNotFoundException {

  if (listener == null)
      throw new ListenerNotFoundException(
          "Notification listener is null");
 
  final String ftag="removeNotificationListener(NotificationListener, NotificationFilter, Object)";

  if (tracing()) trace(ftag,"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 ftag = "removeAttributeChangeNotificationListener(NotificationListener, String)";

  if (tracing()) trace(ftag,"Entry");
   
 
  if (attributeBroadcaster == null)
      throw new ListenerNotFoundException(
                  "No attribute change notification listeners registered");
   
 
  MBeanAttributeInfo[] attrInfo = modelMBeanInfo.getAttributes();
  boolean found = false
View Full Code Here

                infoList.remove(li.getListenerID());
            }
        }

        if (ids.isEmpty()) {
            throw new ListenerNotFoundException("Listener not found");
        }

        return (Integer[]) ids.toArray(new Integer[0]);
    }
View Full Code Here

                break;
            }
        }

        if (id == null) {
            throw new ListenerNotFoundException("Listener not found");
        }

        return id;
    }
View Full Code Here

                    return;
                }
            }
        }

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

                    return;
                }
            }
        }

        ListenerNotFoundException errorVar = new ListenerNotFoundException("Listener not registered");
        ErrorMgr.addError(errorVar);
        throw errorVar;
    }
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.