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!


binary corresponding to svn revision 1032

'Hello World" example

Here is the 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("Adding resource");
        String s = "Hello";
        client.putResourcesSeq("World", s);

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


Compile and launch it using following lines:

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


Success story using "Off The Shell DLPT" component

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