|
Lightweight Bartering Grid | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GridApplication
This interface must be implemented by one class
in each Grid application submitted as a Task.
This class must implement:
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 |
Method Detail |
---|
void setParameters(java.lang.Object[] parameters) throws GridException
parameters
- An array of parameters as Objects. Can be empty, but
never null.
GridException
- If the parameters are not what they should be.void setInputData(GridData[] datas) throws GridException
datas
- All input datas
GridException
- If the data is not what it should be.void setSupplier(java.lang.String supplier_id) throws GridException
supplier_id
- Supplier Peer id
GridException
- If the Supplier Peer id is not what it should be.void setPlaypen(java.lang.String playpen_dir) throws GridException
playpen_dir
- playpen directory
GridException
- If the playpen directory is not what it should be.byte[] getResult()
Note: if no results are produced, new byte[0] can be used as a legal value.
void compute()
|
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.