C# Class JenkinsTransport.JenkinsServerManager

Inheritance: ICruiseServerManager, IJenkinsServerManager
ファイルを表示 Open project: csnate/cctray-jenkins-transport Class Usage Examples

Public Methods

Method 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

Method Description
HasCacheExpired ( ) : bool
TimeSinceLastUpdate ( ) : System.TimeSpan
UpdateAllJobsIfCacheExpired ( ) : void

Method Details

CancelPendingRequest() public method

public CancelPendingRequest ( string projectName ) : void
projectName string
return void

GetCruiseServerSnapshot() public method

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
return ThoughtWorks.CruiseControl.Remote.CruiseServerSnapshot

GetCruiseServerSnapshotEx() public method

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
return ThoughtWorks.CruiseControl.Remote.CruiseServerSnapshot

GetProjectList() public method

public GetProjectList ( ) : ThoughtWorks.CruiseControl.CCTrayLib.Configuration.CCTrayProject[]
return ThoughtWorks.CruiseControl.CCTrayLib.Configuration.CCTrayProject[]

Initialize() public method

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
return void

Initialize() public method

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
return void

JenkinsServerManager() public method

public JenkinsServerManager ( IWebRequestFactory webRequestFactory, IJenkinsApiFactory apiFactory, IDateTimeService dateTimeService ) : System
webRequestFactory IWebRequestFactory
apiFactory IJenkinsApiFactory
dateTimeService IDateTimeService
return System

Login() public method

public Login ( ) : bool
return bool

Logout() public method

public Logout ( ) : void
return void

SetConfiguration() public method

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