Package 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
, 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="`JobAgents`" lazy="false"
-
Field Summary
Fields Modifier and Type Field Description private String
externalId
static int
MAX_EXTERNAL_ID_LENGTH
The maximum length of the external ID that can be stored in the database.static int
MAX_SERVER_LENGTH
The maximum length of the server that can be stored in the database.private Map<PluginDefinitionData,JobAgentSettingsData>
plugins
private Integer
port
private String
server
Fields inherited from interface net.sf.basedb.core.data.NameableData
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH
-
Constructor Summary
Constructors Constructor Description JobAgentData()
-
Method Summary
Modifier and Type Method Description String
getExternalId()
Get the external ID for the job agent.Map<PluginDefinitionData,JobAgentSettingsData>
getPlugins()
The plugins that can be executed by this job agent.Integer
getPort()
The port the job agent is listening on. null if it doesn't listen.String
getServer()
Get the server name or ip that this jobagent is running on.void
setExternalId(String externalId)
(package private) void
setPlugins(Map<PluginDefinitionData,JobAgentSettingsData> plugins)
void
setPort(Integer port)
void
setServer(String server)
Methods inherited from class net.sf.basedb.core.data.CommonData
getDescription, getName, getRemovedBy, setDescription, setName, setRemovedBy
Methods inherited from class net.sf.basedb.core.data.SharedData
getItemKey, getProjectKey, setItemKey, setProjectKey
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
Methods inherited from interface net.sf.basedb.core.data.IdentifiableData
getId, getVersion
Methods inherited from interface net.sf.basedb.core.data.OwnableData
getOwner, setOwner
-
Field Details
-
MAX_EXTERNAL_ID_LENGTH
public static final int MAX_EXTERNAL_ID_LENGTHThe maximum length of the external ID that can be stored in the database.- See Also:
setExternalId(String)
, Constant Field Values
-
externalId
-
MAX_SERVER_LENGTH
public static final int MAX_SERVER_LENGTHThe maximum length of the server that can be stored in the database.- See Also:
setServer(String)
, Constant Field Values
-
server
-
port
-
plugins
-
-
Constructor Details
-
JobAgentData
public JobAgentData()
-
-
Method Details
-
getExternalId
Get the external ID for the job agent.- Hibernate: property
- column="`external_id`" type="string" length="255" not-null="false" unique="true"
-
setExternalId
-
getServer
Get the server name or ip that this jobagent is running on.- Hibernate: property
- column="`server`" type="string" length="255"
-
setServer
-
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
-
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
-