Examples of AMXProxy


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

    public List<AMXProxy> toProxyList(final Collection<ObjectName> objectNames) {
        final List<AMXProxy> list = new ArrayList<AMXProxy>();

        for (final ObjectName objectName : objectNames) {
            try {
                final AMXProxy proxy = getProxy(objectName);
                if (proxy != null) {
                    list.add(proxy);
                }
            } catch (final Exception e) {
                debug("ProxyFactory.toProxySet: exception for MBean ",
View Full Code Here

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

        for (final Map.Entry<String, ObjectName> me : objectNameMap.entrySet()) {
            final ObjectName objectName = me.getValue();

            try {
                final AMXProxy proxy = getProxy(objectName);
                if (proxy != null) {
                    resultMap.put(me.getKey(), proxy);
                }
            } catch (final Exception e) {
                debug("ProxyFactory.toProxySet: exception for MBean ",
View Full Code Here

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

        final Map<String, AMXProxy> resultMap = new HashMap<String, AMXProxy>();

        for (final ObjectName objectName : objectNames) {
            final String key = Util.unquoteIfNeeded(objectName.getKeyProperty(NAME_KEY));

            final AMXProxy proxy = getProxy(objectName, intf);
            if (proxy != null) {
                resultMap.put(key, proxy);
            }
        }
View Full Code Here

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

     * registered
     */
    public List<AMXProxy> toProxyList(final ObjectName[] objectNames, final Class<? extends AMXProxy> intf) {
        final List<AMXProxy> result = new ArrayList<AMXProxy>();
        for (final ObjectName objectName : objectNames) {
            final AMXProxy proxy = getProxy(objectName, intf);
            if (proxy != null) {
                result.add(proxy);
            }
        }
        return (result);
View Full Code Here

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

            {
                final String type = Util.deduceType(returnClass);

                //System.out.println( "invokeSingleProxyGetter: type = " + type );

                final AMXProxy childProxy = child(type);
                objectName = childProxy == null ? null : childProxy.extra().objectName();
            }
        }
        else
        {
            objectName = (ObjectName) invokeTarget(methodName, args, STRING_SIG);
View Full Code Here

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

    public AMXProxy parent()
    {
        if ( mParentObjectName == null ) return null;
       
        final AMXProxy proxy = proxyFactory().getProxy(mParentObjectName);
       
        return proxy;
    }
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

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
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.