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> extends Object
Constructor and Description |
---|
MockedEnvironment() |
Modifier and Type | Method and Description |
---|---|
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 |
verifyMessageSentToAllEdges(Vertex<I,V,E> vertex,
M message) |
void |
verifyNoMessageSent()
assert that the test vertex has sent no message to a particular vertex
|
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 verifyMessageSentToAllEdges(Vertex<I,V,E> vertex, M message)
public void verifyNoMessageSent()
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.