public class ClusterStatus
extends java.lang.Object
implements org.apache.hadoop.io.Writable
ClusterStatus
provides clients with information such as:
JobTracker
.
Clients can query for the latest ClusterStatus
, via
JobClient.getClusterStatus()
.
JobClient
Modifier and Type | Field and Description |
---|---|
static long |
UNINITIALIZED_MEMORY_VALUE |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<java.lang.String> |
getActiveTrackerNames()
Get the names of task trackers in the cluster.
|
java.util.Collection<java.lang.String> |
getBlacklistedTrackerNames()
Get the names of task trackers in the cluster.
|
int |
getBlacklistedTrackers()
Get the number of blacklisted task trackers in the cluster.
|
Cluster.JobTrackerStatus |
getJobTrackerStatus()
Get the JobTracker's status.
|
int |
getMapTasks()
Get the number of currently running map tasks in the cluster.
|
int |
getMaxMapTasks()
Get the maximum capacity for running map tasks in the cluster.
|
long |
getMaxMemory()
Deprecated.
|
int |
getMaxReduceTasks()
Get the maximum capacity for running reduce tasks in the cluster.
|
int |
getNumExcludedNodes()
Get the number of excluded hosts in the cluster.
|
int |
getReduceTasks()
Get the number of currently running reduce tasks in the cluster.
|
int |
getTaskTrackers()
Get the number of task trackers in the cluster.
|
long |
getTTExpiryInterval()
Get the tasktracker expiry interval for the cluster
|
long |
getUsedMemory()
Deprecated.
|
void |
readFields(java.io.DataInput in) |
void |
write(java.io.DataOutput out) |
public static final long UNINITIALIZED_MEMORY_VALUE
public int getTaskTrackers()
public java.util.Collection<java.lang.String> getActiveTrackerNames()
public java.util.Collection<java.lang.String> getBlacklistedTrackerNames()
public int getBlacklistedTrackers()
public int getNumExcludedNodes()
public long getTTExpiryInterval()
public int getMapTasks()
public int getReduceTasks()
public int getMaxMapTasks()
public int getMaxReduceTasks()
public Cluster.JobTrackerStatus getJobTrackerStatus()
Cluster.JobTrackerStatus
of the JobTracker@Deprecated public long getUsedMemory()
JobTracker
JobTracker
@Deprecated public long getMaxMemory()
JobTracker
JobTracker
public void write(java.io.DataOutput out) throws java.io.IOException
write
in interface org.apache.hadoop.io.Writable
java.io.IOException
public void readFields(java.io.DataInput in) throws java.io.IOException
readFields
in interface org.apache.hadoop.io.Writable
java.io.IOException
Copyright © 2009 The Apache Software Foundation