Examples of AMXProxy


Examples of org.glassfish.admin.amx.core.AMXProxy

        }
        return null;
    }

    public ObjectName[] queryDescendants(final ObjectName parentObjectName) {
        final AMXProxy parent = getProxyFactory().getProxy(parentObjectName);

        final List<AMXProxy> items = ParentChildren.hierarchy(parent).asList();

        return Util.toObjectNamesArray(items);
    }
View Full Code Here

Examples of org.glassfish.admin.amx.core.AMXProxy

            result = "" + value;
        }
        else
        {
            // Look successively at Containers for SystemProperties
            AMXProxy amx = mTarget;
            while ( amx != null && (amx instanceof AMXConfigProxy) && result == null )
            {
                if ( amx instanceof SystemPropertiesAccess )
                {
                    final Map<String,SystemProperty> props = ((SystemPropertiesAccess)amx).getSystemProperty();
                   
                    // look by calling getName().  We can't just look in the map, because the ObjectName
                    // might not allow some characters that might be allowed in the name field
                    for( final SystemProperty prop : props.values() )
                    {
                        if ( prop.getName().equals( varName ) )
                        {
                            result = prop.getValue();
                            break;
                        }
                    }
                }
                // continue up the containment hierarchy until we run out of config objects
                amx = amx.parent();
            }
        }
       
        return result;
    }
View Full Code Here

Examples of org.glassfish.admin.amx.core.AMXProxy

            final String type = params.type();
            final Map<String,AMXProxy> childrenOfType = existingChildren.get(type);
            if ( childrenOfType != null )
            {
                // children of this type exist, check that there is no conflicting child already
                final AMXProxy firstChild = childrenOfType.values().iterator().next();
                if ( firstChild.extra().singleton() )
                {
                    throw new IllegalArgumentException"Singleton child of type " + type + " already exists." );
                }
                if ( childrenOfType.get( params.name() ) != null)
                {
View Full Code Here

Examples of org.glassfish.admin.amx.core.AMXProxy

            final String type = params.type();
            final Map<String,AMXProxy> childrenOfType = existingChildren.get(type);
            if ( childrenOfType != null )
            {
                // children of this type exist, check that there is no conflicting child already
                final AMXProxy firstChild = childrenOfType.values().iterator().next();
                if ( firstChild.extra().singleton() )
                {
                    throw new IllegalArgumentException"Singleton child of type " + type + " already exists." );
                }
                if ( childrenOfType.get( params.name() ) != null)
                {
View Full Code Here

Examples of org.glassfish.admin.amx.core.AMXProxy

        }
        return getDomainConfig();
    }

    public synchronized void unloadAMXMBeans() {
        final AMXProxy domainConfigProxy = getDomainConfigProxy();
        if (domainConfigProxy != null) {
          ImplUtil.unregisterAMXMBeans(domainConfigProxy);
        }
        if (mLoader != null) {
            mLoader.stop();
View Full Code Here

Examples of org.glassfish.admin.amx.core.AMXProxy

            }
        }
    }

    private List<AMXProxy> listChildren(final String path, boolean recursive) {
        final AMXProxy topProxy = resolveToProxy(path);
        if (topProxy == null) {
            return null;
        }

        final List<AMXProxy> list = new ArrayList<AMXProxy>();
View Full Code Here

Examples of org.glassfish.admin.amx.core.AMXProxy

        final ObjectName top = resolvePath(path);
        if (top == null) {
            return null;
        }

        final AMXProxy topProxy = getProxyFactory().getProxy(top, AMXProxy.class);
        final List<AMXProxy> list = new ArrayList<AMXProxy>();
        list.add(topProxy);
        listChildren(topProxy, list, true);

        final String NL = "\n";
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.