|
Lightweight Bartering Grid | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectlbg.examples.hello.HelloGrid
public class HelloGrid
A 'Hello World' in 2 classes to test the grid. Returned data is the sentence "Hello Grid", along with the input data, "a la" ICMP Echo. In case of error, the exception is returned
| Constructor Summary | |
|---|---|
HelloGrid()
|
|
| Method Summary | |
|---|---|
void |
compute()
Runs the Grid application. |
byte[] |
getResult()
Gets computed results. |
void |
setInputData(GridData[] datas)
Sets the Grid application's input data files. |
void |
setParameters(java.lang.Object[] parameters)
Sets the Grid application's input parameters. |
void |
setPlaypen(java.lang.String playpen_dir)
Sets the playpen directory of the Resource where the Grid application can write and read temporary files. |
void |
setSupplier(java.lang.String supplier_id)
Sets the id of the Supplier Peer that controls the Resource running the Grid application |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HelloGrid()
| Method Detail |
|---|
public void setParameters(java.lang.Object[] parameters)
GridApplication
setParameters in interface GridApplicationparameters - An array of parameters as Objects. Can be empty, but
never null.public void setSupplier(java.lang.String supplier_id)
GridApplication
setSupplier in interface GridApplicationsupplier_id - Supplier Peer idpublic void setPlaypen(java.lang.String playpen_dir)
GridApplication
setPlaypen in interface GridApplicationplaypen_dir - playpen directorypublic void setInputData(GridData[] datas)
GridApplication
setInputData in interface GridApplicationdatas - All input dataspublic void compute()
GridApplication
compute in interface GridApplicationpublic byte[] getResult()
GridApplicationNote: if no results are produced, new byte[0] can be used as a legal value.
getResult in interface GridApplication
|
Lightweight Bartering Grid | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright (c) 2005-2008, Cyril Briquet, parts Xavier Dalem.