Interface Manager
-
- All Known Implementing Classes:
DataClientManager,DataServerManager,FileManager,MasterAggrManager,MasterInputManager,MasterRpcManager,MessageRecvManager,MessageSendManager,RecvSortManager,SendSortManager,SortManager,WorkerAggrManager,WorkerInputManager,WorkerRpcManager
public interface ManagerManager is used to manage a specified resource, like AggregatorManager and CommunicationManager. A manager is created and initialized byinit(Config)} before all supersteps start, and destroyed byclose(org.apache.hugegraph.computer.core.config.Config)after all supersteps ended.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidafterSuperstep(org.apache.hugegraph.computer.core.config.Config config, int superstep)Do some clean up for a superstep.default voidbeforeSuperstep(org.apache.hugegraph.computer.core.config.Config config, int superstep)Do some initialization for a superstep.default voidclose(org.apache.hugegraph.computer.core.config.Config config)Close the resources used in the computation.default voidinit(org.apache.hugegraph.computer.core.config.Config config)Used to add the resources needed by the computation.default 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.
-
-
-
Method Detail
-
name
java.lang.String name()
The unique identify name.
-
init
default void init(org.apache.hugegraph.computer.core.config.Config config)
Used to add the resources needed by the computation. Be called only one time before all supersteps start.
-
inited
default void inited(org.apache.hugegraph.computer.core.config.Config config)
Used to notify all managers that master or worker is inited. Be called only one time before all supersteps start.
-
close
default void close(org.apache.hugegraph.computer.core.config.Config config)
Close the resources used in the computation. Be called only one time after all supersteps ended.
-
beforeSuperstep
default void beforeSuperstep(org.apache.hugegraph.computer.core.config.Config config, int superstep)Do some initialization for a superstep. Be called before a superstep. Subclass should override this method if wants to do something before a superstep.
-
afterSuperstep
default void afterSuperstep(org.apache.hugegraph.computer.core.config.Config config, int superstep)Do some clean up for a superstep. Be called after a superstep. Subclass should override this method if wants to do something after a superstep.
-
-