public static enum BaseNode.Type extends Enum<BaseNode.Type>
Enum Constant and Description |
---|
PRIMARY
Nodes defined as PRIMARY are in the normal rotation to receive traffic from the load balancer.
|
SECONDARY
Nodes defined as SECONDARY are only in the rotation to receive traffic from the load balancer when all the
primary nodes fail.
|
UNRECOGNIZED |
Modifier and Type | Method and Description |
---|---|
static BaseNode.Type |
fromValue(String type) |
static BaseNode.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BaseNode.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BaseNode.Type PRIMARY
public static final BaseNode.Type SECONDARY
public static final BaseNode.Type UNRECOGNIZED
public static BaseNode.Type[] values()
for (BaseNode.Type c : BaseNode.Type.values()) System.out.println(c);
public static BaseNode.Type 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 static BaseNode.Type fromValue(String type)
Copyright © 2009–2021 The Apache Software Foundation. All rights reserved.