net.sf.basedb.core.data
Class JobAgentData
java.lang.Object
net.sf.basedb.core.data.BasicData
net.sf.basedb.core.data.OwnedData
net.sf.basedb.core.data.SharedData
net.sf.basedb.core.data.CommonData
net.sf.basedb.core.data.JobAgentData
- All Implemented Interfaces:
- IdentifiableData, NameableData, OwnableData, RemovableData, ShareableData
public class JobAgentData
- extends CommonData
This class holds information about a job agent.
- Version:
- 2.0
- Author:
- Nicklas
- See Also:
JobAgent
,
Plugin/jobs overview- Last modified
- $Date: 2008-09-11 22:11:02 +0200 (Thu, 11 Sep 2008) $
- Hibernate: class
- table="`JobAgents`" lazy="false"
MAX_EXTERNAL_ID_LENGTH
public static final int MAX_EXTERNAL_ID_LENGTH
- The maximum length of the external ID that can be stored in the database.
- See Also:
setExternalId(String)
,
Constant Field Values
externalId
private String externalId
MAX_SERVER_LENGTH
public static final int MAX_SERVER_LENGTH
- The maximum length of the server that can be stored in the database.
- See Also:
setServer(String)
,
Constant Field Values
server
private String server
port
private Integer port
plugins
private Map<PluginDefinitionData,JobAgentSettingsData> plugins
JobAgentData
public JobAgentData()
getExternalId
public String getExternalId()
- Get the external ID for the job agent.
- Hibernate: property
- column="`external_id`" type="string" length="255" not-null="false" unique="true"
setExternalId
public void setExternalId(String externalId)
getServer
public String getServer()
- Get the server name or ip that this jobagent is running on.
- Hibernate: property
- column="`server`" type="string" length="255"
setServer
public void setServer(String server)
getPort
public Integer getPort()
- The port the job agent is listening on. null if it doesn't listen.
- Hibernate: property
- column="`port`" type="int" not-null="false"
setPort
public void setPort(Integer port)
getPlugins
public Map<PluginDefinitionData,JobAgentSettingsData> getPlugins()
- The plugins that can be executed by this job agent. This is the
inverse end.
- See Also:
JobAgentSettingsData.getJobAgent()
- Hibernate: map
- lazy="true" cascade="delete" inverse="true"
- Hibernate: index-many-to-many
- column="`plugindefinition_id`" class="net.sf.basedb.core.data.PluginDefinitionData"
- Hibernate: collection-key
- column="`jobagent_id`"
- Hibernate: collection-one-to-many
- class="net.sf.basedb.core.data.JobAgentSettingsData"
setPlugins
void setPlugins(Map<PluginDefinitionData,JobAgentSettingsData> plugins)