Class WorkerInputManager

  • All Implemented Interfaces:
    Manager

    public class WorkerInputManager
    extends java.lang.Object
    implements Manager
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String NAME  
    • Constructor Summary

      Constructors 
      Constructor Description
      WorkerInputManager​(org.apache.hugegraph.computer.core.common.ComputerContext context, MessageSendManager sendManager)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close​(org.apache.hugegraph.computer.core.config.Config config)
      Close the resources used in the computation.
      void init​(org.apache.hugegraph.computer.core.config.Config config)
      Used to add the resources needed by the computation.
      void loadGraph()
      TODO: Load vertices and edges parallel.
      java.lang.String name()
      The unique identify name.
      void service​(InputSplitRpcService rpcService)  
      • Methods inherited from class java.lang.Object

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

      • WorkerInputManager

        public WorkerInputManager​(org.apache.hugegraph.computer.core.common.ComputerContext context,
                                  MessageSendManager sendManager)
    • Method Detail

      • name

        public java.lang.String name()
        Description copied from interface: Manager
        The unique identify name.
        Specified by:
        name in interface Manager
      • init

        public void init​(org.apache.hugegraph.computer.core.config.Config config)
        Description copied from interface: Manager
        Used to add the resources needed by the computation. Be called only one time before all supersteps start.
        Specified by:
        init in interface Manager
      • close

        public void close​(org.apache.hugegraph.computer.core.config.Config config)
        Description copied from interface: Manager
        Close the resources used in the computation. Be called only one time after all supersteps ended.
        Specified by:
        close in interface Manager
      • loadGraph

        public void loadGraph()
        TODO: Load vertices and edges parallel. When this method finish, it means that all vertices and edges are sent, but there is no guarantee that all of them has been received.