Code Search for Developers
 
 
  

examples.xml from GridBlocks at Krugle


Show examples.xml syntax highlighted

<?xml version="1.0" encoding="iso-8859-1"?>

<!DOCTYPE document SYSTEM "dtd/document-v10.dtd">

<document>
  <header>
    <title>Example agents</title>
    <authors>
      <person id="JK" name="Juho Karppinen" email="jkarppin@users.sourceforge.net"/>
    </authors>
  </header>
  <body>

<s1 title="Example applications inside sampleagents.jar">
<ul>
<li><b>HelloWorld</b> traditional Hello World application.</li>
<li><b>FileFetcher</b> browses remote filesystem and download files.</li>
<li><b>Mandelbrot</b> calculates mandelbrot images using multiple servers.</li>
<li><b>Shell</b> executes Linux shell command and returns the output strings.</li>
<li><b>SimpleQuery</b> executes simple SQL query using Spitfire databases.</li>
<li><b>SQLQuery</b> executes SQL command using Spitfire databases.</li>
<li><b>Zebra26</b> returns histograms from Zebra database.</li>
</ul>

<s2 title="HelloWorld">

<p>Traditional Hello World example. Intented only for testing purposes,
since it actually doesn't do anything useful.
It only returns following text:<br/>
<code>Hello World from &lt;hostname&gt; with + parameter &lt;parameter&gt;</code>
</p>

<p>
<b>Usage:</b><br/>
Just put anything to the parameter line and it will be returned back.
</p>
</s2>

<s2 title="FileFetcher">

<p>Browse remote filesystems and transfer files.</p>

<p>
<b>Usage:</b><br/>
Parameter for the agent is a filename to be downloaded or directory to be browsed.
There are couple of flags controlling the type of action:
<ul>
<li>RECURSIVE - search also sub directories</li> 
<li>APPEND - append new directory listing to old results</li>
<li>TYPE - if empty, downloads files and list directories,<br/>
				LIST=list content of the given directory, or the parent directory for files,<br/>
				DOWNLOAD=download selected file(s) from rthe emote host
				UPLOAD=attachments are uploaded into the remote host
				</li>
</ul>
</p>

</s2>

<s2 title="Shell">
<p>Executes shell commands or native programs and returns their 
system output strings.</p>

<p>
All parameters are executed using Java Runtime library. These native
calls are dependent on undelying operation system, so Windows 
and Linux servers requires different commands.
</p>

<p>
There are some problems returning text streams as results. For example
<code>top</code> command doesn't work because its live output data
cannot be captured.
</p>
</s2>

<s2 title="SimpleQuery">

<p>Executes simple SQL query using Spitfire databases.
</p>
</s2>

<s2 title="SQLQuery">

<p>Executes SQL command using Spitfire databases.
</p>
</s2>

<s2 title="Zebra26">

<p>Returns histograms from Zebra database.
</p>
</s2>
</s1>

<s1 title="Example applications inside unosatagents.jar">

<p>To prevent dependencies to Bluetooth module some classes
are separated to unosatagents.jar. They are mostly related to
UNOSAT satellite image agent.</p>

<s2 title="ImageGallery">

<p>Performs remote image operations on ECW or JPG images.
In case of ECW images, world coordinates can be used to point locations, center the 
image and measure distances. Images can be scaled, compressed or cropped
to match the limitations of the client device, thus even large images can be downloaded into
mobile phones and other lightweight devices.
</p>

<p>
<b>Usage:</b><br/>
At the moment the parameter should be the path to the source image.
<br/>
Following flags define the image properties:
<ul>
<li>MAXSIZE=the result image is scaled to fit into this size, for example 800x800 pixels,</li>
<li>SCALE=scale the image, value between 0 and 1.</li>
<li>CENTER=the center point of the image and radius of the area,
						format is latitude, longitude, radius in meters. An example of 20 km circle
						<code>46d14m10.02sN,6d2m22.49sE,20000</code>. Works
						only with ECW images since they have embedded coordinates inside
						the image.
						</li>
<li>CROP=crop the resulting image, format is left corner, up corner, width, height. All values
are between 0 and 1. </li>
<li>QUALITY=jpeg compression level, either precoded strings LOW, MEDIUM, HIGH, ORIGINAL or
		custom number between 0 and 100.</li>
</ul>
</p>
</s2>
</s1>

  </body>
</document>



See more files for this project here

GridBlocks

GridBlocks builds a grid application framework via easy-to-use building blocks in distributed environment. The framework offers components for Grid security, distributed storage, computing, and Portlet web interfaces.

Project homepage: http://sourceforge.net/projects/gridblocks
Programming language(s): Java,JSP,XML
License: other

  dtd/
    changes-v10.dtd
    characters.ent
    document-v10.dtd
  agents.xml
  ant.xml
  book.xml
  concept.xml
  dev.xml
  download.xml
  examples.xml
  faq.xml
  features.xml
  index.xml
  install-client.xml
  install-midp.xml
  install-server.xml
  mailing.xml
  midlets.xml
  testing.xml
  usage.xml