public static class RandomMessageBenchmark.RandomMessageBenchmarkWorkerContext extends WorkerContext
WorkerContext forRandomMessageBenchmark.| Constructor and Description |
|---|
RandomMessageBenchmarkWorkerContext() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getMessageBytes()
Get the message bytes to be used for sending.
|
int |
getNumMessagePerEdge()
Get the number of edges per message.
|
int |
getNumSupersteps()
Get the number of supersteps.
|
void |
postApplication()
Finalize the WorkerContext.
|
void |
postSuperstep()
Execute user code.
|
void |
preApplication()
Initialize the WorkerContext.
|
void |
preSuperstep()
Execute user code.
|
void |
randomizeMessageBytes()
Randomize the message bytes.
|
getAndClearMessagesFromOtherWorkers, getContext, getMyWorkerIndex, getSuperstep, getTotalNumEdges, getTotalNumVertices, getWorkerCount, getWorkerForVertex, logToCommandLine, readFields, sendMessageToWorker, setGraphState, setupSuperstep, writeaggregate, getAggregatedValue, getBroadcast, reduce, reduceMerge, setWorkerGlobalCommUsagegetConf, setConfpublic void preApplication()
throws InstantiationException,
IllegalAccessException
WorkerContextpreApplication in class WorkerContextInstantiationException - Expected instantiation in this method.IllegalAccessException - Thrown for getting the classpublic void preSuperstep()
WorkerContextpreSuperstep in class WorkerContextpublic void postSuperstep()
WorkerContextpostSuperstep in class WorkerContextpublic void postApplication()
WorkerContextpostApplication in class WorkerContextpublic byte[] getMessageBytes()
public int getNumMessagePerEdge()
public int getNumSupersteps()
public void randomizeMessageBytes()
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.