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.oss.driver.api.core.metadata.Node> hosts)
Implementations must implement this method to map each
Node. |
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.oss.driver.api.core.metadata.Node> hosts) throws com.datastax.oss.driver.api.core.DriverException
HostMapperNode.mapHosts in interface HostMapper<RingMember>hosts - the Iterable of Nodes to map, must not be null.com.datastax.oss.driver.api.core.DriverException - if a DriverException is encountered mapping values (that is, there's no need to
catch DriverException).Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.