public class ShutdownOrderComparator extends Object implements Comparator<com.atlassian.bamboo.agent.elastic.server.RemoteElasticInstance>
RemoteElasticInstance
BuildAgent.isRequestedToBeStopped() is true
BuildAgent.isEnabled() is false (disabled agents)
BuildAgent.getAgentStatus() 's index
| Constructor and Description |
|---|
ShutdownOrderComparator(com.atlassian.bamboo.buildqueue.manager.AgentManager agentManager) |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(com.atlassian.bamboo.agent.elastic.server.RemoteElasticInstance o1,
com.atlassian.bamboo.agent.elastic.server.RemoteElasticInstance o2) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalspublic ShutdownOrderComparator(com.atlassian.bamboo.buildqueue.manager.AgentManager agentManager)
public int compare(@NotNull
com.atlassian.bamboo.agent.elastic.server.RemoteElasticInstance o1,
@NotNull
com.atlassian.bamboo.agent.elastic.server.RemoteElasticInstance o2)
compare in interface Comparator<com.atlassian.bamboo.agent.elastic.server.RemoteElasticInstance>Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.