org.apache.hama.bsp
Class Directive
java.lang.Object
org.apache.hama.bsp.Directive
- All Implemented Interfaces:
- org.apache.hadoop.io.Writable
- Direct Known Subclasses:
- DispatchTasksDirective, ReportGroomStatusDirective
public class Directive
- extends java.lang.Object
- implements org.apache.hadoop.io.Writable
A generic directive from the BSPMaster
to the
GroomServer
to take some 'action'.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
timestamp
protected long timestamp
type
protected Directive.Type type
Directive
public Directive()
Directive
public Directive(Directive.Type type)
getTimestamp
public long getTimestamp()
getType
public Directive.Type getType()
write
public void write(java.io.DataOutput out)
throws java.io.IOException
- Command for BSPMaster or GroomServer to execute.
public abstract void execute() throws Exception;
- Specified by:
write
in interface org.apache.hadoop.io.Writable
- Throws:
java.io.IOException
readFields
public void readFields(java.io.DataInput in)
throws java.io.IOException
- Specified by:
readFields
in interface org.apache.hadoop.io.Writable
- Throws:
java.io.IOException
Copyright © 2008-2011 The Apache Software Foundation. All Rights Reserved.