Class ForestInfo
- java.lang.Object
-
- com.marklogic.mapreduce.utilities.ForestInfo
-
- All Implemented Interfaces:
org.apache.hadoop.io.Writable
public class ForestInfo extends Object implements org.apache.hadoop.io.Writable
-
-
Constructor Summary
Constructors Constructor Description ForestInfo()ForestInfo(String hostName, long fmCount, boolean updatable, List<ForestHost> replicas)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetFragmentCount()StringgetHostName()List<ForestHost>getReplicas()booleangetUpdatable()voidreadFields(DataInput in)voidwrite(DataOutput out)
-
-
-
Constructor Detail
-
ForestInfo
public ForestInfo()
-
ForestInfo
public ForestInfo(String hostName, long fmCount, boolean updatable, List<ForestHost> replicas)
-
-
Method Detail
-
getFragmentCount
public long getFragmentCount()
-
getHostName
public String getHostName()
-
getUpdatable
public boolean getUpdatable()
-
getReplicas
public List<ForestHost> getReplicas()
-
readFields
public void readFields(DataInput in) throws IOException
- Specified by:
readFieldsin interfaceorg.apache.hadoop.io.Writable- Throws:
IOException
-
write
public void write(DataOutput out) throws IOException
- Specified by:
writein interfaceorg.apache.hadoop.io.Writable- Throws:
IOException
-
-