Package org.apache.geronimo.gbean

Examples of org.apache.geronimo.gbean.GBeanQuery


        }
        return results;
    }

    public String[] getJMSManagers() {
        GBeanQuery query = new GBeanQuery(null, JMSManager.class.getName());
        Set set = kernel.listGBeans(query);
        if(set.size() == 0) {
            return null;
        }
        String[] results = new String[set.size()];
View Full Code Here


        }
        return results;
    }

    public String[] getThreadPools() {
        GBeanQuery query = new GBeanQuery(null, GeronimoExecutor.class.getName());
        Set set = kernel.listGBeans(query);
        String[] names = new String[set.size()];
        int i=0;
        for (Iterator it = set.iterator(); it.hasNext();) {
            ObjectName name = (ObjectName) it.next();
View Full Code Here

        }
        return names;
    }

    public String[] getRepositories() {
        GBeanQuery query = new GBeanQuery(null, Repository.class.getName());
        Set set = kernel.listGBeans(query);
        String[] names = new String[set.size()];
        int i=0;
        for (Iterator it = set.iterator(); it.hasNext();) {
            ObjectName name = (ObjectName) it.next();
View Full Code Here

        }
        return names;
    }

    public String[] getSecurityRealms() {
        GBeanQuery query = new GBeanQuery(null, "org.apache.geronimo.security.realm.SecurityRealm");
        Set set = kernel.listGBeans(query);
        String[] names = new String[set.size()];
        int i=0;
        for (Iterator it = set.iterator(); it.hasNext();) {
            ObjectName name = (ObjectName) it.next();
View Full Code Here

        }
        return names;
    }

    public String getServerInfo() {
        GBeanQuery query = new GBeanQuery(null, ServerInfo.class.getName());
        Set set = kernel.listGBeans(query);
        for (Iterator it = set.iterator(); it.hasNext();) {
            ObjectName name = (ObjectName) it.next();
            return name.getCanonicalName();
        }
View Full Code Here

        }
        return null;
    }

    public String getLoginService() {
        GBeanQuery query = new GBeanQuery(null, "org.apache.geronimo.security.jaas.server.JaasLoginServiceMBean");
        Set set = kernel.listGBeans(query);
        for (Iterator it = set.iterator(); it.hasNext();) {
            ObjectName name = (ObjectName) it.next();
            return name.getCanonicalName();
        }
View Full Code Here

        }
        for (int i = 0; i < moduleIDs.size(); i++) {
            TargetModuleIDImpl id = (TargetModuleIDImpl) moduleIDs.get(i);
            if(id.getType() != null && id.getType().getValue() == ModuleType.WAR.getValue()) {
                if(webApps == null) {
                    webApps = kernel.listGBeans(new GBeanQuery(null, "org.apache.geronimo.management.geronimo.WebModule"));
                }
                for (Iterator it = webApps.iterator(); it.hasNext();) {
                    ObjectName name = (ObjectName) it.next();
                    if(name.getKeyProperty("name").equals(id.getModuleID())) {
                        try {
View Full Code Here

     *       module should obviously be dependent on the other and it's not
     *       clear that this belongs in geronimo-common
     */
    public static Map mapContainersToURLs(Kernel kernel) throws Exception {
        Map containers = new HashMap();
        Set set = kernel.listGBeans(new GBeanQuery(null, "org.apache.geronimo.management.geronimo.WebManager"));
        for (Iterator it = set.iterator(); it.hasNext();) {
            ObjectName mgrName = (ObjectName) it.next();
            String[] cntNames = (String[]) kernel.getAttribute(mgrName, "containers");
            for (int i = 0; i < cntNames.length; i++) {
                String cntName = cntNames[i];
View Full Code Here

TOP

Related Classes of org.apache.geronimo.gbean.GBeanQuery

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.