Interface Manager

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default void afterSuperstep​(org.apache.hugegraph.computer.core.config.Config config, int superstep)
      Do some clean up for a superstep.
      default void beforeSuperstep​(org.apache.hugegraph.computer.core.config.Config config, int superstep)
      Do some initialization for a superstep.
      default void close​(org.apache.hugegraph.computer.core.config.Config config)
      Close the resources used in the computation.
      default void init​(org.apache.hugegraph.computer.core.config.Config config)
      Used to add the resources needed by the computation.
      default void inited​(org.apache.hugegraph.computer.core.config.Config config)
      Used to notify all managers that master or worker is inited.
      java.lang.String name()
      The unique identify name.
    • Method Detail

      • name

        java.lang.String name()
        The unique identify name.
      • init

        default void init​(org.apache.hugegraph.computer.core.config.Config config)
        Used to add the resources needed by the computation. Be called only one time before all supersteps start.
      • inited

        default void inited​(org.apache.hugegraph.computer.core.config.Config config)
        Used to notify all managers that master or worker is inited. Be called only one time before all supersteps start.
      • close

        default void close​(org.apache.hugegraph.computer.core.config.Config config)
        Close the resources used in the computation. Be called only one time after all supersteps ended.
      • beforeSuperstep

        default void beforeSuperstep​(org.apache.hugegraph.computer.core.config.Config config,
                                     int superstep)
        Do some initialization for a superstep. Be called before a superstep. Subclass should override this method if wants to do something before a superstep.
      • afterSuperstep

        default void afterSuperstep​(org.apache.hugegraph.computer.core.config.Config config,
                                    int superstep)
        Do some clean up for a superstep. Be called after a superstep. Subclass should override this method if wants to do something after a superstep.