2.17.2: 2011-06-17

net.sf.basedb.core.data
Class JobAgentData

java.lang.Object
  extended by net.sf.basedb.core.data.BasicData
      extended by net.sf.basedb.core.data.OwnedData
          extended by net.sf.basedb.core.data.SharedData
              extended by net.sf.basedb.core.data.CommonData
                  extended by 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"

Field Summary
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
JobAgentData()
           
 
Method Summary
 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, isRemoved, setDescription, setName, setRemoved
 
Methods inherited from class net.sf.basedb.core.data.SharedData
getItemKey, getProjectKey, setItemKey, setProjectKey
 
Methods inherited from class net.sf.basedb.core.data.OwnedData
getOwner, setOwner
 
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 Detail

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
Constructor Detail

JobAgentData

public JobAgentData()
Method Detail

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)

2.17.2: 2011-06-17