com.atlassian.bamboo.agent.elastic.server
Class RemoteElasticAgentStartTimeComparator

java.lang.Object
  extended by com.atlassian.bamboo.agent.elastic.server.RemoteElasticAgentStartTimeComparator
All Implemented Interfaces:
java.util.Comparator<RemoteElasticInstance>

public class RemoteElasticAgentStartTimeComparator
extends java.lang.Object
implements java.util.Comparator<RemoteElasticInstance>

This comparator sorts RemoteElasticAgents in chronological order of instance launch time (earliest/oldest first).


Constructor Summary
RemoteElasticAgentStartTimeComparator()
           
 
Method Summary
 int compare(RemoteElasticInstance agent1, RemoteElasticInstance agent2)
           
 
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

RemoteElasticAgentStartTimeComparator

public RemoteElasticAgentStartTimeComparator()
Method Detail

compare

public int compare(RemoteElasticInstance agent1,
                   RemoteElasticInstance agent2)
Specified by:
compare in interface java.util.Comparator<RemoteElasticInstance>


Copyright © 2012 Atlassian. All Rights Reserved.