com.sun.grid.herd
Class HerdJsv
java.lang.Object
org.apache.hadoop.conf.Configured
com.sun.grid.herd.HerdJsv
- All Implemented Interfaces:
- org.apache.hadoop.conf.Configurable, org.apache.hadoop.util.Tool
public class HerdJsv
- extends org.apache.hadoop.conf.Configured
- implements org.apache.hadoop.util.Tool
The HerdJsv class is a JSV that translates hard resource requests for the
hdfs_input resource into soft requests for the hdfs_primary_rack,
hdfs_secondary_rack, and hdfs_blk* resources. In order to do the
conversion, this JSV must be able to contact the Namenode for the HDFS
cluster.
TODO: Make it possible to make the block and rack requests hard instead
of soft.
|
Method Summary |
static void |
main(java.lang.String[] args)
The method to run the JSV. |
void |
onStart(JsvManager jsv)
|
void |
onVerify(JsvManager jsv)
|
int |
run(java.lang.String[] arg0)
|
| Methods inherited from class org.apache.hadoop.conf.Configured |
getConf, setConf |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.hadoop.conf.Configurable |
getConf, setConf |
HerdJsv
public HerdJsv()
main
public static void main(java.lang.String[] args)
- The method to run the JSV.
- Parameters:
args - the command line arguments
run
public int run(java.lang.String[] arg0)
throws java.lang.Exception
- Specified by:
run in interface org.apache.hadoop.util.Tool
- Throws:
java.lang.Exception
onStart
public void onStart(JsvManager jsv)
onVerify
public void onVerify(JsvManager jsv)