org.apache.hadoop.hdfs.server.blockmanagement
Class NumberReplicas

java.lang.Object
  extended by org.apache.hadoop.hdfs.server.blockmanagement.NumberReplicas

public class NumberReplicas
extends Object

A immutable object that stores the number of live replicas and the number of decommissined Replicas.


Method Summary
 int corruptReplicas()
           
 int decommissionedReplicas()
           
 int excessReplicas()
           
 int liveReplicas()
           
 int replicasOnStaleNodes()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

liveReplicas

public int liveReplicas()

decommissionedReplicas

public int decommissionedReplicas()

corruptReplicas

public int corruptReplicas()

excessReplicas

public int excessReplicas()

replicasOnStaleNodes

public int replicasOnStaleNodes()
Returns:
the number of replicas which are on stale nodes. This is not mutually exclusive with the other counts -- ie a replica may count as both "live" and "stale".


Copyright © 2014 Apache Software Foundation. All Rights Reserved.