edu.ucsb.cs.jicos.services.external
Class ExternalResult

java.lang.Object
  extended by edu.ucsb.cs.jicos.services.external.ExternalResult
All Implemented Interfaces:
java.io.Serializable

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

See Also:
Serialized Form

Constructor Summary
ExternalResult()
          Default constructor.
ExternalResult(ExternalRequest externalRequest)
          Helper method - Create an ExternalResult from an ExternalRequest.
ExternalResult(ExternalResult externalResult)
          Copy constructor.
 
Method Summary
 ExternalRequestId getExternalRequestId()
          Return the external (collector's) requestId.
 java.lang.Object getInput()
          Return the input object.
 Invoice getInvoice()
          Return the Jicos invoice.
 Result getResult()
          Return the result of the Jicos computation.
 ResultId getResultId()
          Return the Jicos resultId.
 Shared getShared()
          Return the shared object.
 Task getTask()
          Return the task.
 java.lang.Throwable getThrowable()
          Return the exception, if any.
 void mailTo(java.lang.String eMailAddress)
          Set the email address to send the result to.  (Needs to be implemented!!!)
 void setExternalRequestId(ExternalRequestId externalRequestId)
          Set the external request id for this result.
 void setInput(java.lang.Object input)
          Set the input for this result.
 void setInvoice(Invoice invoice)
          Set the Jicos invoice for this result.
 void setResult(Result result)
          Set the result of the Jicos computation for this result.
 void setResultId(ResultId resultId)
          Set the Jicos requestId for this result.
 void setShared(Shared shared)
          Set the shared object for this result.
 void setTask(Task task)
          Set the task for this result.
 void setThrowable(java.lang.Throwable throwable)
          Set the exception for this result.
 java.lang.String toHtmlString(java.lang.String hostPort)
          Convert an external result to HTML text.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExternalResult

public ExternalResult()
Default constructor.


ExternalResult

public ExternalResult(ExternalResult externalResult)
Copy constructor.

Parameters:
externalResult - Instance to copy.

ExternalResult

public ExternalResult(ExternalRequest externalRequest)
Helper method - Create an ExternalResult from an ExternalRequest.

Parameters:
externalRequest - An external request.
Method Detail

getTask

public Task getTask()
Return the task.


getShared

public Shared getShared()
Return the shared object.


getInput

public java.lang.Object getInput()
Return the input object.


getExternalRequestId

public ExternalRequestId getExternalRequestId()
Return the external (collector's) requestId.


getResultId

public ResultId getResultId()
Return the Jicos resultId.


getResult

public Result getResult()
Return the result of the Jicos computation.


getInvoice

public Invoice getInvoice()
Return the Jicos invoice.


getThrowable

public java.lang.Throwable getThrowable()
Return the exception, if any.


setTask

public void setTask(Task task)
Set the task for this result.


setShared

public void setShared(Shared shared)
Set the shared object for this result.


setInput

public void setInput(java.lang.Object input)
Set the input for this result.


setExternalRequestId

public void setExternalRequestId(ExternalRequestId externalRequestId)
Set the external request id for this result.


setResultId

public void setResultId(ResultId resultId)
Set the Jicos requestId for this result.


setResult

public void setResult(Result result)
Set the result of the Jicos computation for this result.


setInvoice

public void setInvoice(Invoice invoice)
Set the Jicos invoice for this result.


setThrowable

public void setThrowable(java.lang.Throwable throwable)
Set the exception for this result.


mailTo

public void mailTo(java.lang.String eMailAddress)
            throws java.lang.Exception
Set the email address to send the result to.  (Needs to be implemented!!!)

Throws:
java.lang.Exception

toHtmlString

public java.lang.String toHtmlString(java.lang.String hostPort)
                              throws java.lang.Exception
Convert an external result to HTML text.

Parameters:
hostPort - The host:port of the server.
Returns:
The HTML encoded text.
Throws:
java.lang.Exception - Because Task.createResult can throw this.


Jicos: http://cs.ucsb.edu/projects/jicos