Class MasterAggrManager
- java.lang.Object
-
- org.apache.hugegraph.computer.core.aggregator.MasterAggrManager
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringNAME
-
Constructor Summary
Constructors Constructor Description MasterAggrManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <V extends org.apache.hugegraph.computer.core.graph.value.Value>
voidaggregatedAggregator(java.lang.String name, V value)<V extends org.apache.hugegraph.computer.core.graph.value.Value>
VaggregatedValue(java.lang.String name)voidbeforeSuperstep(org.apache.hugegraph.computer.core.config.Config config, int superstep)Do some initialization for a superstep.voidclose(org.apache.hugegraph.computer.core.config.Config config)Close the resources used in the computation.AggregateRpcServicehandler()voidinited(org.apache.hugegraph.computer.core.config.Config config)Used to notify all managers that master or worker is inited.java.lang.Stringname()The unique identify name.<V extends org.apache.hugegraph.computer.core.graph.value.Value>
voidregisterAggregator(java.lang.String name, org.apache.hugegraph.computer.core.aggregator.Aggregator<V> aggr)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.hugegraph.computer.core.manager.Manager
afterSuperstep, init
-
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
name
public java.lang.String name()
Description copied from interface:ManagerThe unique identify name.
-
inited
public void inited(org.apache.hugegraph.computer.core.config.Config config)
Description copied from interface:ManagerUsed to notify all managers that master or worker is inited. Be called only one time before all supersteps start.
-
close
public void close(org.apache.hugegraph.computer.core.config.Config config)
Description copied from interface:ManagerClose the resources used in the computation. Be called only one time after all supersteps ended.
-
beforeSuperstep
public void beforeSuperstep(org.apache.hugegraph.computer.core.config.Config config, int superstep)Description copied from interface:ManagerDo some initialization for a superstep. Be called before a superstep. Subclass should override this method if wants to do something before a superstep.- Specified by:
beforeSuperstepin interfaceManager
-
handler
public AggregateRpcService handler()
-
registerAggregator
public <V extends org.apache.hugegraph.computer.core.graph.value.Value> void registerAggregator(java.lang.String name, org.apache.hugegraph.computer.core.aggregator.Aggregator<V> aggr)
-
aggregatedAggregator
public <V extends org.apache.hugegraph.computer.core.graph.value.Value> void aggregatedAggregator(java.lang.String name, V value)
-
aggregatedValue
public <V extends org.apache.hugegraph.computer.core.graph.value.Value> V aggregatedValue(java.lang.String name)
-
-