3.1.2: 2012-07-31

net.sf.basedb.core.data
Class JobAgentSettingsData

java.lang.Object
  extended by net.sf.basedb.core.data.BasicData
      extended by net.sf.basedb.core.data.JobAgentSettingsData
All Implemented Interfaces:
IdentifiableData

public class JobAgentSettingsData
extends BasicData

This class holds information about plugin settings for a particular job agent.

Version:
2.0
Author:
Nicklas
See Also:
JobAgentSettings, Developer documentation: Plug-ins, jobs and job agents
Last modified
$Date: 2011-10-21 13:15:41 +0200 (Fri, 21 Oct 2011) $
Hibernate: class
table="`JobAgentSettings`" lazy="true"

Field Summary
private  JobAgentData jobAgent
           
private  Long maxMemory
           
private  PluginDefinitionData pluginDefinition
           
private  int priorityBoost
           
private  Boolean trusted
           
 
Constructor Summary
JobAgentSettingsData()
           
 
Method Summary
 JobAgentData getJobAgent()
          The job agent these settings belong to.
 Long getMaxMemory()
          The max amount of memory the plugin can use.
 PluginDefinitionData getPluginDefinition()
          The plugin these settings are used for.
 int getPriorityBoost()
          The priority boost for this plugin.
 Boolean isTrusted()
          If the plugin should be trusted or not.
 void setJobAgent(JobAgentData jobAgent)
           
 void setMaxMemory(Long maxMemory)
           
 void setPluginDefinition(PluginDefinitionData pluginDefinition)
           
 void setPriorityBoost(int priorityBoost)
           
 void setTrusted(Boolean trusted)
           
 
Methods inherited from class net.sf.basedb.core.data.BasicData
equals, getId, getVersion, hashCode, setId, setVersion, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

jobAgent

private JobAgentData jobAgent

pluginDefinition

private PluginDefinitionData pluginDefinition

trusted

private Boolean trusted

maxMemory

private Long maxMemory

priorityBoost

private int priorityBoost
Constructor Detail

JobAgentSettingsData

public JobAgentSettingsData()
Method Detail

getJobAgent

public JobAgentData getJobAgent()
The job agent these settings belong to.

Hibernate: many-to-one
column="`jobagent_id`" not-null="true" outer-join="false" update="false"

setJobAgent

public void setJobAgent(JobAgentData jobAgent)

getPluginDefinition

public PluginDefinitionData getPluginDefinition()
The plugin these settings are used for.

Hibernate: many-to-one
column="`plugindefinition_id`" not-null="true" outer-join="false" update="false"

setPluginDefinition

public void setPluginDefinition(PluginDefinitionData pluginDefinition)

isTrusted

public Boolean isTrusted()
If the plugin should be trusted or not. If the value is null the setting specified by the plugin definition should be used.

See Also:
PluginDefinitionData.isTrusted()
Hibernate: property
column="`trusted`" type="boolean" not-null="false"

setTrusted

public void setTrusted(Boolean trusted)

getMaxMemory

public Long getMaxMemory()
The max amount of memory the plugin can use. If the value is null the setting specified by the plugin definition should be used.

See Also:
PluginDefinitionData.getMaxMemory()
Hibernate: property
column="`max_memory`" type="long" not-null="false"

setMaxMemory

public void setMaxMemory(Long maxMemory)

getPriorityBoost

public int getPriorityBoost()
The priority boost for this plugin. Ie. allows certain plugins to go ahead in the job queue.

Hibernate: property
column="`priority_boost`" type="int" not-null="true"

setPriorityBoost

public void setPriorityBoost(int priorityBoost)

3.1.2: 2012-07-31