|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.giraph.examples.SimpleCheckpointVertex
public class SimpleCheckpointVertex
An example that simply uses its id, value, and edges to compute new data every iteration to verify that checkpoint restarting works. Fault injection can also test automated checkpoint restarts.
| Nested Class Summary | |
|---|---|
static class |
SimpleCheckpointVertex.SimpleCheckpointComputation
Actual computation. |
static class |
SimpleCheckpointVertex.SimpleCheckpointVertexMasterCompute
Master compute associated with SimpleCheckpointVertex. |
static class |
SimpleCheckpointVertex.SimpleCheckpointVertexWorkerContext
Worker context associated with SimpleCheckpointVertex. |
| Field Summary | |
|---|---|
static String |
ENABLE_FAULT
Should fault? |
static int |
FAULTING_SUPERSTEP
Which superstep to cause the worker to fail |
static long |
FAULTING_VERTEX_ID
Vertex id to fault on |
static String |
SUPERSTEP_COUNT
Dynamically set number of supersteps |
| Constructor Summary | |
|---|---|
SimpleCheckpointVertex()
|
|
| Method Summary | |
|---|---|
org.apache.hadoop.conf.Configuration |
getConf()
|
static void |
main(String[] args)
Executable from the command line. |
int |
run(String[] args)
|
void |
setConf(org.apache.hadoop.conf.Configuration conf)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int FAULTING_SUPERSTEP
public static final long FAULTING_VERTEX_ID
public static final String SUPERSTEP_COUNT
public static final String ENABLE_FAULT
| Constructor Detail |
|---|
public SimpleCheckpointVertex()
| Method Detail |
|---|
public int run(String[] args)
throws Exception
run in interface org.apache.hadoop.util.ToolException
public static void main(String[] args)
throws Exception
args - Command line args.
Exceptionpublic org.apache.hadoop.conf.Configuration getConf()
getConf in interface org.apache.hadoop.conf.Configurablepublic void setConf(org.apache.hadoop.conf.Configuration conf)
setConf in interface org.apache.hadoop.conf.Configurable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||