hudson.plugins.synergy.util
Class SessionUtils

java.lang.Object
  extended by hudson.plugins.synergy.util.SessionUtils

public class SessionUtils
extends java.lang.Object

Utility class to open and close a session.


Constructor Summary
SessionUtils()
           
 
Method Summary
static void closeSession(hudson.FilePath path, SynergySCM synergySCM, Commands commands)
          Close the Synergy session, if configured too.
static Commands openSession(hudson.FilePath path, SynergySCM synergySCM, hudson.model.TaskListener listener, hudson.Launcher launcher)
          Open or resuse a Synergy session.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionUtils

public SessionUtils()
Method Detail

openSession

public static Commands openSession(hudson.FilePath path,
                                   SynergySCM synergySCM,
                                   hudson.model.TaskListener listener,
                                   hudson.Launcher launcher)
                            throws java.io.IOException,
                                   java.lang.InterruptedException,
                                   SynergyException
Open or resuse a Synergy session.

Parameters:
path - The workarea path
synergySCM - The Synergy SCM configuration
listener - The build listener
launcher - The command launcher
Returns:
A Synergy command launcher
Throws:
java.io.IOException
java.lang.InterruptedException
SynergyException

closeSession

public static void closeSession(hudson.FilePath path,
                                SynergySCM synergySCM,
                                Commands commands)
                         throws java.io.IOException,
                                java.lang.InterruptedException,
                                SynergyException
Close the Synergy session, if configured too.

Parameters:
path - The workarea path.
synergySCM - The Synergy SCM configuration
commands - The Synergy command launcher
Throws:
java.io.IOException
java.lang.InterruptedException
SynergyException


Copyright © 2008-2009. All Rights Reserved.