public class ShutdownOrderComparator extends Object implements Comparator<RemoteElasticInstance>
RemoteElasticInstance
BuildAgent.isRequestedToBeStopped()
is true
BuildAgent.isEnabled()
is false (disabled agents)
BuildAgent.getAgentStatus()
's index
Constructor and Description |
---|
ShutdownOrderComparator(AgentManager agentManager) |
Modifier and Type | Method and Description |
---|---|
int |
compare(RemoteElasticInstance o1,
RemoteElasticInstance o2) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public ShutdownOrderComparator(AgentManager agentManager)
public int compare(@NotNull RemoteElasticInstance o1, @NotNull RemoteElasticInstance o2)
compare
in interface Comparator<RemoteElasticInstance>
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.