Class WorkerService

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

    public class WorkerService
    extends java.lang.Object
    implements java.io.Closeable
    • Constructor Summary

      Constructors 
      Constructor Description
      WorkerService()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()
      Stop the worker service.
      void execute()
      Execute the superstep in worker.
      void init​(org.apache.hugegraph.computer.core.config.Config config)
      Init worker service, create the managers used by worker service.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • WorkerService

        public WorkerService()
    • Method Detail

      • init

        public void init​(org.apache.hugegraph.computer.core.config.Config config)
        Init worker service, create the managers used by worker service.
      • close

        public void close()
        Stop the worker 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 superstep in worker. It first wait master witch superstep to start from. And then do the superstep iteration until master's superstepStat is inactive.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object