Package javax.management

Examples of javax.management.MBeanRegistration


        ObjectName objectName = new ObjectName(name.getDomain() + ":type=" + "sessionManager" + ",name=" + sessionManager.hashCode());
        mbeanServer.registerMBean(new SessionManagerInfo(sessionManager), objectName);


        if (requestHandler instanceof MBeanRegistration) {
            MBeanRegistration mbeanRegistration = (MBeanRegistration) requestHandler;
            mbeanRegistration.preRegister(mbeanServer, name);
        }

    return ServerUtils.exportMbean(mbeanServer, name, requestHandler);   
  }
View Full Code Here


  /**
   * {@inheritDoc}
   */
  public void postRegister(Boolean registrationDone) {
        if (requestHandler instanceof MBeanRegistration) {
            MBeanRegistration mbeanRegistration = (MBeanRegistration) requestHandler;
            mbeanRegistration.postRegister(registrationDone);
        }

  }
View Full Code Here

  /**
   * {@inheritDoc}
   */
  public void preDeregister() throws Exception {
      if (requestHandler instanceof MBeanRegistration) {
            MBeanRegistration mbeanRegistration = (MBeanRegistration) requestHandler;
            mbeanRegistration.preDeregister();
      }
  }
View Full Code Here

  /**
   * {@inheritDoc}
   */
  public void postDeregister() {
      if (requestHandler instanceof MBeanRegistration) {
            MBeanRegistration mbeanRegistration = (MBeanRegistration) requestHandler;
            mbeanRegistration.postDeregister();
      }
  }
View Full Code Here

   public void registration(MBeanMetaData metadata, int operation) throws MBeanRegistrationException
   {
      if (!(metadata.mbean instanceof MBeanRegistration)) return;

      MBeanRegistration registrable = (MBeanRegistration)metadata.mbean;

      try
      {
         switch (operation)
         {
            case PRE_REGISTER:
               ObjectName objName = registrable.preRegister(outerServer, metadata.name);
               metadata.name = objName;
               break;
            case POST_REGISTER_TRUE:
               registrable.postRegister(Boolean.TRUE);
               break;
            case POST_REGISTER_FALSE:
               registrable.postRegister(Boolean.FALSE);
               break;
            case PRE_DEREGISTER:
               registrable.preDeregister();
               break;
            case POST_DEREGISTER:
               registrable.postDeregister();
               break;
            default:
               throw new ImplementationException();
         }
      }
View Full Code Here

        }

        ObjectName logicalName = name;

        if (mbean instanceof MBeanRegistration) {
            MBeanRegistration reg = (MBeanRegistration) mbean;
            logicalName = preRegisterInvoke(reg, name, server);
            if (mbean instanceof DynamicMBean2) {
                try {
                    ((DynamicMBean2) mbean).preRegister2(server, logicalName);
                } catch (Exception e) {
View Full Code Here

TOP

Related Classes of javax.management.MBeanRegistration

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.