2.17.2: 2011-06-17

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, Plugin/jobs overview
Last modified
$Date: 2008-09-11 22:11:02 +0200 (Thu, 11 Sep 2008) $
Hibernate: class
table="`JobAgentSettings`" lazy="true"

Field Summary
private  String jarPath
           
private  JobAgentData jobAgent
           
static int MAX_JARPATH_LENGTH
           
private  Long maxMemory
           
private  PluginDefinitionData pluginDefinition
           
private  int priorityBoost
           
private  Boolean trusted
           
 
Constructor Summary
JobAgentSettingsData()
           
 
Method Summary
 String getJarPath()
          Get the path to the JAR file where the plugin class is located.
 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 setJarPath(String jarPath)
           
 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

MAX_JARPATH_LENGTH

public static final int MAX_JARPATH_LENGTH
See Also:
Constant Field Values

jarPath

private String jarPath

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)

getJarPath

public String getJarPath()
Get the path to the JAR file where the plugin class is located. If the value is null the path that is specified by the plugin definition should be used.

Returns:
The path to the JAR file with the plugin, or null if the plugin definition JAR path should be used
See Also:
PluginDefinitionData.getJarPath()
Hibernate: property
column="`jar_path`" type="text" not-null="false"

setJarPath

public void setJarPath(String jarPath)

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)

2.17.2: 2011-06-17