|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hama.bsp.ClusterStatus
public class ClusterStatus
Status information on the current state of the BSP cluster.
ClusterStatus
provides clients with information such as:
BSPMaster
.
Clients can query for the latest ClusterStatus
, via
BSPJobClient.getClusterStatus(boolean)
.
BSPMaster
Constructor Summary | |
---|---|
ClusterStatus()
|
|
ClusterStatus(int grooms,
int tasks,
int maxTasks,
BSPMaster.State state)
|
|
ClusterStatus(Map<String,String> activeGrooms,
int tasks,
int maxTasks,
BSPMaster.State state)
|
Method Summary | |
---|---|
Map<String,String> |
getActiveGroomNames()
Get the names of groom servers, and their peers, in the cluster. |
BSPMaster.State |
getBSPMasterState()
Get the current state of the BSPMaster ,
as BSPMaster.State |
int |
getGroomServers()
Get the number of groom servers in the cluster. |
int |
getMaxTasks()
Get the maximum capacity for running tasks in the cluster. |
int |
getTasks()
Get the number of currently running tasks in the cluster. |
void |
readFields(DataInput in)
|
void |
write(DataOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClusterStatus()
public ClusterStatus(int grooms, int tasks, int maxTasks, BSPMaster.State state)
public ClusterStatus(Map<String,String> activeGrooms, int tasks, int maxTasks, BSPMaster.State state)
Method Detail |
---|
public int getGroomServers()
public Map<String,String> getActiveGroomNames()
public int getTasks()
public int getMaxTasks()
public BSPMaster.State getBSPMasterState()
BSPMaster
,
as BSPMaster.State
BSPMaster
.public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |