Examples of MBeanEntry


Examples of org.jboss.mx.server.registry.MBeanEntry

/*      */   }
/*      */
/*      */   public void removeNotificationListener(ObjectName name, ObjectName listener, NotificationFilter filter, Object handback)
/*      */     throws InstanceNotFoundException, ListenerNotFoundException
/*      */   {
/*  940 */     MBeanEntry entry = this.registry.get(name);
/*  941 */     if (!NotificationBroadcaster.class.isInstance(entry.getResourceInstance())) {
/*  942 */       throw new RuntimeOperationsException(new IllegalArgumentException("The MBean " + name + " exists but does not implement the NotificationBroadcaster interface."));
/*      */     }
/*  944 */     MBeanEntry listenerEntry = this.registry.get(listener);
/*  945 */     if (!NotificationListener.class.isInstance(listenerEntry.getResourceInstance())) {
/*  946 */       throw new RuntimeOperationsException(new IllegalArgumentException("The MBean " + listener + " exists but does not implement the NotificationListener interface."));
/*      */     }
/*  948 */     checkMBeanPermission(entry.getResourceClassName(), null, name, "removeNotificationListener");
/*      */
/*  951 */     ClassLoader newTCL = entry.getClassLoader();
View Full Code Here

Examples of org.jboss.mx.server.registry.MBeanEntry

/*      */   }
/*      */
/*      */   public boolean isInstanceOf(ObjectName name, String className)
/*      */     throws InstanceNotFoundException
/*      */   {
/*  974 */     MBeanEntry entry = this.registry.get(name);
/*  975 */     String mbeanClassName = entry.getResourceClassName();
/*  976 */     checkMBeanPermission(mbeanClassName, null, name, "isInstanceOf");
/*      */
/*  979 */     if (className.equals(mbeanClassName)) {
/*  980 */       return true;
/*      */     }
View Full Code Here

Examples of org.jboss.mx.server.registry.MBeanEntry

/*      */   }
/*      */
/*      */   public ClassLoader getClassLoaderFor(ObjectName name)
/*      */     throws InstanceNotFoundException
/*      */   {
/* 1062 */     MBeanEntry entry = this.registry.get(name);
/* 1063 */     checkMBeanPermission(entry.getResourceClassName(), null, name, "getClassLoaderFor");
/*      */
/* 1066 */     ClassLoader cl = entry.getClassLoader();
/* 1067 */     if (cl == null)
/* 1068 */       cl = entry.getResourceInstance().getClass().getClassLoader();
/* 1069 */     if (cl == null)
/* 1070 */       cl = ClassLoader.getSystemClassLoader();
/* 1071 */     return cl;
/*      */   }
View Full Code Here

Examples of org.jboss.mx.server.registry.MBeanEntry

/* 1089 */       if (loader == null)
/* 1090 */         loader = ClassLoader.getSystemClassLoader();
/*      */     }
/*      */     else
/*      */     {
/* 1094 */       MBeanEntry entry = this.registry.get(name);
/* 1095 */       checkMBeanPermission(entry.getResourceClassName(), null, name, "getClassLoader");
/*      */
/* 1097 */       loader = entry.getResourceInstance();
/*      */     }
/*      */
/* 1100 */     if (!(loader instanceof ClassLoader))
/* 1101 */       throw new InstanceNotFoundException("Not a classloader " + name);
/* 1102 */     return (ClassLoader)loader;
View Full Code Here

Examples of org.jboss.mx.server.registry.MBeanEntry

