cluster5.terminal.structures
Class TerminalTask
java.lang.Object
cluster5.terminal.structures.TerminalTask
- All Implemented Interfaces:
- java.io.Serializable
public class TerminalTask
- extends java.lang.Object
- implements java.io.Serializable
- See Also:
- Serialized Form
Constructor Summary |
TerminalTask(java.lang.Long taskId,
java.lang.Long projectId,
java.lang.String mainClass,
byte[] argument,
byte[] result,
java.lang.String systemOut,
java.lang.String systemErr)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TerminalTask
public TerminalTask(java.lang.Long taskId,
java.lang.Long projectId,
java.lang.String mainClass,
byte[] argument,
byte[] result,
java.lang.String systemOut,
java.lang.String systemErr)
getTaskId
public java.lang.Long getTaskId()
getProjectId
public java.lang.Long getProjectId()
getMainClass
public java.lang.String getMainClass()
getArgumentAsBytes
public byte[] getArgumentAsBytes()
getArgument
public java.lang.Object getArgument()
getResultAsBytes
public byte[] getResultAsBytes()
setResult
public void setResult(java.lang.Object result)
getSystemOut
public byte[] getSystemOut()
getSystemErr
public byte[] getSystemErr()
getTerminalId
public java.lang.Long getTerminalId()
setTerminalId
public void setTerminalId(java.lang.Long terminalId)
setArgument
public void setArgument(java.lang.Object argument)
setSystemOut
public void setSystemOut(java.lang.String systemOut)
setSystemErr
public void setSystemErr(java.lang.String systemErr)
getCpuTime
public long getCpuTime()
setCpuTime
public void setCpuTime(long cpuTime)
raisedException
public boolean raisedException()
setRaisedException
public void setRaisedException(boolean raisedException)
shouldRestartTheTask
public boolean shouldRestartTheTask()
setRestartTheTask
public void setRestartTheTask(boolean restartTheTask)