private static IHostAttributes hostAttributes( String host, MaintenanceMode mode, IAttribute... attributes) { return IHostAttributes.build( new HostAttributes() .setHost(host) .setMode(mode) .setAttributes(IAttribute.toBuildersSet(ImmutableSet.copyOf(attributes)))); }
private IAttribute valueAttribute(String name, String string, String... strings) { return IAttribute.build( new Attribute( name, ImmutableSet.<String>builder().add(string).addAll(Arrays.asList(strings)).build())); }