|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.agent.elastic.server.ShutdownOrderComparator
public class ShutdownOrderComparator
A compartator that will sort agents on the order which they should shutdown. Order is
RemoteElasticInstance
BuildAgent.isRequestedToBeStopped()
is true
BuildAgent.isEnabled()
is false (disabled agents)
BuildAgent.getAgentStatus()
's index
Constructor Summary | |
---|---|
ShutdownOrderComparator(LocalAgentManager localAgentManager)
|
Method Summary | |
---|---|
int |
compare(RemoteElasticInstance o1,
RemoteElasticInstance o2)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
---|
equals |
Constructor Detail |
---|
public ShutdownOrderComparator(LocalAgentManager localAgentManager)
Method Detail |
---|
public int compare(@NotNull RemoteElasticInstance o1, @NotNull RemoteElasticInstance o2)
compare
in interface java.util.Comparator<RemoteElasticInstance>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |