org.apache.hama.bsp
Class DispatchTasksDirective

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

public final class DispatchTasksDirective
extends Directive
implements org.apache.hadoop.io.Writable

Handles the tasks dispatching between the BSPMaster and the GroomServers.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hama.bsp.Directive
Directive.Type
 
Field Summary
static org.apache.commons.logging.Log LOG
           
 
Fields inherited from class org.apache.hama.bsp.Directive
timestamp, type
 
Constructor Summary
DispatchTasksDirective()
           
DispatchTasksDirective(java.util.Map<java.lang.String,java.lang.String> groomServerPeers, org.apache.hama.bsp.GroomServerAction[] actions)
           
 
Method Summary
 org.apache.hama.bsp.GroomServerAction[] getActions()
           
 java.util.Map<java.lang.String,java.lang.String> getGroomServerPeers()
           
 void readFields(java.io.DataInput in)
           
 void write(java.io.DataOutput out)
          Command for BSPMaster or GroomServer to execute.
 
Methods inherited from class org.apache.hama.bsp.Directive
getTimestamp, getType
 
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

DispatchTasksDirective

public DispatchTasksDirective()

DispatchTasksDirective

public DispatchTasksDirective(java.util.Map<java.lang.String,java.lang.String> groomServerPeers,
                              org.apache.hama.bsp.GroomServerAction[] actions)
Method Detail

getGroomServerPeers

public java.util.Map<java.lang.String,java.lang.String> getGroomServerPeers()

getActions

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

write

public void write(java.io.DataOutput out)
           throws java.io.IOException
Description copied from class: Directive
Command for BSPMaster or GroomServer to execute. public abstract void execute() throws Exception;

Specified by:
write in interface org.apache.hadoop.io.Writable
Overrides:
write in class Directive
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
Overrides:
readFields in class Directive
Throws:
java.io.IOException


Copyright © 2008-2011 The Apache Software Foundation. All Rights Reserved.