|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.cruisecontrol.listeners.CMSynergySessionMonitor
Monitors a set of one or more CM Synergy sessions, launching new sessions as needed. The session information is persisted and made available to other CM Synergy plugins through the session file - a simple properties file which maps a session name to a CM Synergy session ID.
Nested Class Summary | |
class |
CMSynergySessionMonitor.CMSynergySession
A simple representation of a CM Synergy commandline session |
Constructor Summary | |
CMSynergySessionMonitor()
|
Method Summary | |
CMSynergySessionMonitor.CMSynergySession |
createSession()
Creates a new CMSynergySession object and adds it to our list of monitored sessions. |
void |
handleEvent(ProjectEvent event)
|
void |
setCcmExe(java.lang.String ccmExe)
Sets the name of the CM Synergy executable to use when issuing commands. |
void |
setSessionFile(java.lang.String sessionFile)
Sets the file which contains the mapping between CM Synergy session names and IDs. |
void |
validate()
Called after the configuration is read to make sure that all the mandatory parameters were specified.. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CMSynergySessionMonitor()
Method Detail |
public void setCcmExe(java.lang.String ccmExe)
ccmExe
- the name of the CM Synergy executablepublic void setSessionFile(java.lang.String sessionFile)
example:
session1=localhost:65024:192.168.1.17
sessionFile
- The session filepublic CMSynergySessionMonitor.CMSynergySession createSession()
CMSynergySession
object and adds it to our list of monitored sessions.
CMSynergySession
object.public void handleEvent(ProjectEvent event) throws CruiseControlException
handleEvent
in interface Listener
CruiseControlException
public void validate() throws CruiseControlException
Listener
validate
in interface Listener
CruiseControlException
- if there was a configuration error.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |