Avery Ching commented on GIRAPH-47:

do we still want WorkerContext.preApplication() to throw InstantiationException 
and IllegalAccessException

No, its probably not necessary.  I think it was a quick fix to do aggreagator 

does it still make sense to keep the RepresentativeVertex to just pass the 
graphState at each superstep?

Representative vertex is not necessary anymore.  This is a big improvement I 

I'm not a fan of exposing GraphState to vertex developers. You should be able 
to register aggregators by letting the WorkerContext implement the Aggregator 
methods as a dispatcher.  What do you think?
> 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
>            Assignee: Claudio Martella
>         Attachments: GIRAPH-47.diff
> 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: 
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to