public class HostScore extends Object
1 - LOAD
for the host.
The LOAD
is computed using the IHostMetrics
and an
IHostScoringRule
for computing the workload of a host from those
metrics. The availability is then computed from the LOAD and normalized.Modifier and Type | Field and Description |
---|---|
static Comparator<HostScore> |
COMPARE_BY_HOSTNAME
Orders by hostname.
|
static Comparator<HostScore> |
COMPARE_BY_SCORE
Places elements into order by decreasing
normalized
load . |
Constructor and Description |
---|
HostScore(String hostname,
double availability) |
Modifier and Type | Method and Description |
---|---|
double |
getAvailability()
Return the normalized availability for the host.
|
String |
getHostname()
Return the hostname.
|
boolean |
isThisHost()
Return
true iff the host is this host. |
String |
toString() |
public static final Comparator<HostScore> COMPARE_BY_SCORE
normalized
load
. The getHostname()
is used to break any ties.public static final Comparator<HostScore> COMPARE_BY_HOSTNAME
/bigdata/status
.public HostScore(String hostname, double availability)
hostname
- The hostname (required, must be non-empty).availability
- The normalized availability score for this host.public double getAvailability()
score
(work is
assigned to hosts in inverse proportion to the normalized load of the
host).public String getHostname()
public boolean isThisHost()
true
iff the host is this host.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.