|
Lightweight Bartering Grid | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlbg.task.TaskOutput
public class TaskOutput
A TaskOutput is an immutable Object that contains both data and metadata resulting from the successful execution of the target Task by a Resource of the target Supplier Peer.
Constructor Summary | |
---|---|
TaskOutput(Task t,
java.lang.String supplier_peer_id,
long start_time,
GridData data,
byte[] logs,
int power)
Constructs a new TaskOutput. |
Method Summary | |
---|---|
byte[] |
getLog()
Log. |
GridData |
getOutputData()
Output data. |
boolean |
isLocalTask()
Indicates whether the Task has been executed by its owner Peer, or by a Supplier Peer. |
boolean |
isSupplyingTask()
Indicates whether the Task has been executed by its owner Peer, or by a Supplier Peer. |
int |
resourcePower()
Power of the Resource that run the Task. |
long |
runtime()
Effective Task runtime (i.e. |
java.lang.String |
supplierID()
Peer that executed the Task. |
long |
taskEndTime()
Time at which Task execution was effectively completed. |
long |
taskStartTime()
Time at which Task execution was effectively started. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TaskOutput(Task t, java.lang.String supplier_peer_id, long start_time, GridData data, byte[] logs, int power) throws GridException
t
- target Tasksupplier_peer_id
- Supplier Peer idstart_time
- Task start timedata
- Task execution resultspower
- power of the Resource that executed the Task
GridException
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String supplierID()
public boolean isLocalTask()
public boolean isSupplyingTask()
public long taskStartTime()
public long taskEndTime()
public long runtime()
This information should be used in SIM mode only, as it may be unreliable in LIVE mode.
public int resourcePower()
This information should be used in SIM mode only, as it is meaningless (i.e. arbitrary value, really) in LIVE mode.
public GridData getOutputData() throws GridException
GridException
public byte[] getLog() throws GridException
GridException
|
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.