public class DefaultMasterCompute extends MasterCompute
MasterCompute. This is the default
 implementation when no MasterCompute is defined by the user. It does
 nothing.| Constructor and Description | 
|---|
| DefaultMasterCompute() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | compute()Must be defined by user to specify what the master has to do. | 
| void | initialize()Initialize the MasterCompute class, this is the place to register
 aggregators. | 
| void | readFields(DataInput in) | 
| void | write(DataOutput out) | 
broadcast, getAggregatedValue, getComputation, getContext, getMessageCombiner, getReduced, getSuperstep, getTotalNumEdges, getTotalNumVertices, getWorkerInfoList, haltComputation, isHalted, logToCommandLine, registerAggregator, registerPersistentAggregator, registerReducer, registerReducer, setAggregatedValue, setComputation, setGraphState, setIncomingMessage, setMasterService, setMessageCombiner, setOutgoingMessage, setOutgoingMessageClasses, setSuperstepClassesgetConf, setConfpublic void readFields(DataInput in) throws IOException
IOExceptionpublic void write(DataOutput out) throws IOException
IOExceptionpublic void compute()
MasterComputecompute in class MasterComputepublic void initialize()
                throws InstantiationException,
                       IllegalAccessException
MasterComputeinitialize in class MasterComputeInstantiationExceptionIllegalAccessExceptionCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.