org.apache.hama.bsp
Class Directive

java.lang.Object
  extended by 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'.


Nested Class Summary
static class Directive.Type
           
 
Field Summary
protected  long timestamp
           
protected  Directive.Type type
           
 
Constructor Summary
Directive()
           
Directive(Directive.Type type)
           
 
Method Summary
 long getTimestamp()
           
 Directive.Type getType()
           
 void readFields(java.io.DataInput in)
           
 void write(java.io.DataOutput out)
          Command for BSPMaster or GroomServer to execute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

timestamp

protected long timestamp

type

protected Directive.Type type
Constructor Detail

Directive

public Directive()

Directive

public Directive(Directive.Type type)
Method Detail

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.