use of org.apache.sling.discovery.commons.providers.DefaultInstanceDescription in project sling by apache.
the class TopologyHelper method clone.
public static DefaultClusterView clone(DefaultClusterView original) {
DefaultClusterView c = new DefaultClusterView(original.getId());
Iterator<InstanceDescription> it = original.getInstances().iterator();
while (it.hasNext()) {
DefaultInstanceDescription id = (DefaultInstanceDescription) it.next();
c.addInstanceDescription(cloneWOClusterView(id));
}
return c;
}
Aggregations