Tabnine Logo
MembershipStatus
Code IndexAdd Tabnine to your IDE (free)

How to use
MembershipStatus
in
com.elastisys.scale.cloudpool.api.types

Best Java code snippets using com.elastisys.scale.cloudpool.api.types.MembershipStatus (Showing top 8 results out of 315)

origin: com.elastisys.scale/cloudpool.api

/**
 * Creates a {@link MembershipStatus} that marks a machine as being
 * non-functional (i.e. inactive) and in need of service. The
 * {@link Machine} should be replaced and should not be terminated (it is
 * kept alive for troubleshooting).
 *
 * @return
 */
public static MembershipStatus awaitingService() {
  return new MembershipStatus(false, false);
}
origin: com.elastisys.scale/cloudpool.aws.commons

MembershipStatus membershipStatus = MembershipStatus.defaultStatus();
Optional<String> membershipStatusTag = getTagValue(instance, ScalingTags.MEMBERSHIP_STATUS_TAG);
if (membershipStatusTag.isPresent()) {
origin: com.elastisys.scale/cloudpool.api

  @Override
  public boolean test(Machine machine) {
    return machine.getMembershipStatus().isEvictable();
  }
}
origin: com.elastisys.scale/cloudpool.api

  @Override
  public boolean test(Machine machine) {
    return isAllocated().test(machine) && machine.getMembershipStatus().isActive();
  }
}
origin: com.elastisys.scale/cloudpool.openstack

MembershipStatus membershipStatus = MembershipStatus.defaultStatus();
if (server.getMetadata().containsKey(Constants.MEMBERSHIP_STATUS_TAG)) {
  membershipStatus = JsonUtils.toObject(
origin: com.elastisys.scale/cloudpool.api

/**
 * Creates a {@link MembershipStatus} that marks a machine as being
 * non-functional (i.e. inactive) and in need of replacement. The
 * {@link Machine} should be replaced and can be terminated.
 *
 * @return
 */
public static MembershipStatus disposable() {
  return new MembershipStatus(false, true);
}
origin: com.elastisys.scale/cloudpool.api

/**
 * Creates a default {@link MembershipStatus} that marks a machine both
 * active and evictable.
 *
 * @return
 */
public static MembershipStatus defaultStatus() {
  return new MembershipStatus(true, true);
}
origin: com.elastisys.scale/cloudpool.api

/**
 * Creates a {@link MembershipStatus} that marks a machine as blessed (or a
 * permanent pool member that cannot be evicted).
 *
 * @return
 */
public static MembershipStatus blessed() {
  return new MembershipStatus(true, false);
}
com.elastisys.scale.cloudpool.api.typesMembershipStatus

Javadoc

The pool membership status indicates if a 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.

Most used methods

  • defaultStatus
    Creates a default MembershipStatus that marks a machine both active and evictable.
  • <init>
    Creates a MembershipStatus for a machine.
  • isActive
    Indicates if this is an active (working) MachinePool member. A false value, indicates to the CloudPo
  • isEvictable
    Indicates if this Machine is a blessed member of the MachinePool. If true, the CloudPool may not ter

Popular in Java

  • Running tasks concurrently on multiple threads
  • putExtra (Intent)
  • compareTo (BigDecimal)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Socket (java.net)
    Provides a client-side TCP socket.
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Collectors (java.util.stream)
  • JTextField (javax.swing)
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now