org.kuali.kfs.sys.batch
Class JobDescriptor

java.lang.Object
  extended by org.kuali.kfs.sys.batch.JobDescriptor
All Implemented Interfaces:
org.springframework.beans.factory.BeanNameAware

public class JobDescriptor
extends Object
implements org.springframework.beans.factory.BeanNameAware


Constructor Summary
JobDescriptor()
           
JobDescriptor(String name, String group, Step step, boolean durable)
           
 
Method Summary
 Map<String,String> getDependencies()
          Gets the dependencies attribute.
 String getGroup()
           
 org.quartz.JobDetail getJobDetail()
          Constructs a non-volatile, durable, non-recoverable JobDetail w/ org.kuali.kfs.sys.batch.Job as the job class and the specified name and group from this instance.
 String getName()
           
 String getNamespaceCode()
          Gets the namespaceCode attribute.
 SchedulerService getSchedulerService()
           
 List<Step> getSteps()
          Gets the steps attribute.
 boolean isDurable()
           
 void setBeanName(String name)
           
 void setDependencies(Map<String,String> dependencies)
          Sets the dependencies attribute value.
 void setDurable(boolean durable)
           
 void setGroup(String group)
          Sets the group attribute value.
 void setNamespaceCode(String namespaceCode)
          Sets the namespaceCode attribute value.
 void setSchedulerService(SchedulerService schedulerService)
          Sets the schedulerService attribute value.
 void setSteps(List<Step> steps)
          Sets the steps attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JobDescriptor

public JobDescriptor()

JobDescriptor

public JobDescriptor(String name,
                     String group,
                     Step step,
                     boolean durable)
Method Detail

setBeanName

public void setBeanName(String name)
Specified by:
setBeanName in interface org.springframework.beans.factory.BeanNameAware
See Also:
BeanNameAware.setBeanName(java.lang.String)

getJobDetail

public org.quartz.JobDetail getJobDetail()
Constructs a non-volatile, durable, non-recoverable JobDetail w/ org.kuali.kfs.sys.batch.Job as the job class and the specified name and group from this instance. Also adds status=Pending to the JobDataMap, if this is a scheduled job.

Returns:
the org.quartz.JobDetail corresponding to this instance

setGroup

public void setGroup(String group)
Sets the group attribute value.

Parameters:
group - The group to set.

setDependencies

public void setDependencies(Map<String,String> dependencies)
Sets the dependencies attribute value.

Parameters:
dependencies - The dependencies to set.

getDependencies

public Map<String,String> getDependencies()
Gets the dependencies attribute.

Returns:
Returns the dependencies.

setSteps

public void setSteps(List<Step> steps)
Sets the steps attribute value.

Parameters:
steps - The steps to set.

getSteps

public List<Step> getSteps()
Gets the steps attribute.

Returns:
Returns the steps.

setSchedulerService

public void setSchedulerService(SchedulerService schedulerService)
Sets the schedulerService attribute value.

Parameters:
schedulerService - The schedulerService to set.

getGroup

public String getGroup()

getName

public String getName()

getSchedulerService

public SchedulerService getSchedulerService()

isDurable

public boolean isDurable()

setDurable

public void setDurable(boolean durable)

getNamespaceCode

public String getNamespaceCode()
Gets the namespaceCode attribute.

Returns:
Returns the namespaceCode.

setNamespaceCode

public void setNamespaceCode(String namespaceCode)
Sets the namespaceCode attribute value.

Parameters:
namespaceCode - The namespaceCode to set.


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.