com.gigaspaces.grid.master
Class TaskResult

java.lang.Object
  extended by com.gigaspaces.grid.master.TaskResult
All Implemented Interfaces:
java.io.Serializable, net.jini.core.entry.Entry

public class TaskResult
extends java.lang.Object
implements net.jini.core.entry.Entry

The TaskResult holds statistics for a completed Task.

See Also:
Serialized Form

Field Summary
 java.lang.Long backLog
           
 java.lang.Double executionTime
           
 Identity id
           
 java.lang.Long taskSubmittedTime
           
 
Constructor Summary
TaskResult()
          Create a new TaskResult
TaskResult(Identity id)
          Create new task result with specified Identity
 
Method Summary
 java.lang.Long getBacklog()
          Get the backlog value of the space when this entry was processed
 double getExecutionTime()
          Get the execution time
 Identity getIdentity()
          Return the universally unique identifier for this response.
 long getSubmittedTime()
          Get the time the task was submitted
 void setBacklog(java.lang.Long backLog)
          Set the backlog value of the space when this entry was processed
 void setExecutionTime(double time)
          Set the execution time
 void setIdentity(Identity id)
          Specify an universally unique identifier for the particular defined task.
 void setSubmittedTime(long taskSubmission)
          Set the time the entry responsible for producing the TaskResult was submitted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

public Identity id

executionTime

public java.lang.Double executionTime

backLog

public java.lang.Long backLog

taskSubmittedTime

public java.lang.Long taskSubmittedTime
Constructor Detail

TaskResult

public TaskResult()
Create a new TaskResult


TaskResult

public TaskResult(Identity id)
Create new task result with specified Identity

Parameters:
id - The Identity
Method Detail

setIdentity

public void setIdentity(Identity id)
Specify an universally unique identifier for the particular defined task.


getIdentity

public Identity getIdentity()
Return the universally unique identifier for this response.


getExecutionTime

public double getExecutionTime()
Get the execution time


setExecutionTime

public void setExecutionTime(double time)
Set the execution time


setBacklog

public void setBacklog(java.lang.Long backLog)
Set the backlog value of the space when this entry was processed


getBacklog

public java.lang.Long getBacklog()
Get the backlog value of the space when this entry was processed


setSubmittedTime

public void setSubmittedTime(long taskSubmission)
Set the time the entry responsible for producing the TaskResult was submitted


getSubmittedTime

public long getSubmittedTime()
Get the time the task was submitted

Returns:
The time the task was submitted


Copyright (c) 2007 GigaSpaces Technologies, Inc.
All Rights Reserved.