/*      */   }
/*      */
/*      */   public void unregisterMBean(ObjectName name)
/*      */     throws InstanceNotFoundException, MBeanRegistrationException
/*      */   {
/*  383 */     MBeanEntry entry = this.registry.get(name);
/*  384 */     Object mbean = entry.getResourceInstance();
/*  385 */     name = entry.getObjectName();
/*      */
/*  387 */     checkMBeanPermission(entry.getResourceClassName(), null, name, "unregisterMBean");
/*      */     try
/*      */     {
/*  391 */       Object[] args = { name };
/*  392 */       String[] sig = { ObjectName.class.getName() };
/*      */       try
View Full Code Here

Examples of org.jboss.mx.server.registry.MBeanEntry

/*      */
/*  465 */     List entries = this.registry.findEntries(name);
/*  466 */     Iterator iterator = entries.iterator();
/*  467 */     while (iterator.hasNext())
/*      */     {
/*  470 */       MBeanEntry entry = (MBeanEntry)iterator.next();
/*  471 */       ObjectName objectName = entry.getObjectName();
/*      */
/*  473 */       if (sm != null)
/*      */       {
/*      */         try
/*      */         {
/*  477 */           checkMBeanPermission(entry.getResourceClassName(), null, objectName, "queryMBeans");
/*      */         }
/*      */         catch (SecurityException e)
/*      */         {
/*  482 */           if (log.isTraceEnabled())
/*  483 */             log.trace("Excluded mbean due to security: " + objectName);
View Full Code Here

Examples of org.jboss.mx.server.registry.MBeanEntry

/*      */
/*  516 */     List entries = this.registry.findEntries(name);
/*  517 */     Iterator iterator = entries.iterator();
/*  518 */     while (iterator.hasNext())
/*      */     {
/*  521 */       MBeanEntry entry = (MBeanEntry)iterator.next();
/*  522 */       ObjectName objectName = entry.getObjectName();
/*      */
/*  524 */       if (sm != null)
/*      */       {
/*      */         try
/*      */         {
/*  528 */           checkMBeanPermission(entry.getResourceClassName(), null, objectName, "queryNames");
/*      */         }
/*      */         catch (SecurityException e)
/*      */         {
/*  533 */           if (log.isTraceEnabled())
/*  534 */             log.trace("Excluded mbean due to security: " + objectName);
View Full Code Here

Examples of org.jboss.mx.server.registry.MBeanEntry

/*      */   }
/*      */
/*      */   public Object getAttribute(ObjectName name, String attribute)
/*      */     throws MBeanException, AttributeNotFoundException, InstanceNotFoundException, ReflectionException
/*      */   {
/*  559 */     MBeanEntry entry = this.registry.get(name);
/*  560 */     checkMBeanPermission(entry.getResourceClassName(), attribute, name, "getAttribute");
/*      */
/*  563 */     MBeanInvoker mbean = entry.getInvoker();
/*      */
/*  565 */     return mbean.getAttribute(attribute);
/*      */   }
View Full Code Here

Examples of org.jboss.mx.server.registry.MBeanEntry

/*      */   }
/*      */
/*      */   public AttributeList getAttributes(ObjectName name, String[] attributes)
/*      */     throws InstanceNotFoundException, ReflectionException
/*      */   {
/*  571 */     MBeanEntry entry = this.registry.get(name);
/*  572 */     String className = entry.getResourceClassName();
/*      */
/*  577 */     checkMBeanPermission(className, null, name, "getAttribute");
/*      */
/*  579 */     MBeanInvoker mbean = entry.getInvoker();
/*  580 */     AttributeList list = mbean.getAttributes(attributes);
/*  581 */     SecurityManager sm = System.getSecurityManager();
/*  582 */     if (sm != null)
/*      */     {
/*  585 */       Iterator iter = list.iterator();
View Full Code Here

Examples of org.jboss.mx.server.registry.MBeanEntry

/*      */   }
/*      */
/*      */   public void setAttribute(ObjectName name, Attribute attribute)
/*      */     throws InstanceNotFoundException, AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException
/*      */   {
/*  608 */     MBeanEntry entry = this.registry.get(name);
/*  609 */     String attributeName = null;
/*  610 */     if (attribute != null)
/*  611 */       attributeName = attribute.getName();
/*  612 */     checkMBeanPermission(entry.getResourceClassName(), attributeName, name, "setAttribute");
/*      */
/*  615 */     MBeanInvoker mbean = entry.getInvoker();
/*      */
/*  617 */     mbean.setAttribute(attribute);
/*      */   }
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.