org.gwe.persistence.model
Class JobInfo

java.lang.Object
  extended by org.gwe.persistence.model.BaseModelInfo<java.lang.String>
      extended by org.gwe.persistence.model.JobInfo
All Implemented Interfaces:
java.io.Serializable

public class JobInfo
extends BaseModelInfo<java.lang.String>

Since:
Aug 8, 2007
Author:
Marco Ruiz
See Also:
Serialized Form

Field Summary
protected  DaemonRequest<?> request
           
 
Constructor Summary
JobInfo()
           
JobInfo(int jobNum, JobDescriptor descriptor, DaemonRequest<?> daemonRequest)
           
 
Method Summary
 boolean computeFinishedExecutionStatus()
           
 ModelSummary<java.lang.String> createModelSummaryFor(EventType ev)
           
 JobDescriptor getDescriptor()
           
 JobExecutionInfo getExecution()
           
 java.util.List<JobExecutionInfo> getExecutions()
           
 int getFailures()
           
 java.lang.String getId()
           
 int getJobNum()
           
 OrderInfo getOrder()
           
 int getOrderId()
           
 DaemonRequest<?> getRequest()
           
 java.lang.String getWorkspaceInDaemon(DaemonConfigDesc config)
           
 void logCreateEvent()
           
 void postProcess(OrderLive orderLive, java.io.Serializable result)
           
 void preProcess(OrderLive orderLive)
           
 void setExecution(JobExecutionInfo execution)
           
 void setExecutions(java.util.List<JobExecutionInfo> executions)
           
 void setId(java.lang.String id)
           
 void setOrder(OrderInfo order)
           
 java.lang.String toString()
           
 
Methods inherited from class org.gwe.persistence.model.BaseModelInfo
getWhenCreated, logEvent, logEvent, setEventLogger, stampWhenCreated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

request

protected DaemonRequest<?> request
Constructor Detail

JobInfo

public JobInfo()

JobInfo

public JobInfo(int jobNum,
               JobDescriptor descriptor,
               DaemonRequest<?> daemonRequest)
Method Detail

getId

public java.lang.String getId()
Specified by:
getId in class BaseModelInfo<java.lang.String>

setId

public void setId(java.lang.String id)

getOrder

public OrderInfo getOrder()

setOrder

public void setOrder(OrderInfo order)

getJobNum

public int getJobNum()

getDescriptor

public JobDescriptor getDescriptor()

getFailures

public int getFailures()

getExecution

public JobExecutionInfo getExecution()

setExecution

public void setExecution(JobExecutionInfo execution)

getExecutions

public java.util.List<JobExecutionInfo> getExecutions()

setExecutions

public void setExecutions(java.util.List<JobExecutionInfo> executions)

computeFinishedExecutionStatus

public boolean computeFinishedExecutionStatus()

getRequest

public DaemonRequest<?> getRequest()

getWorkspaceInDaemon

public java.lang.String getWorkspaceInDaemon(DaemonConfigDesc config)

preProcess

public void preProcess(OrderLive orderLive)

postProcess

public void postProcess(OrderLive orderLive,
                        java.io.Serializable result)

logCreateEvent

public void logCreateEvent()
Overrides:
logCreateEvent in class BaseModelInfo<java.lang.String>

createModelSummaryFor

public ModelSummary<java.lang.String> createModelSummaryFor(EventType ev)
Overrides:
createModelSummaryFor in class BaseModelInfo<java.lang.String>

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getOrderId

public int getOrderId()


Copyright © 2007-2009. All Rights Reserved.