Examples of GBeanQuery


Examples of org.apache.geronimo.gbean.GBeanQuery

    /**
     * Get a list of containers for this web implementation.
     */
    public String[] getContainers() {
        GBeanQuery query = new GBeanQuery(null, JettyContainer.class.getName());
        Set names = kernel.listGBeans(query);
        String[] result = new String[names.size()];
        int i = 0;
        for (Iterator it = names.iterator(); it.hasNext();) {
            ObjectName name = (ObjectName) it.next();
View Full Code Here

Examples of org.apache.geronimo.gbean.GBeanQuery

     * protocol.
     *
     * @param protocol A protocol as returned by getSupportedProtocols
     */
    public String[] getConnectors(String protocol) {
        GBeanQuery query = new GBeanQuery(null, JettyWebConnector.class.getName());
        Set names = kernel.listGBeans(query);
        List result = new ArrayList();
        for (Iterator it = names.iterator(); it.hasNext();) {
            ObjectName name = (ObjectName) it.next();
            try {
View Full Code Here

Examples of org.apache.geronimo.gbean.GBeanQuery

        }
        return (String[]) result.toArray(new String[result.size()]);
    }

    public String getAccessLog(String containerObjectName) {
        GBeanQuery query = new GBeanQuery(null, JettyLogManager.class.getName());
        Set names = kernel.listGBeans(query);
        if(names.size() == 0) {
            return null;
        } else if(names.size() > 1) {
            throw new IllegalStateException("Should not be more than one Jetty access log manager");
View Full Code Here

Examples of org.apache.geronimo.gbean.GBeanQuery

    /**
     * Gets the ObjectNames of any existing connectors.
     */
    public String[] getConnectors() {
        GBeanQuery query = new GBeanQuery(null, JettyWebConnector.class.getName());
        Set names = kernel.listGBeans(query);
        String[] result = new String[names.size()];
        int i = 0;
        for (Iterator it = names.iterator(); it.hasNext();) {
            ObjectName name = (ObjectName) it.next();
View Full Code Here

Examples of org.apache.geronimo.gbean.GBeanQuery

            return getConnectorsForContainer(containerObjectName);
        }
        try {
            ObjectName containerName = ObjectName.getInstance(containerObjectName);
            List results = new ArrayList();
            GBeanQuery query = new GBeanQuery(null, JettyWebConnector.class.getName());
            Set set = kernel.listGBeans(query); // all Jetty connectors
            for (Iterator it = set.iterator(); it.hasNext();) {
                ObjectName name = (ObjectName) it.next(); // a single Jetty connector
                GBeanData data = kernel.getGBeanData(name);
                Set refs = data.getReferencePatterns(JettyConnector.CONNECTOR_CONTAINER_REFERENCE);
View Full Code Here

Examples of org.apache.geronimo.gbean.GBeanQuery

    public String[] getConnectorsForContainer(String containerObjectName) {
        try {
            ObjectName containerName = ObjectName.getInstance(containerObjectName);
            List results = new ArrayList();
            GBeanQuery query = new GBeanQuery(null, JettyWebConnector.class.getName());
            Set set = kernel.listGBeans(query); // all Jetty connectors
            for (Iterator it = set.iterator(); it.hasNext();) {
                ObjectName name = (ObjectName) it.next(); // a single Jetty connector
                GBeanData data = kernel.getGBeanData(name);
                Set refs = data.getReferencePatterns(JettyConnector.CONNECTOR_CONTAINER_REFERENCE);
View Full Code Here

Examples of org.apache.geronimo.gbean.GBeanQuery

    public String[] getJavaVMs() {
        return Util.getObjectNames(kernel, baseName, new String[]{"JVM"});
    }

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

Examples of org.apache.geronimo.gbean.GBeanQuery

        }
        return results;
    }

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

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

Examples of org.apache.geronimo.gbean.GBeanQuery

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