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
This class holds information about a job agent.
- Version:
- 2.0
- Author:
- Nicklas
- See Also:
- Last modified
- $Date: 2011-10-21 13:15:41 +0200 (fr, 21 okt 2011) $
- Hibernate: class
- table="`JobAgents`" lazy="false"
-
Field Summary
Modifier and TypeFieldDescriptionprivate String
static final int
The maximum length of the external ID that can be stored in the database.static final int
The maximum length of the server that can be stored in the database.private Map<PluginDefinitionData,
JobAgentSettingsData> private Integer
private String
Fields inherited from interface net.sf.basedb.core.data.NameableData
MAX_DESCRIPTION_LENGTH, MAX_NAME_LENGTH
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the external ID for the job agent.The plugins that can be executed by this job agent.getPort()
The port the job agent is listening on. null if it doesn't listen.Get the server name or ip that this jobagent is running on.void
setExternalId
(String externalId) (package private) void
void
void
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:
-
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:
-
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:
- 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
-