Package org.apache.geronimo.farm.plugin

Examples of org.apache.geronimo.farm.plugin.JpaPluginList


    private void checkCluster(String clusterName, String pluginListName, int clusterSize) {
        FarmGBean.JpaContext context = new FarmGBean.JpaContext(emf);
        JpaClusterInfo cluster = context.getClusterInfo(clusterName);
        log.info("retrieved " + cluster.getName());
        log.info("cluster pluginlist count: " + cluster.getPluginLists().size());
        JpaPluginList pluginList = cluster.getPluginLists().iterator().next();
        if (!pluginList.getName().equals(pluginListName)) {
            throw new IllegalStateException("Wrong name: " + pluginList.getName());
        }
        List<JpaClusterInfo> clusters = pluginList.getClusters();
        if (clusters.size() != clusterSize) {
            throw new IllegalStateException("Wrong size: " + clusters.size());
        }
        context.close();
    }
View Full Code Here


    private void checkCluster(String clusterName, String pluginListName, int clusterSize) {
        FarmGBean.JpaContext context = new FarmGBean.JpaContext(emf);
        JpaClusterInfo cluster = context.getClusterInfo(clusterName);
        log.info("retrieved " + cluster.getName());
        log.info("cluster pluginlist count: " + cluster.getPluginLists().size());
        JpaPluginList pluginList = cluster.getPluginLists().iterator().next();
        if (!pluginList.getName().equals(pluginListName)) {
            throw new IllegalStateException("Wrong name: " + pluginList.getName());
        }
        List<JpaClusterInfo> clusters = pluginList.getClusters();
        if (clusters.size() != clusterSize) {
            throw new IllegalStateException("Wrong size: " + clusters.size());
        }
        context.close();
    }
View Full Code Here

    private void checkCluster(String clusterName, String pluginListName, int clusterSize) {
        FarmGBean.JpaContext context = new FarmGBean.JpaContext(emf);
        JpaClusterInfo cluster = context.getClusterInfo(clusterName);
        log.info("retrieved " + cluster.getName());
        log.info("cluster pluginlist count: " + cluster.getPluginLists().size());
        JpaPluginList pluginList = cluster.getPluginLists().iterator().next();
        if (!pluginList.getName().equals(pluginListName)) {
            throw new IllegalStateException("Wrong name: " + pluginList.getName());
        }
        List<JpaClusterInfo> clusters = pluginList.getClusters();
        if (clusters.size() != clusterSize) {
            throw new IllegalStateException("Wrong size: " + clusters.size());
        }
        context.close();
    }
View Full Code Here

TOP

Related Classes of org.apache.geronimo.farm.plugin.JpaPluginList

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.