C# Class JenkinsTransport.JenkinsServerManager

Inheritance: ICruiseServerManager, IJenkinsServerManager
Afficher le fichier Open project: csnate/cctray-jenkins-transport Class Usage Examples

Méthodes publiques

Méthode Description
CancelPendingRequest ( string projectName ) : void
GetCruiseServerSnapshot ( ) : ThoughtWorks.CruiseControl.Remote.CruiseServerSnapshot

This only gets called while CCTray is polling for updates of known jobs WebException is caught and handled as CCTray will not deal with it

GetCruiseServerSnapshotEx ( ) : ThoughtWorks.CruiseControl.Remote.CruiseServerSnapshot

Alternate method for retrieving current status for all projects without exception handling, for use within other ICruiseServerManager methods to provide user feedback

GetProjectList ( ) : ThoughtWorks.CruiseControl.CCTrayLib.Configuration.CCTrayProject[]
Initialize ( ThoughtWorks.CruiseControl.CCTrayLib.Configuration.BuildServer server, string session, Settings settings ) : void

Initializes this instance with the appropriate information

Initialize ( ThoughtWorks.CruiseControl.CCTrayLib.Configuration.BuildServer server, string session, string settings ) : void

Initializes this instance with the appropriate information

JenkinsServerManager ( IWebRequestFactory webRequestFactory, IJenkinsApiFactory apiFactory, IDateTimeService dateTimeService ) : System
Login ( ) : bool
Logout ( ) : void
SetConfiguration ( ThoughtWorks.CruiseControl.CCTrayLib.Configuration.BuildServer server ) : void

Sets the configuration

Private Methods

Méthode Description
HasCacheExpired ( ) : bool
TimeSinceLastUpdate ( ) : System.TimeSpan
UpdateAllJobsIfCacheExpired ( ) : void

Method Details

CancelPendingRequest() public méthode

public CancelPendingRequest ( string projectName ) : void
projectName string
Résultat void

GetCruiseServerSnapshot() public méthode

This only gets called while CCTray is polling for updates of known jobs WebException is caught and handled as CCTray will not deal with it
public GetCruiseServerSnapshot ( ) : ThoughtWorks.CruiseControl.Remote.CruiseServerSnapshot
Résultat ThoughtWorks.CruiseControl.Remote.CruiseServerSnapshot

GetCruiseServerSnapshotEx() public méthode

Alternate method for retrieving current status for all projects without exception handling, for use within other ICruiseServerManager methods to provide user feedback
public GetCruiseServerSnapshotEx ( ) : ThoughtWorks.CruiseControl.Remote.CruiseServerSnapshot
Résultat ThoughtWorks.CruiseControl.Remote.CruiseServerSnapshot

GetProjectList() public méthode

public GetProjectList ( ) : ThoughtWorks.CruiseControl.CCTrayLib.Configuration.CCTrayProject[]
Résultat ThoughtWorks.CruiseControl.CCTrayLib.Configuration.CCTrayProject[]

Initialize() public méthode

Initializes this instance with the appropriate information
public Initialize ( ThoughtWorks.CruiseControl.CCTrayLib.Configuration.BuildServer server, string session, Settings settings ) : void
server ThoughtWorks.CruiseControl.CCTrayLib.Configuration.BuildServer the BuildServer
session string the SessionToken
settings Settings the Settings
Résultat void

Initialize() public méthode

Initializes this instance with the appropriate information
public Initialize ( ThoughtWorks.CruiseControl.CCTrayLib.Configuration.BuildServer server, string session, string settings ) : void
server ThoughtWorks.CruiseControl.CCTrayLib.Configuration.BuildServer the BuildServer
session string the SessionToken
settings string the Settings in string form
Résultat void

JenkinsServerManager() public méthode

public JenkinsServerManager ( IWebRequestFactory webRequestFactory, IJenkinsApiFactory apiFactory, IDateTimeService dateTimeService ) : System
webRequestFactory IWebRequestFactory
apiFactory IJenkinsApiFactory
dateTimeService IDateTimeService
Résultat System

Login() public méthode

public Login ( ) : bool
Résultat bool

Logout() public méthode

public Logout ( ) : void
Résultat void

SetConfiguration() public méthode

Sets the configuration
public SetConfiguration ( ThoughtWorks.CruiseControl.CCTrayLib.Configuration.BuildServer server ) : void
server ThoughtWorks.CruiseControl.CCTrayLib.Configuration.BuildServer the BuildServer
Résultat void