C# Класс JenkinsTransport.JenkinsServerManager

Наследование: ICruiseServerManager, IJenkinsServerManager
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
HasCacheExpired ( ) : bool
TimeSinceLastUpdate ( ) : System.TimeSpan
UpdateAllJobsIfCacheExpired ( ) : void

Описание методов

CancelPendingRequest() публичный Метод

public CancelPendingRequest ( string projectName ) : void
projectName string
Результат void

GetCruiseServerSnapshot() публичный Метод

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
Результат ThoughtWorks.CruiseControl.Remote.CruiseServerSnapshot

GetCruiseServerSnapshotEx() публичный Метод

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
Результат ThoughtWorks.CruiseControl.Remote.CruiseServerSnapshot

GetProjectList() публичный Метод

public GetProjectList ( ) : ThoughtWorks.CruiseControl.CCTrayLib.Configuration.CCTrayProject[]
Результат ThoughtWorks.CruiseControl.CCTrayLib.Configuration.CCTrayProject[]

Initialize() публичный Метод

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
Результат void

Initialize() публичный Метод

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
Результат void

JenkinsServerManager() публичный Метод

public JenkinsServerManager ( IWebRequestFactory webRequestFactory, IJenkinsApiFactory apiFactory, IDateTimeService dateTimeService ) : System
webRequestFactory IWebRequestFactory
apiFactory IJenkinsApiFactory
dateTimeService IDateTimeService
Результат System

Login() публичный Метод

public Login ( ) : bool
Результат bool

Logout() публичный Метод

public Logout ( ) : void
Результат void

SetConfiguration() публичный Метод

Sets the configuration
public SetConfiguration ( ThoughtWorks.CruiseControl.CCTrayLib.Configuration.BuildServer server ) : void
server ThoughtWorks.CruiseControl.CCTrayLib.Configuration.BuildServer the BuildServer
Результат void