public enum SegmentAction extends Enum<SegmentAction>
The different action types can be used to prioritize items in a LoadQueuePeon.
| Enum Constant and Description |
|---|
DROP
Drop a segment from a server.
|
LOAD
Load a segment on a server.
|
MOVE_FROM
Move a segment from this server to another.
|
MOVE_TO
Move a segment to this server.
|
REPLICATE
Load a replica of a segment on a server.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isLoad()
True only if this action loads a segment on a server, i.e.
|
static SegmentAction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SegmentAction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SegmentAction DROP
public static final SegmentAction LOAD
replicationThrottleLimit.public static final SegmentAction REPLICATE
This is different from LOAD in two ways:
replicationThrottleLimitpublic static final SegmentAction MOVE_TO
public static final SegmentAction MOVE_FROM
public static SegmentAction[] values()
for (SegmentAction c : SegmentAction.values()) System.out.println(c);
public static SegmentAction 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 boolean isLoad()
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.