Class WorkerService
- java.lang.Object
-
- org.apache.hugegraph.computer.core.worker.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 voidclose()Stop the worker service.voidexecute()Execute the superstep in worker.voidinit(org.apache.hugegraph.computer.core.config.Config config)Init worker service, create the managers used by worker service.java.lang.StringtoString()
-
-
-
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 ininit(Config).- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.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:
toStringin classjava.lang.Object
-
-