org.apache.hama.bsp
Class Directive

java.lang.Object
  extended by org.apache.hama.bsp.Directive
All Implemented Interfaces:
org.apache.hadoop.io.Writable

public class Directive
extends 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
static org.apache.commons.logging.Log LOG
           
 
Constructor Summary
Directive()
           
Directive(GroomServerStatus status)
           
Directive(Map<String,String> groomServerPeers, org.apache.hama.bsp.GroomServerAction[] actions)
           
 
Method Summary
 org.apache.hama.bsp.GroomServerAction[] getActions()
           
 Map<String,String> getGroomServerPeers()
           
 GroomServerStatus getStatus()
           
 long getTimestamp()
           
 Directive.Type getType()
           
 void readFields(DataInput in)
           
 void write(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final org.apache.commons.logging.Log LOG
Constructor Detail

Directive

public Directive()

Directive

public Directive(Map<String,String> groomServerPeers,
                 org.apache.hama.bsp.GroomServerAction[] actions)

Directive

public Directive(GroomServerStatus status)
Method Detail

getTimestamp

public long getTimestamp()

getType

public Directive.Type getType()

getGroomServerPeers

public Map<String,String> getGroomServerPeers()

getActions

public org.apache.hama.bsp.GroomServerAction[] getActions()

getStatus

public GroomServerStatus getStatus()

write

public void write(DataOutput out)
           throws IOException
Specified by:
write in interface org.apache.hadoop.io.Writable
Throws:
IOException

readFields

public void readFields(DataInput in)
                throws IOException
Specified by:
readFields in interface org.apache.hadoop.io.Writable
Throws:
IOException


Copyright © 2011 The Apache Software Foundation