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(@NotNull RemoteElasticInstance o1,
@NotNull RemoteElasticInstance o2) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic ShutdownOrderComparator(AgentManager agentManager)
public int compare(@NotNull
@NotNull RemoteElasticInstance o1,
@NotNull
@NotNull RemoteElasticInstance o2)
compare in interface Comparator<RemoteElasticInstance>Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.