net.sourceforge.cruisecontrol.listeners
Class CMSynergySessionMonitor.CMSynergySession

java.lang.Object
  extended bynet.sourceforge.cruisecontrol.listeners.CMSynergySessionMonitor.CMSynergySession
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
CMSynergySessionMonitor

public class CMSynergySessionMonitor.CMSynergySession
extends java.lang.Object
implements java.io.Serializable

A simple representation of a CM Synergy commandline session

Author:
Robert J. Smith
See Also:
Serialized Form

Constructor Summary
CMSynergySessionMonitor.CMSynergySession()
           
 
Method Summary
 java.lang.String getDatabase()
          Gets the CM Synergy database with which the session is associated
 java.lang.String getHost()
          Gets the host upon which the session is running.
 java.lang.String getName()
          Gets the given name of the session.
 java.lang.String getPassword()
          Gets the password used to start the session.
 java.lang.String getRole()
          Gets the CM Synergy role under which the session was started.
 java.lang.String getUser()
          Gets the user ID under which the session was started.
 void setAttributeFile(java.lang.String attributeFile)
          Sets the attribute (properties) file from which the session information will be loaded.
 void setDatabase(java.lang.String db)
          Sets the CM Synergy database with which the session will be associated
 void setHost(java.lang.String host)
          Sets the host upon which the session will run.
 void setName(java.lang.String name)
          Sets the name of the session as it will be referenced in the Cruise Control config file
 void setPassword(java.lang.String password)
          Sets the password which will be used to start the session.
 void setRole(java.lang.String role)
          Sets the CM Synergy role under which the session will be started.
 void setUser(java.lang.String user)
          Sets the user ID under which the session will be started.
 void validate()
          Validates the fields of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CMSynergySessionMonitor.CMSynergySession

public CMSynergySessionMonitor.CMSynergySession()
Method Detail

getName

public java.lang.String getName()
Gets the given name of the session.

Returns:
The name.

setName

public void setName(java.lang.String name)
Sets the name of the session as it will be referenced in the Cruise Control config file

Parameters:
name - The session's given name.

getPassword

public java.lang.String getPassword()
Gets the password used to start the session.

Returns:
The password.

setPassword

public void setPassword(java.lang.String password)
Sets the password which will be used to start the session.

Parameters:
password - The password.

getRole

public java.lang.String getRole()
Gets the CM Synergy role under which the session was started.

Returns:
The role.

setRole

public void setRole(java.lang.String role)
Sets the CM Synergy role under which the session will be started.

Parameters:
role - The role.

getUser

public java.lang.String getUser()
Gets the user ID under which the session was started.

Returns:
The user ID.

setUser

public void setUser(java.lang.String user)
Sets the user ID under which the session will be started.

Parameters:
user - The user ID.

getDatabase

public java.lang.String getDatabase()
Gets the CM Synergy database with which the session is associated

Returns:
The database.

setDatabase

public void setDatabase(java.lang.String db)
Sets the CM Synergy database with which the session will be associated

Parameters:
db - The database.

getHost

public java.lang.String getHost()
Gets the host upon which the session is running.

Returns:
The host.

setHost

public void setHost(java.lang.String host)
Sets the host upon which the session will run.

Parameters:
host - The host.

setAttributeFile

public void setAttributeFile(java.lang.String attributeFile)
Sets the attribute (properties) file from which the session information will be loaded.

Parameters:
attributeFile - The file from which to read our session attributes.

validate

public void validate()
              throws CruiseControlException
Validates the fields of this object.

Throws:
CruiseControlException