org.apache.hama.bsp
Class Directive
java.lang.Object
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'.
Field Summary |
static org.apache.commons.logging.Log |
LOG
|
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
Directive
public Directive()
Directive
public Directive(Map<String,String> groomServerPeers,
org.apache.hama.bsp.GroomServerAction[] actions)
Directive
public Directive(GroomServerStatus status)
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