I
- Vertex idV
- Vertex dataE
- Edge datapublic class ServerData<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> extends Object
Constructor and Description |
---|
ServerData(CentralizedServiceWorker<I,V,E> service,
WorkerServer workerServer,
ImmutableClassesGiraphConfiguration<I,V,E> conf,
org.apache.hadoop.mapreduce.Mapper.Context context)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addIncomingWorkerToWorkerMessage(org.apache.hadoop.io.Writable message)
Add incoming message to this worker for next superstep.
|
AllAggregatorServerData |
getAllAggregatorData()
Get holder for aggregators from previous superstep
|
List<org.apache.hadoop.io.Writable> |
getAndClearCurrentWorkerToWorkerMessages()
Get and clear worker to worker messages for this superstep.
|
<M extends org.apache.hadoop.io.Writable> |
getCurrentMessageStore()
Get message store for current messages (messages which we received in
previous super step and which will be consumed in current super step)
|
List<org.apache.hadoop.io.Writable> |
getCurrentWorkerToWorkerMessages()
Get worker to worker messages received in previous superstep.
|
EdgeStore<I,V,E> |
getEdgeStore()
Return the edge store for this worker.
|
<M extends org.apache.hadoop.io.Writable> |
getIncomingMessageStore()
Get message store for incoming messages (messages which will be consumed
in the next super step)
|
OutOfCoreEngine |
getOocEngine()
Return the out-of-core engine for this worker.
|
OwnerAggregatorServerData |
getOwnerAggregatorData()
Get holder for aggregators which current worker owns
|
ConcurrentMap<Integer,ConcurrentMap<I,VertexMutations<I,V,E>>> |
getPartitionMutations()
Get the vertex mutations (synchronize on the values)
|
PartitionStore<I,V,E> |
getPartitionStore()
Return the partition store for this worker.
|
CentralizedServiceWorker<I,V,E> |
getServiceWorker()
Get the reference of the service worker.
|
void |
prepareResolveMutations()
Prepare resolving mutation.
|
void |
prepareSuperstep()
Prepare for next superstep
|
void |
resetMessageStores()
Re-initialize message stores.
|
void |
resolvePartitionMutation(Partition<I,V,E> partition)
Resolve mutations specific for a partition.
|
void |
waitForComplete()
In case of async message store we have to wait for all messages
to be processed before going into next superstep.
|
public ServerData(CentralizedServiceWorker<I,V,E> service, WorkerServer workerServer, ImmutableClassesGiraphConfiguration<I,V,E> conf, org.apache.hadoop.mapreduce.Mapper.Context context)
service
- Service workerworkerServer
- Worker serverconf
- Configurationcontext
- Mapper contextpublic OutOfCoreEngine getOocEngine()
public EdgeStore<I,V,E> getEdgeStore()
public PartitionStore<I,V,E> getPartitionStore()
public <M extends org.apache.hadoop.io.Writable> MessageStore<I,M> getIncomingMessageStore()
M
- Message datapublic <M extends org.apache.hadoop.io.Writable> MessageStore<I,M> getCurrentMessageStore()
M
- Message datapublic void resetMessageStores()
public void prepareSuperstep()
public ConcurrentMap<Integer,ConcurrentMap<I,VertexMutations<I,V,E>>> getPartitionMutations()
public OwnerAggregatorServerData getOwnerAggregatorData()
public AllAggregatorServerData getAllAggregatorData()
public CentralizedServiceWorker<I,V,E> getServiceWorker()
public List<org.apache.hadoop.io.Writable> getAndClearCurrentWorkerToWorkerMessages()
public void addIncomingWorkerToWorkerMessage(org.apache.hadoop.io.Writable message)
message
- Message receivedpublic List<org.apache.hadoop.io.Writable> getCurrentWorkerToWorkerMessages()
public void prepareResolveMutations()
public void resolvePartitionMutation(Partition<I,V,E> partition)
partition
- The partition to resolve mutations forpublic void waitForComplete()
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.