LogNet PON : Example of Georeferenced services, called Transport

Download the transport example binaries if not already done, and extract the ZIP file

GForge page
Downloading
transport extracted

Execute the example

Open a Terminal and execute the bash script run.sh (Unix/Linux). Two xterm windows should open and execute two JVMs with the PON platform, in parallel.

Execute run.sh
xterm windows

Each PON platform is running a component, which allows you to start georeferenced services, called provider. In your browser, open these three URLs in different tabs: Transport Manager, Transport Provider et Transport Client.

Transport Manager

In the TransportManager tab, click on "Add Zone".

Click on Add Zone

Enter a polygon, and then you have finish, click on "End Add Zone".

Enter a polygon

A Pop-Up window should appear, enter the name of the component that will be created. Enter hello, for example.

Service name pop-up
Final result for manager

TransportProvider

The component hello, that you have created, is a transport-provider component type. Go into the TransportProvider tab, do a Refresh of the components list, and hello should appear.

Update providers list
Select hello

Select the Hello component, and set a description in this component. For example, "Hello World", and then set the description with the setDescription button.

Set the state of the provider

TransportClient

Click on the TransportClient, which represents a TransportClient component running on another JVM. This component doesn't know any service yet. Click on the map to search services working for your position (so in the polygon you set for hello).

Click on the map to seach services available at this position

The polygon should appear on the client's map, if it is not the case, try again by clicking the map.

The result of the search for nearby services appear in the list. Hello should be in it.

Select hello

As we are interested in hello, select it in this list, and click on connect. The tranport-client component will connect to hello.

Wait a few seconds, then click on GetDescription to invoke a service on the component hello. The response of this call should pop-up.

State of the hello component pop-up

Conclusion

In conclusion, it is possible to use the DHT for adding meta-information about the components. In this example, we present georeferenced services.

Last modified: Mon Sep 21 10:15:50 CEST 2009