Class BspBase
- java.lang.Object
-
- org.apache.hugegraph.computer.core.bsp.BspBase
-
- Direct Known Subclasses:
Bsp4Master,Bsp4Worker
public abstract class BspBase extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description BspBase(org.apache.hugegraph.computer.core.config.Config config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longbarrierOnMasterTimeout()longbarrierOnWorkersTimeout()protected org.apache.hugegraph.computer.core.bsp.BspClientbspClient()voidclean()Cleaned up the BSP datavoidclose()Close the connection to etcd or Zookeeper.protected java.lang.StringconstructPath(BspEvent event, java.lang.Object... paths)This method is used to generate the key saved in etcd.longlogInterval()longregisterTimeout()intworkerCount()
-
-
-
Method Detail
-
close
public void close()
Close the connection to etcd or Zookeeper. Contrary to init. Could not do any bsp operation after close is called.
-
clean
public void clean()
Cleaned up the BSP data
-
bspClient
protected final org.apache.hugegraph.computer.core.bsp.BspClient bspClient()
-
workerCount
public final int workerCount()
-
registerTimeout
public final long registerTimeout()
-
barrierOnMasterTimeout
public final long barrierOnMasterTimeout()
-
barrierOnWorkersTimeout
public final long barrierOnWorkersTimeout()
-
logInterval
public final long logInterval()
-
constructPath
protected java.lang.String constructPath(BspEvent event, java.lang.Object... paths)
This method is used to generate the key saved in etcd. We can add attempt id in the path for further checkpoint based implementation.
-
-