public class MembershipStatus extends Object
Machine needs to be given
special treatment.
The membership status for a machine can, for example, be set to protect the
machine from being terminated (by settings its evictability status) or to
mark a machine as being in need of replacement by flagging it as an inactive
pool member.Machine,
MachinePool,
CloudPool| Constructor and Description |
|---|
MembershipStatus()
Creates a default
MembershipStatus that marks a machine both
active and evictable. |
MembershipStatus(boolean active,
boolean evictable)
Creates a
MembershipStatus for a machine. |
| Modifier and Type | Method and Description |
|---|---|
static MembershipStatus |
awaitingService()
Creates a
MembershipStatus that marks a machine as being
non-functional (i.e. |
static MembershipStatus |
blessed()
Creates a
MembershipStatus that marks a machine as blessed (or a
permanent pool member that cannot be evicted). |
static MembershipStatus |
defaultStatus()
Creates a default
MembershipStatus that marks a machine both
active and evictable. |
static MembershipStatus |
disposable()
Creates a
MembershipStatus that marks a machine as being
non-functional (i.e. |
boolean |
equals(Object obj) |
int |
hashCode() |
boolean |
isActive()
Indicates if this is an active (working)
MachinePool member. |
boolean |
isEvictable()
Indicates if this
Machine is a blessed member of the
MachinePool. |
String |
toString() |
public MembershipStatus()
MembershipStatus that marks a machine both
active and evictable.public MembershipStatus(boolean active,
boolean evictable)
MembershipStatus for a machine.active - Indicates if this is an active (working) MachinePool
member. A false value, indicates to the
CloudPool that a replacement machine needs to be
launched for this pool member (at least until this machine has
been troubleshooted and had its active flag set back
to true).evictable - Indicates if this Machine is a blessed member of the
MachinePool. If true, the CloudPool
may not terminate this machine.public static MembershipStatus defaultStatus()
MembershipStatus that marks a machine both
active and evictable.public static MembershipStatus blessed()
MembershipStatus that marks a machine as blessed (or a
permanent pool member that cannot be evicted).public static MembershipStatus awaitingService()
MembershipStatus that marks a machine as being
non-functional (i.e. inactive) and in need of service. The
Machine should be replaced and should not be terminated (it is
kept alive for troubleshooting).public static MembershipStatus disposable()
MembershipStatus that marks a machine as being
non-functional (i.e. inactive) and in need of replacement. The
Machine should be replaced and can be terminated.public boolean isActive()
MachinePool member. A
false value, indicates to the CloudPool that a
replacement machine needs to be launched for this pool member (at least
until this machine has been troubleshooted and had its active
flag set back to true).public boolean isEvictable()
Machine is a blessed member of the
MachinePool. If true, the CloudPool may not
terminate this machine.Copyright © 2011–2017 Elastisys. All rights reserved.