[ https://issues.apache.org/jira/browse/GIRAPH-47?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13121448#comment-13121448 ]
Avery Ching commented on GIRAPH-47: ----------------------------------- Sorry if I wasn't clear, but we could do away with the Configurable workerObject and instead have a method in BasicVertex: WorkerContext getWorkerContext(); While you may be blocked by GIRAPH-36 for your test, you can still try this out on the unittests as they do use the pre/post/application/superstep methods (i.e. SimplePageRankVertex). I've modified the interface slightly to give the Context at the beginning. {code} public interface WorkerContext { void initialize(Context context); // Called before anything done on this worker void close(); // Called when worker is done void preSuperstep(); // Called before compute() on any vertex void postSuperstep(); // Called after all vertices have run compute() } {code} > Export Worker's Context/State to vertices through > pre/post/Application/Superstep > -------------------------------------------------------------------------------- > > Key: GIRAPH-47 > URL: https://issues.apache.org/jira/browse/GIRAPH-47 > Project: Giraph > Issue Type: Improvement > Components: graph > Affects Versions: 0.70.0 > Reporter: Claudio Martella > > It would be quite useful for vertices to reach some worker-related > information stored i.e. in the GraphState class. > This information could be exported as a parameter to > pre/post/Application/Superstep like this: > public void preApplication(Configurable workerObject); > public void postApplication(Configurable workerObject); > public void preSuperstep(Configurable workerObject); > public void postSuperstep(Configurable workerObject); > public Configurable getWorkerObject(); > Another possibility is to add a Context inner class to BasicVertex to store > this information. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira