E
- template class for the result.@PublicAPI public class ScriptResult<E> extends Object implements Serializable
Constructor and Description |
---|
ScriptResult()
ProActive empty constructor
|
ScriptResult(E result)
Create a new instance of ScriptResult.
|
ScriptResult(E result,
Throwable exception)
Constructor
|
ScriptResult(Throwable exception)
Create a new instance of ScriptResult.
|
Modifier and Type | Method and Description |
---|---|
boolean |
errorOccured()
tell if an exception has been raised during
script execution.
|
Throwable |
getException()
Return the eventual exception of the script's execution.
|
String |
getHostname()
Return the name of the host that executes the script
|
String |
getOutput()
Return the script's output.
|
E |
getResult()
Return the result's object
|
void |
setHostname(String hostname)
Sets the name of the host that executes the script
|
void |
setOutput(String output)
Sets the output of the script
|
public ScriptResult()
public ScriptResult(E result)
result
- result to storepublic ScriptResult(Throwable exception)
exception
- script exceptionpublic boolean errorOccured()
public Throwable getException()
public E getResult()
public String getOutput()
public void setOutput(String output)
output
- the script's outputpublic String getHostname()
public void setHostname(String hostname)
hostname
- script execution host name