public abstract class SchedulerRank extends Object
RankingMonitor. This class encapsulates the data in a way that
different providers can be used that either read from a file or a data base.| Modifier and Type | Field and Description |
|---|---|
private Date |
ranktime
The exact time when the ranking commenced.
|
private String |
unique
The unique attached to this ranking.
|
| Modifier | Constructor and Description |
|---|---|
protected |
SchedulerRank(String uniq)
Constructs a new scheduler ranking, providing the unique on construct.
|
| Modifier and Type | Method and Description |
|---|---|
abstract Map<String,String> |
getFailed()
Returns the mapping of target names to failed constraints.
|
Collection<String> |
getFailedTargetsFor(String reason)
Returns all targets that have failed due to this reason.
|
String |
getFailureReason(String target)
Returns the reason for failure for the given target for this unique.
|
double |
getHighestRank()
Returns the rank of the highest target.
|
String |
getHighestTarget()
Returns the object name with the highest rank.
|
Map<String,Double> |
getHighestTargets(int nr)
Returns all targets down to the given rank.
|
abstract Map<String,Double> |
getMeritRanking()
Returns the mapping of target names to their pick merit for this unique.
|
int |
getRank(String target)
Searches the rank of the target with the given name for the current
unique.
|
Date |
getRankingTime()
Returns the time of the ranking.
|
Map<String,Double> |
getTargetsAbove(double minmerit)
Returns the sub-mapping of all targets that have a merit not lower than
the requested one.
|
String |
getUnique()
Gets the unique ID this ranking is attached to
|
int |
hashCode()
Hash code is hash of unique.
|
protected void |
setRankingTime(Date d) |
private String unique
private Date ranktime
protected SchedulerRank(String uniq)
uniq - public String getUnique()
public Date getRankingTime()
protected void setRankingTime(Date d)
public abstract Map<String,Double> getMeritRanking()
public abstract Map<String,String> getFailed()
public String getHighestTarget()
public double getHighestRank()
public int getRank(String target)
public String getFailureReason(String target)
public Collection<String> getFailedTargetsFor(String reason)
public Map<String,Double> getTargetsAbove(double minmerit)
public Map<String,Double> getHighestTargets(int nr)
nr - The rank down in the ranking.