Package net.sf.basedb.core.data
Class JobAgentSettingsData
- java.lang.Object
-
- net.sf.basedb.core.data.BasicData
-
- 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 (fr, 21 okt 2011) $
- Hibernate: class
- table="`JobAgentSettings`" lazy="true"
-
-
Field Summary
Fields Modifier and Type Field Description private JobAgentData
jobAgent
private Long
maxMemory
private PluginDefinitionData
pluginDefinition
private int
priorityBoost
private Boolean
trusted
-
Constructor Summary
Constructors Constructor Description JobAgentSettingsData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
Field Detail
-
jobAgent
private JobAgentData jobAgent
-
pluginDefinition
private PluginDefinitionData pluginDefinition
-
trusted
private Boolean trusted
-
maxMemory
private Long maxMemory
-
priorityBoost
private int priorityBoost
-
-
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)
-
-