Class MasterService

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class MasterService
    extends java.lang.Object
    implements java.io.Closeable
    Master 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
      void close()
      Stop the the master service.
      void execute()
      Execute the graph.
      void init​(org.apache.hugegraph.computer.core.config.Config config)
      Init master service, create the managers used by master.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • MasterService

        public MasterService()
    • 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 in init(Config).
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.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:
        toString in class java.lang.Object