You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@giraph.apache.org by Jyoti Yadav <ra...@gmail.com> on 2014/02/13 11:15:55 UTC

About Test directory

Hello everyone..

I have some doubts regarding test directory given inside
giraph/giraph-examples/src/test .What is purpose of this directory.How to
run the code given inside this. for single source shortest path algorithm
also one test code is given here.

Seeking your suggestions..
thanks in advance..

Jyoti

Re: About Test directory

Posted by Jyoti Yadav <ra...@gmail.com>.
Thanks Lukas..
This test directory also contains one test file for checkpointing also.It
is contained in org.apache.giraph.TestAutoCheckpoint.I also need to include
 this checkpoint feature in my algorithm.I am not getting how to do
this.While browsing I found one interface
org.apache.giraph.bsp.CentralizedServiceMaster. This interface ncludes two
methods
.
1. long *getLastGoodCheckpoint()*
*2.void **restartFromCheckpoint
<http://giraph.apache.org/giraph-core/apidocs/org/apache/giraph/bsp/CentralizedServiceMaster.html#restartFromCheckpoint(long)>*
(long checkpoint)

In org.apache.giraaph.master, BspServiceMaster is the class that implements
this interface .Would anyone please tell me how to make use of this
function in my own program.

Thanks


On Thu, Feb 13, 2014 at 7:16 AM, Lukas Nalezenec <
lukas.nalezenec@firma.seznam.cz> wrote:

>  On 13.2.2014 11:15, Jyoti Yadav wrote:
>
> Hello everyone..
>
>  I have some doubts regarding test directory given inside
> giraph/giraph-examples/src/test .What is purpose of this directory.
>
> It contains unit tests. Sources in this directory are not copied to jar.
>
>  How to run the code given inside this.
>
>
> mvn test
> or
> in you favourite IDE
>
>
>   for single source shortest path algorithm also one test code is given
> here.
>
>  Seeking your suggestions..
> thanks in advance..
>
>  Jyoti
>
>
>