Class DataClientManager
- java.lang.Object
-
- org.apache.hugegraph.computer.core.network.DataClientManager
-
-
Constructor Summary
Constructors Constructor Description DataClientManager(ConnectionManager connManager, org.apache.hugegraph.computer.core.common.ComputerContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose(org.apache.hugegraph.computer.core.config.Config config)Close the resources used in the computation.voidconnect(int workerId, java.lang.String hostname, int dataPort)voidinit(org.apache.hugegraph.computer.core.config.Config config)Used to add the resources needed by the computation.voidinited(org.apache.hugegraph.computer.core.config.Config config)Used to notify all managers that master or worker is inited.java.lang.Stringname()The unique identify name.QueuedMessageSendersender()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.hugegraph.computer.core.manager.Manager
afterSuperstep, beforeSuperstep
-
-
-
-
Field Detail
-
LOG
public static final org.slf4j.Logger LOG
-
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DataClientManager
public DataClientManager(ConnectionManager connManager, org.apache.hugegraph.computer.core.common.ComputerContext context)
-
-
Method Detail
-
sender
public QueuedMessageSender sender()
-
name
public java.lang.String name()
Description copied from interface:ManagerThe unique identify name.
-
init
public void init(org.apache.hugegraph.computer.core.config.Config config)
Description copied from interface:ManagerUsed to add the resources needed by the computation. Be called only one time before all supersteps start.
-
inited
public void inited(org.apache.hugegraph.computer.core.config.Config config)
Description copied from interface:ManagerUsed to notify all managers that master or worker is inited. Be called only one time before all supersteps start.
-
close
public void close(org.apache.hugegraph.computer.core.config.Config config)
Description copied from interface:ManagerClose the resources used in the computation. Be called only one time after all supersteps ended.
-
connect
public void connect(int workerId, java.lang.String hostname, int dataPort)
-
-