cluster5.terminal.structures
Class TerminalTask

java.lang.Object
  extended by 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)
           
 
Method Summary
 java.lang.Object getArgument()
           
 byte[] getArgumentAsBytes()
           
 long getCpuTime()
           
 java.lang.String getMainClass()
           
 java.lang.Long getProjectId()
           
 byte[] getResultAsBytes()
           
 byte[] getSystemErr()
           
 byte[] getSystemOut()
           
 java.lang.Long getTaskId()
           
 java.lang.Long getTerminalId()
           
 boolean raisedException()
           
 void setArgument(java.lang.Object argument)
           
 void setCpuTime(long cpuTime)
           
 void setRaisedException(boolean raisedException)
           
 void setRestartTheTask(boolean restartTheTask)
           
 void setResult(java.lang.Object result)
           
 void setSystemErr(java.lang.String systemErr)
           
 void setSystemOut(java.lang.String systemOut)
           
 void setTerminalId(java.lang.Long terminalId)
           
 boolean shouldRestartTheTask()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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)