Package org.apache.oodt.cas.resource.monitor.ganglia.configuration

Examples of org.apache.oodt.cas.resource.monitor.ganglia.configuration.Cluster


    /**
     * test the "<CLUSTER>" tag data
     * <CLUSTER NAME="" LOCALTIME="" OWNER="" LATLONG="" URL="">
     */
    public void testClusterTag() {
        Cluster cluster = gridConfiguration.get(0);
        assertEquals("localcluster", cluster.getName());
        assertEquals("1370187645", cluster.getLocaltime());
        assertEquals("oodt", cluster.getOwner());
        assertEquals("N32.87 W117.22", cluster.getLatLong());
        assertEquals("http://www.mycluster.org/", cluster.getUrl());
    }
View Full Code Here


    /**
     * test the clusters in the grid
     */
    public void testGridClusters(){
        Cluster localCluster = gridConfiguration.get(0);
        Cluster remoteCluster = gridConfiguration.get(1);
        assertEquals("localcluster", localCluster.getName());
        assertEquals("remotecluster", remoteCluster.getName());
    }
View Full Code Here

                    atts.getValue(TN), atts.getValue(TMAX), atts.getValue(DMAX), atts.getValue(LOCATION),
                    atts.getValue(GMOND_STARTED));
            this.currentHostMetrics = new ArrayList<Metric>();

        } else if (name.equals(CLUSTER)) {
            this.currentCluster = new Cluster(atts.getValue(NAME), atts.getValue(LOCALTIME), atts.getValue(OWNER),
                    atts.getValue(LATLONG), atts.getValue(URL));
            this.currentClusterHosts = new ArrayList<Host>();
        }
    }
View Full Code Here

    /**
     * test the "<CLUSTER>" tag data
     * <CLUSTER NAME="" LOCALTIME="" OWNER="" LATLONG="" URL="">
     */
    public void testClusterTag() {
        Cluster cluster = gridConfiguration.get(0);
        assertEquals("localcluster", cluster.getName());
        assertEquals("1370187645", cluster.getLocaltime());
        assertEquals("oodt", cluster.getOwner());
        assertEquals("N32.87 W117.22", cluster.getLatLong());
        assertEquals("http://www.mycluster.org/", cluster.getUrl());
    }
View Full Code Here

    /**
     * test the clusters in the grid
     */
    public void testGridClusters(){
        Cluster localCluster = gridConfiguration.get(0);
        Cluster remoteCluster = gridConfiguration.get(1);
        assertEquals("localcluster", localCluster.getName());
        assertEquals("remotecluster", remoteCluster.getName());
    }
View Full Code Here

TOP

Related Classes of org.apache.oodt.cas.resource.monitor.ganglia.configuration.Cluster

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.