|
Lightweight Bartering Grid | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlbg.examples.hash.GridHasher
public class GridHasher
Hash a set of data and return a user-readable hash.
Constructor Summary | |
---|---|
GridHasher()
|
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 GridHasher()
Method Detail |
---|
public void setParameters(java.lang.Object[] parameters)
GridApplication
setParameters
in interface GridApplication
parameters
- An array of parameters as Objects. Can be empty, but
never null.public void setInputData(GridData[] datas)
GridApplication
setInputData
in interface GridApplication
datas
- All input dataspublic void setSupplier(java.lang.String supplier_id)
GridApplication
setSupplier
in interface GridApplication
supplier_id
- Supplier Peer idpublic void setPlaypen(java.lang.String playpen_dir)
GridApplication
setPlaypen
in interface GridApplication
playpen_dir
- playpen directorypublic void compute()
GridApplication
compute
in interface GridApplication
public byte[] getResult()
GridApplication
Note: 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.