Package javax.management

Examples of javax.management.MBeanServerDelegate


      return new MBeanServerImpl("jboss", outer, delegate);
   }

   public MBeanServerDelegate  newMBeanServerDelegate()
   {
      return new MBeanServerDelegate();
   }
View Full Code Here


    *
    * @return @{link MBeanServerDelegate}
    */
   public MBeanServerDelegate newMBeanServerDelegate()
   {
      return new MBeanServerDelegate();
   }
View Full Code Here

         HashMap valueMap = new HashMap();
         valueMap.put(JMI_DOMAIN, JMI_DOMAIN);

         // register the delegate
         registry.registerMBean(
               new MBeanServerDelegate(),
               new ObjectName(MBEAN_SERVER_DELEGATE),
               valueMap
         );
        
         // We expose the registry as an MBean for other components
View Full Code Here

      return new MBeanRegistrationException(new NullPointerException("NullPointerException"), "MBeanRegistrationException");
   }

   public MBeanServerDelegate createMBeanServerDelegate()
   {
      return new MBeanServerDelegate();
   }
View Full Code Here

   public void testNewMBeanServerDelegate()
      throws Exception
   {
      MBeanServerBuilder builder = new MBeanServerBuilder();
      MBeanServerDelegate delegate = builder.newMBeanServerDelegate();
      assertNotNull(delegate);
   }
View Full Code Here

   public void testNewMBeanServer()
      throws Exception
   {
      MBeanServerBuilder builder = new MBeanServerBuilder();
      MBeanServerDelegate delegate = builder.newMBeanServerDelegate();
      MBeanServer server = builder.newMBeanServer(DEFAULT_DOMAIN, null, delegate);
      assertTrue(server.getDefaultDomain().equals(DEFAULT_DOMAIN));
   }
View Full Code Here

   public void testPreRegisterGetsTheOuterMBeanServer()
      throws Exception
   {
      MBeanServerBuilder builder = new MBeanServerBuilder();
      MBeanServerDelegate delegate = builder.newMBeanServerDelegate();
      MBeanServer wrapper = MBeanServerWrapper.getWrapper();
      MBeanServer server = builder.newMBeanServer(DEFAULT_DOMAIN, wrapper, delegate);

      MBeanServerWrapper.getHandler(wrapper).server = server;
View Full Code Here

   public void testRegisterMBean() throws Exception
   {
      addPermission(new MBeanServerPermission("newMBeanServer"));
      MBeanServer server = MBeanServerFactory.newMBeanServer();

      MBeanServerDelegate mbean = new MBeanServerDelegate();
      ObjectName name = new ObjectName(server.getDefaultDomain(), "name", "test");

      try
      {
         server.registerMBean(mbean, name);
         fail();
      }
      catch (SecurityException ignored)
      {
      }

      addPermission(new MBeanPermission(mbean.getClass().getName() + "[" + name.getCanonicalName() + "]", "registerMBean"));
      server.registerMBean(mbean, name);
   }
View Full Code Here

        }

        // Create the MBeanServer identification MBean
        try {
            MBeanServerDelegateObject     =
                new MBeanServerDelegateImpl(new MBeanServerDelegate()) ;
            MBeanServerDelegateObjectName =
                new  ObjectName(ServiceName.DELEGATE) ;

            interceptor.registerMBean(MBeanServerDelegateObject,
                                      MBeanServerDelegateObjectName ) ;
View Full Code Here

    private final MBeanInfo delegateInfo;
    private final MBeanServerDelegate delegateImpl;

    public MBeanServerDelegateImpl (MBeanServerDelegate delegateImpl) {
  super();
  if (delegateImpl == null) delegateImpl = new MBeanServerDelegate();
  this.delegateImpl = delegateImpl;
  delegateInfo =
      new MBeanInfo("javax.management.MBeanServerDelegate",
        "Represents  the MBean server from the management "+
        "point of view.",
View Full Code Here

TOP

Related Classes of javax.management.MBeanServerDelegate

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.