Class MasterService
- java.lang.Object
-
- org.apache.hugegraph.computer.core.master.MasterService
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class MasterService extends java.lang.Object implements java.io.CloseableMaster service is job's controller. It controls the superstep iteration of the job. Master service assembles the managers used by master. For example, aggregator manager, input manager and so on.
-
-
Constructor Summary
Constructors Constructor Description MasterService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Stop the the master service.voidexecute()Execute the graph.voidinit(org.apache.hugegraph.computer.core.config.Config config)Init master service, create the managers used by master.java.lang.StringtoString()
-
-
-
Method Detail
-
init
public void init(org.apache.hugegraph.computer.core.config.Config config)
Init master service, create the managers used by master.
-
close
public void close()
Stop the the master service. Stop the managers created ininit(Config).- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable
-
execute
public void execute()
Execute the graph. First determines which superstep to start from. And then execute the superstep iteration. After the superstep iteration, output the result.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-