Package javax.management

Examples of javax.management.ListenerNotFoundException


/*     */   {
/* 146 */     ArrayList registrations = null;
/* 147 */     synchronized (this.listeners)
/*     */     {
/* 149 */       if (!this.listeners.containsKey(listener)) {
/* 150 */         throw new ListenerNotFoundException("Listener not found " + listener);
/*     */       }
/* 152 */       HashMap newListeners = (HashMap)this.listeners.clone();
/*     */
/* 154 */       registrations = (ArrayList)newListeners.remove(listener);
/*     */
View Full Code Here


/* 177 */     ListenerRegistration registration = null;
/* 178 */     synchronized (this.listeners)
/*     */     {
/* 180 */       ArrayList registrations = (ArrayList)this.listeners.get(listener);
/* 181 */       if (registrations == null) {
/* 182 */         throw new ListenerNotFoundException("No registristrations for listener not listener=" + listener + " filter=" + filter + " handback=" + handback);
/*     */       }
/*     */
/* 185 */       registration = new DefaultListenerRegistration(listener, filter, handback);
/* 186 */       int index = registrations.indexOf(registration);
/* 187 */       if (index == -1) {
/* 188 */         throw new ListenerNotFoundException("Listener not found listener=" + listener + " filter=" + filter + " handback=" + handback);
/*     */       }
/*     */
/* 191 */       HashMap newListeners = (HashMap)this.listeners.clone();
/*     */
/* 193 */       registrations = (ArrayList)registrations.clone();
View Full Code Here

/*     */     }
/* 150 */     synchronized (this.registries)
/*     */     {
/* 152 */       ListenerRegistry registry = (ListenerRegistry)this.registries.get(name);
/* 153 */       if (registry == null) {
/* 154 */         throw new ListenerNotFoundException("Listener not found " + listener + " for object name " + name);
/*     */       }
/* 156 */       registry.remove(listener);
/* 157 */       if (registry.isEmpty())
/* 158 */         this.registries.remove(name);
/*     */     }
View Full Code Here

/*     */     }
/* 178 */     synchronized (this.registries)
/*     */     {
/* 180 */       ListenerRegistry registry = (ListenerRegistry)this.registries.get(name);
/* 181 */       if (registry == null) {
/* 182 */         throw new ListenerNotFoundException("Listener not found listener=" + listener + " filter=" + filter + " handback=" + handback + " for object name " + name);
/*     */       }
/*     */
/* 186 */       registry.remove(listener, filter, handback);
/* 187 */       if (registry.isEmpty())
/* 188 */         this.registries.remove(name);
View Full Code Here

        handbackTable.put(id, handback);
    }

    public void removeListener(String id) throws ListenerNotFoundException {
        if(listenerTable.remove(id) == null) {
            throw new ListenerNotFoundException();
        } else {
            handbackTable.remove(id);
        }
    }
View Full Code Here

   {
      ArrayList registrations = null;
      synchronized(listeners)
      {
         if (listeners.containsKey(listener) == false)
            throw new ListenerNotFoundException("Listener not found " + listener);

         HashMap newListeners = (HashMap) listeners.clone();

         registrations = (ArrayList) newListeners.remove(listener);
View Full Code Here

      ListenerRegistration registration = null;
      synchronized(listeners)
      {
         ArrayList registrations = (ArrayList) listeners.get(listener);
         if (registrations == null)
            throw new ListenerNotFoundException("No registristrations for listener not listener=" + listener +
                                                " filter=" + filter + " handback=" + handback);

         registration = new DefaultListenerRegistration(listener, filter, handback);
         int index = registrations.indexOf(registration);
         if (index == -1)
            throw new ListenerNotFoundException("Listener not found listener=" + listener +
                                                " filter=" + filter + " handback=" + handback);

         HashMap newListeners = (HashMap) listeners.clone();

         registrations = (ArrayList) registrations.clone();
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.