Java MBean matchType(MBeanNotificationInfo aInfo, String aMatch)

Here you can find the source of matchType(MBeanNotificationInfo aInfo, String aMatch)

Description

Method used to determine the type of notification to be released.

License

Apache License

Parameter

Parameter Description
aInfo a parameter
aMatch a parameter

Return

String

Declaration

protected static String matchType(MBeanNotificationInfo aInfo,
        String aMatch) 

Method Source Code

//package com.java2s;
//   Licensed under the Apache License, Version 2.0 (the "License");

import javax.management.MBeanNotificationInfo;

public class Main {
    /**//from  w ww  . j av a 2 s  .co m
     * Method used to determine the type of notification to be released.
     *
     * @param aInfo
     * @param aMatch
     * @return String
     */
    protected static String matchType(MBeanNotificationInfo aInfo,
            String aMatch) {
        String[] lTypes = aInfo.getNotifTypes();
        for (String lType : lTypes) {
            if (lType.endsWith(aMatch)) {
                return lType;
            }
        }
        return lTypes[0];
    }
}

Related

  1. isRegistered(MBeanServer mbs, ObjectName objectName)
  2. isServerStarted(MBeanServerConnection server)
  3. listMBeans(MBeanServerConnection mbsc, String objectNameStr)
  4. makeMBeanName(@Nonnull final String domain, @Nonnull final String type, @Nonnull final String channelName)
  5. makeSignatureString(MBeanParameterInfo[] info)
  6. mBeanAttributes2String(MBeanAttributeInfo[] attributeInfoArray)
  7. newMBeanProxy(final MBeanServerConnection conn, final ObjectName objectName, final Class interfaceClass)
  8. objectNameFor(Logger logger, String mbeanName)
  9. onameForBean(final Object mbean, final String name)