Off The Shell DLPT

This page presents the DLPT implementation (distributed index) used in SBAM as off-the-shell-solution. It briefly explain how to include and test OUR DLPT implementation in YOUR own project. More come soon about deployment over a distributed infrastructure… Until it comes, contact us for details!

Download

binary corresponding to svn revision 1032

http://graal.ens-lyon.fr/~fchuffart/files/sbam_standalone.jar

'Hello World" example

Here is the HelloWorld.java example file:

import fr.inria.graal.sbam.dlpt.api.IClient;
import fr.inria.graal.sbam.dlpt.impl.DlptCLientFactory;

public class HelloWorld {

    public static void main(String[] args) {

        System.out.println("Creating DLPT client...");
        IClient client = DlptCLientFactory.createClientWithTestPf();
        System.out.println("done.");

        System.out.println("Adding resource");
        String s = "Hello";
        client.putResourcesSeq("World", s);
        System.out.println("done.");

        System.out.println("Getting resources...");
        System.out.println("  Serializable Objects indexed by '" + s + "' are '" + client.getResources(s) + "'.");
        System.out.println("done.");

    }
}

Compile and launch it using following lines:

javac -cp sbam_standalone.jar HelloWorld.java 
java -cp .:sbam_standalone.jar HelloWorld

Enjoy!

Success story using "Off The Shell DLPT" component

 
offtheshelfdlpt.txt · Last modified: 2012/07/25 11:30 by fchuffar · [Old revisions]
Recent changes RSS feed Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki