accessor.removeConstraint(constraintType, constraintId);
}
void listClusterInfo(String[] optValues) {
String clusterName = optValues[0];
ClusterAccessor accessor = clusterAccessor(clusterName);
Set<ResourceId> resources = accessor.readResources().keySet();
StringBuilder sb =
new StringBuilder("Existing resources in cluster ").append(clusterName).append(":\n");
for (ResourceId resourceId : resources) {
sb.append(resourceId.stringify()).append('\n');
}
Set<ParticipantId> participants = accessor.readParticipants().keySet();
sb.append("Participants in cluster ").append(clusterName).append(":\n");
for (ParticipantId participantId : participants) {
sb.append(participantId.stringify()).append('\n');
}
System.out.print(sb.toString());