Package org.glassfish.admin.amx.util.jmx.stringifier

Examples of org.glassfish.admin.amx.util.jmx.stringifier.MBeanOperationInfoStringifier


    {
    }

    public int compare(final MBeanOperationInfo info1, final MBeanOperationInfo info2)
    {
        final MBeanOperationInfoStringifier sf = OPERATION_INFO_STRINGIFIER;

        // we just want to sort based on name and signature; there can't be two operations with the
        // same name and same signature, so as long as we include the name and signature the
        // sorting will always be consistent.
        int c = info1.getName().compareTo(info2.getName());
        if (c == 0)
        {
            // names the same, subsort on signature, first by number of params
            c = info1.getSignature().length - info2.getSignature().length;
            if (c == 0)
            {
                // names the same, subsort on signature, first by number of params
                c = sf.getSignature(info1).compareTo(sf.getSignature(info2));
            }

        }

        return (c);
View Full Code Here

TOP

Related Classes of org.glassfish.admin.amx.util.jmx.stringifier.MBeanOperationInfoStringifier

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.