Package org.apache.ivory.entity.store

Examples of org.apache.ivory.entity.store.ConfigurationStore.publish()


    public void testMapping() throws Exception {
        Cluster cluster1 = newCluster("cluster1", "colo1");
        Cluster cluster2 = newCluster("cluster2", "colo1");
        Cluster cluster3 = newCluster("cluster3", "colo2");
        ConfigurationStore store = ConfigurationStore.get();
        store.publish(EntityType.CLUSTER, cluster1);
        store.publish(EntityType.CLUSTER, cluster2);
        store.publish(EntityType.CLUSTER, cluster3);
       
        ColoClusterRelation relation = ColoClusterRelation.get();
        Set<String> clusters = relation.getClusters("colo1");
View Full Code Here


        Cluster cluster1 = newCluster("cluster1", "colo1");
        Cluster cluster2 = newCluster("cluster2", "colo1");
        Cluster cluster3 = newCluster("cluster3", "colo2");
        ConfigurationStore store = ConfigurationStore.get();
        store.publish(EntityType.CLUSTER, cluster1);
        store.publish(EntityType.CLUSTER, cluster2);
        store.publish(EntityType.CLUSTER, cluster3);
       
        ColoClusterRelation relation = ColoClusterRelation.get();
        Set<String> clusters = relation.getClusters("colo1");
        Assert.assertNotNull(clusters);
View Full Code Here

        Cluster cluster2 = newCluster("cluster2", "colo1");
        Cluster cluster3 = newCluster("cluster3", "colo2");
        ConfigurationStore store = ConfigurationStore.get();
        store.publish(EntityType.CLUSTER, cluster1);
        store.publish(EntityType.CLUSTER, cluster2);
        store.publish(EntityType.CLUSTER, cluster3);
       
        ColoClusterRelation relation = ColoClusterRelation.get();
        Set<String> clusters = relation.getClusters("colo1");
        Assert.assertNotNull(clusters);
        Assert.assertEquals(2, clusters.size());
View Full Code Here

     
    Unmarshaller unmarshaller = EntityType.CLUSTER.getUnmarshaller();
    Cluster cluster = (Cluster) unmarshaller.unmarshal(this.getClass()
        .getResourceAsStream(CLUSTER_XML));
    cluster.setName("testCluster");
    store.publish(EntityType.CLUSTER, cluster);

    cluster = (Cluster) unmarshaller.unmarshal(this.getClass()
        .getResourceAsStream(CLUSTER_XML));
    cluster.setName("backupCluster");
    store.publish(EntityType.CLUSTER, cluster);
View Full Code Here

    store.publish(EntityType.CLUSTER, cluster);

    cluster = (Cluster) unmarshaller.unmarshal(this.getClass()
        .getResourceAsStream(CLUSTER_XML));
    cluster.setName("backupCluster");
    store.publish(EntityType.CLUSTER, cluster);

    modifiableFeed = (Feed) parser.parseAndValidate(this.getClass()
        .getResourceAsStream(FEED_XML));
  }
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.