public enum RingMemberHostMapper extends Enum<RingMemberHostMapper> implements HostMapper<RingMember>
HostMapper to to map hosts into RingMember objects.| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
Collection<RingMember> |
mapHosts(Iterable<com.datastax.driver.core.Host> hosts)
Implementations must implement this method to map each
Host in the
Metadata. |
static RingMemberHostMapper |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RingMemberHostMapper[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RingMemberHostMapper INSTANCE
public static RingMemberHostMapper[] values()
for (RingMemberHostMapper c : RingMemberHostMapper.values()) System.out.println(c);
public static RingMemberHostMapper valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic Collection<RingMember> mapHosts(Iterable<com.datastax.driver.core.Host> hosts) throws com.datastax.driver.core.exceptions.DriverException
HostMapperHost in the
Metadata.mapHosts in interface HostMapper<RingMember>hosts - the Iterable of Hosts to map, must not be null.com.datastax.driver.core.exceptions.DriverException - if a DriverException is encountered mapping values (that is, there's no need to
catch DriverException).Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.