com.gigaspaces.grid.master
Class JobResult

java.lang.Object
  extended by com.gigaspaces.grid.master.JobResult
All Implemented Interfaces:
java.io.Serializable

public class JobResult
extends java.lang.Object
implements java.io.Serializable

The JobResult holds basic information about the result of processing a Job.

See Also:
Serialized Form

Constructor Summary
JobResult()
          Create a JobResult
JobResult(java.lang.Object result, long executionTime)
          Create a JobResult
 
Method Summary
 java.lang.Long getExecutionTime()
          Get the execution time in milliseconds, the cumulative execution time
 java.lang.Object getResult()
          Get the output of running the Job
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JobResult

public JobResult()
Create a JobResult


JobResult

public JobResult(java.lang.Object result,
                 long executionTime)
Create a JobResult

Parameters:
result - Object which represents the output of processing a Job
executionTime - How long it took to complete the Job
Method Detail

getExecutionTime

public java.lang.Long getExecutionTime()
Get the execution time in milliseconds, the cumulative execution time

Returns:
The execution time to process the Job in milliseconds

getResult

public java.lang.Object getResult()
Get the output of running the Job

Returns:
The outpt of running the Job


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