|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.giraph.utils.MockUtils.MockedEnvironment<I,V,E,M>
I - vertex idV - vertex dataE - edge dataM - message datapublic static class MockUtils.MockedEnvironment<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable,M extends org.apache.hadoop.io.Writable>
mocks and holds "environment objects" that are injected into a vertex
| Constructor Summary | |
|---|---|
MockUtils.MockedEnvironment()
|
|
| Method Summary | |
|---|---|
org.apache.hadoop.conf.Configuration |
getConfiguration()
the injected hadoop configuration |
org.apache.hadoop.mapreduce.Mapper.Context |
getContext()
the injected mapper context |
GraphState |
getGraphState()
the injected graph state |
WorkerClientRequestProcessor |
getWorkerClientRequestProcessor()
the injected worker communications |
void |
verifyMessageSent(I targetVertexId,
M message)
assert that the test vertex message has been sent to a particular vertex |
void |
verifyNoMessageSent()
assert that the test vertex has sent no message to a particular vertex |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MockUtils.MockedEnvironment()
| Method Detail |
|---|
public GraphState getGraphState()
public org.apache.hadoop.mapreduce.Mapper.Context getContext()
public org.apache.hadoop.conf.Configuration getConfiguration()
public WorkerClientRequestProcessor getWorkerClientRequestProcessor()
public void verifyMessageSent(I targetVertexId,
M message)
public void verifyNoMessageSent()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||