Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/07/10 16:11:14 (14 years ago)
Author:
cneumuel
Message:

#1233

  • implemented MockService, MockJob, MockServiceLocator
Location:
branches/HeuristicLab.Hive-3.4/sources
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive-3.4/sources

    • Property svn:ignore
      •  

        old new  
        11HeuristicLab.Hive-3.4.suo
         2TestResults
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.Common/3.4/ServiceContracts/IHiveService.cs

    r5053 r5062  
    3535    JobData GetJobData(Guid jobId);
    3636
    37     //[OperationContract]
    38     //Stream GetJobDataStreamed(Guid jobId);
    39 
    4037    [OperationContract]
    4138    void UpdateJob(Job jobDto, JobData jobDataDto);
    42        
    43     //[OperationContract] // formerly StoreFinishedJobResultStreamed
    44     //void UpdateJobDataStreamed(Stream stream);
    4539
    4640    [OperationContract]
     
    4943    [OperationContract] // new method: appropriate job is choosen and set to 'calculating'. the slave is responsible for requesting the jobData. Server should wait some timeout until he redistributes the job
    5044    Job AquireJob(Guid slaveId);
    51 
    52     //[OperationContract] // dump?
    53     //Job GetJobByIdWithDetails(Guid jobId);
    54 
    55     //[OperationContract] dump?
    56     //Job AddNewJob(JobData job);
    57 
    58     //[OperationContract]
    59     //void RemoveJob(Guid jobId);
    60 
    61     //[OperationContract] // GetJobForCalculation (was this used?
    62     //Job GetJob(Guid slaveId);
    63 
    64     //[OperationContract] --> replaced by UpdateJob
    65     //void StoreFinishedJobResult(Guid slaveId, Guid jobId, byte[] result, TimeSpan executionTime, string exception);
    66 
    67     //[OperationContract] dump this! a slave should just check if job is still offline, if so it can submit the finished job, otherwise throw away! its a rare case that a slave reawakes with a finished job
    68     //void IsJobStillNeeded(Guid jobId);
    69 
    70     //[OperationContract] // dump?
    71     //Job AddJobWithGroupStrings(JobData jobObj, IEnumerable<string> groups);
    7245    #endregion
    7346
     
    7750
    7851    [OperationContract]
    79     Job PauseJob(Guid jobId);
     52    void PauseJob(Guid jobId);
    8053    #endregion
    8154
     
    10174
    10275    #region Login Methods
    103     // rename "Login"-methods to "Register" or "SayHello", since its only purpose is to send Slave-Info (is Login() should not be used anymore)
    104     /// <summary>
    105     /// Method can be used to check if security credentials are valid, but it does not do anything
    106     /// </summary>
    107     /// <returns></returns>
    108     //[OperationContract]
    109     //void Login();
    110     ///// <summary>
    111     ///// This method registers the slave and marks it as online
    112     ///// </summary>
    113     //[OperationContract]
    114     //void Login(Slave slave);
    115     //[OperationContract]
    116     //void Logout(Guid clientId);
    117 
    11876    [OperationContract]
    11977    void Hello(Guid slaveId, string name, int cores, int memory);
     
    13694    IEnumerable<PluginData> GetPluginDatas(List<Guid> pluginIds);
    13795    #endregion
    138 
    139     // slave should be unaware of calendar. only server decides based on calendar if slave gets jobs
    140     //#region Calendar Methods
    141     //[OperationContract]
    142     //IEnumerable<Appointment> GetCalendar(Guid slaveId);
    143     //[OperationContract]
    144     //void SetCalendarStatus(Guid clientId, CalendarState state);
    145     //[OperationContract]
    146     //IEnumerable<Appointment> GetUptimeCalendarForResource(Guid guid);
    147     //[OperationContract]
    148     //void SetUptimeCalendarForResource(Guid guid, IEnumerable<Appointment> appointments, bool isForced);
    149     //#endregion
    150 
     96   
    15197    #region Slave Methods
    15298    [OperationContract]
     
    160106   
    161107    [OperationContract]
    162     //[ServiceKnownType(typeof(Resource))] - not sure about those
    163     //[ServiceKnownType(typeof(Slave))]
    164     //[ServiceKnownType(typeof(SlaveGroup))]
     108    [ServiceKnownType(typeof(Resource))]
     109    [ServiceKnownType(typeof(Slave))]
     110    [ServiceKnownType(typeof(SlaveGroup))]
    165111    IEnumerable<SlaveGroup> GetSlaveGroups();
    166112
     
    169115
    170116    [OperationContract]
    171     //[ServiceKnownType(typeof(Resource))]
    172     //[ServiceKnownType(typeof(Slave))]
    173     //[ServiceKnownType(typeof(SlaveGroup))]
     117    [ServiceKnownType(typeof(Resource))]
     118    [ServiceKnownType(typeof(Slave))]
     119    [ServiceKnownType(typeof(SlaveGroup))]
    174120    void AddResourceToGroup(Guid slaveGroupId, Resource resource);
    175121
Note: See TracChangeset for help on using the changeset viewer.