C# Class Dev2.Scheduler.ScheduledResourceModel

Inheritance: IScheduledResourceModel
ファイルを表示 Open project: Warewolf-ESB/Warewolf

Public Methods

Method Description
CreateHistory ( IScheduledResource resource ) : IList
DeleteSchedule ( IScheduledResource resource ) : void
Dispose ( ) : void
GetScheduledResources ( ) : ObservableCollection

Get the list of resource from windows task scheduler where has an action that is an exec action path matches warewolf agent path

Save ( IScheduledResource resource, string &errorMessage ) : bool
Save ( IScheduledResource resource, string userName, string password ) : void
ScheduledResourceModel ( IDev2TaskService taskService, string warewolfFolderId, string warewolfAgentPath, ITaskServiceConvertorFactory taskServiceFactory, string debugHistoryPath, ISecurityWrapper securityWrapper ) : System

Private Methods

Method Description
BuildAction ( IScheduledResource resource ) : IExecAction
CreateDebugHistory ( string debugHistoryPath, string correlationId ) : IList
CreateNewTask ( IScheduledResource resource ) : IDev2TaskDefinition
CreateScheduledResource ( IDev2Task arg ) : IScheduledResource
DebugHasErrors ( string debugHistoryPath, string correlationId ) : bool
DebugHistoryExists ( string debugHistoryPath, string correlationId ) : bool
GetRunStatus ( int eventId, string debugHistoryPath, string key ) : ScheduleRunStatus
GetUserName ( string debugHistoryPath, string correlationId ) : string

Method Details

CreateHistory() public method

public CreateHistory ( IScheduledResource resource ) : IList
resource IScheduledResource
return IList

DeleteSchedule() public method

public DeleteSchedule ( IScheduledResource resource ) : void
resource IScheduledResource
return void

Dispose() public method

public Dispose ( ) : void
return void

GetScheduledResources() public method

Get the list of resource from windows task scheduler where has an action that is an exec action path matches warewolf agent path
public GetScheduledResources ( ) : ObservableCollection
return ObservableCollection

Save() public method

public Save ( IScheduledResource resource, string &errorMessage ) : bool
resource IScheduledResource
errorMessage string
return bool

Save() public method

public Save ( IScheduledResource resource, string userName, string password ) : void
resource IScheduledResource
userName string
password string
return void

ScheduledResourceModel() public method

public ScheduledResourceModel ( IDev2TaskService taskService, string warewolfFolderId, string warewolfAgentPath, ITaskServiceConvertorFactory taskServiceFactory, string debugHistoryPath, ISecurityWrapper securityWrapper ) : System
taskService IDev2TaskService
warewolfFolderId string
warewolfAgentPath string
taskServiceFactory ITaskServiceConvertorFactory
debugHistoryPath string
securityWrapper ISecurityWrapper
return System