org.apache.hama.bsp
Class DispatchTasksDirective
java.lang.Object
org.apache.hama.bsp.Directive
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.
Field Summary |
static org.apache.commons.logging.Log |
LOG
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
public static final org.apache.commons.logging.Log LOG
DispatchTasksDirective
public DispatchTasksDirective()
DispatchTasksDirective
public DispatchTasksDirective(java.util.Map<java.lang.String,java.lang.String> groomServerPeers,
org.apache.hama.bsp.GroomServerAction[] actions)
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.