Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/07/10 10:22:27 (14 years ago)
Author:
cneumuel
Message:
  • created HiveClient which shows an overview over all submitted HiveExperiments
  • its possible to download all submitted HiveExperiments including results
  • Experiments are now sent as a whole to the Hive and the Hive-Slaves take care of creating child-jobs (if necessary). The parent job is then paused and will be reactivated when all child-jobs are finished
  • WcfService-Clients are now consistently managed by WcfServicePool which allows to use IDisposable-Pattern and always keeps exactly one proxy-object until all callers disposed them.
  • created ProgressView which is able to lock a View and display progress of an action. It also allows to simulate progress if no progress-information is available so that users don't get too nervous while waiting.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3-Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server.Core/3.3/Facades/ServerConsoleFacade.cs

    r4333 r4368  
    3232using HeuristicLab.Hive.Contracts.ResponseObjects;
    3333using System.Security.Permissions;
     34using HeuristicLab.Hive.JobBase;
    3435
    3536namespace HeuristicLab.Hive.Server.Core {
     
    4647    }
    4748
     49    [PrincipalPermission(SecurityAction.Demand, Role = HiveRoles.Administrator)]
    4850    public Response Login() {
    4951      Response resp = new Response();
     
    129131
    130132    [PrincipalPermission(SecurityAction.Demand, Role = HiveRoles.Administrator)]
    131     public ResponseObject<SerializedJob> GetLastSerializedResult(Guid jobId, bool requested, bool snapshot) {
    132       using (contextFactory.GetContext(false)) {
    133         return jobManager.GetLastSerializedResult(jobId, requested, snapshot);
     133    public ResponseObject<SerializedJob> GetLastSerializedResult(Guid jobId) {
     134      using (contextFactory.GetContext(false)) {
     135        return jobManager.GetLastSerializedResult(jobId);
     136      }
     137    }
     138
     139    [PrincipalPermission(SecurityAction.Demand, Role = HiveRoles.Administrator)]
     140    public ResponseObject<SerializedJob> GetSnapshotResult(Guid jobId) {
     141      using (contextFactory.GetContext(false)) {
     142        return jobManager.GetSnapshotResult(jobId);
    134143      }
    135144    }
     
    223232      using (contextFactory.GetContext()) {
    224233        return jobManager.AddJobWithGroupStrings(job, resources);
     234      }
     235    }
     236
     237    [PrincipalPermission(SecurityAction.Demand, Role = HiveRoles.Administrator)]
     238    public ResponseObject<JobResultList> GetChildJobResults(Guid? parentJobId, bool recursive, bool includeParent) {
     239      using (contextFactory.GetContext()) {
     240        return jobManager.GetChildJobResults(parentJobId, recursive, includeParent);
     241      }
     242    }
     243
     244    [PrincipalPermission(SecurityAction.Demand, Role = HiveRoles.Administrator)]
     245    public ResponseObject<JobDto> AddChildJob(Guid parentJobId, SerializedJob serializedJob) {
     246      using (contextFactory.GetContext()) {
     247        return jobManager.AddChildJob(parentJobId, serializedJob);
     248      }
     249    }
     250
     251    [PrincipalPermission(SecurityAction.Demand, Role = HiveRoles.Administrator)]
     252    public ResponseObject<JobDto> PauseJob(SerializedJob serializedJob) {
     253      using (contextFactory.GetContext()) {
     254        return jobManager.PauseJob(serializedJob);
    225255      }
    226256    }
Note: See TracChangeset for help on using the changeset viewer.