Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/15/09 14:53:13 (16 years ago)
Author:
msteinbi
Message:

Implementing Lifecycle Management (#453)

Location:
trunk/sources/HeuristicLab.Hive.Contracts
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Contracts/ApplicationConstants.cs

    r1121 r1133  
    6868    public static string RESPONSE_COMMUNICATOR_NO_JOBS_LEFT = "Communicator.NoJobsLeft";
    6969    public static string RESPONSE_COMMUNICATOR_ID_MUST_NOT_BE_SET = "Communicator.IdMustNotBeSet";
    70     public static string RESPONSE_COMMUNICATOR_NO_JO_WITH_THIS_ID = "Communicator.NoJobWithThisId";
     70    public static string RESPONSE_COMMUNICATOR_NO_JOB_WITH_THIS_ID = "Communicator.NoJobWithThisId";
    7171    public static string RESPONSE_COMMUNICATOR_WRONG_JOB_STATE = "Communicator.WrongJobState";
    7272    public static string RESPONSE_COMMUNICATOR_USER_NOT_LOGGED_IN = "Communicator.UserNotLoggedIn";
     73    public static string RESPONSE_COMMUNICATOR_JOB_IS_NOT_BEEING_CALCULATED = "Communicator.JobIsNotBeenigCalculated";
     74    public static string RESPONSE_COMMUNICATOR_WRONG_CLIENT_FOR_JOB = "Communicator.WrongClientForJob";
    7375
    7476    public static string RESPONSE_JOB_ALL_JOBS = "Job.AllJobs";
  • trunk/sources/HeuristicLab.Hive.Contracts/BusinessObjects/JobResult.cs

    r1103 r1133  
    3535    public Job Job { get; set; }
    3636    [DataMember]
    37     public byte[] Result { get; set; } // TODO DataStructure for Result needs to be defined
     37    public byte[] Result { get; set; }
     38    [DataMember]
     39    public double Percentage { get; set; }
     40    [DataMember]
     41    public DateTime timestamp { get; set; }
    3842    [DataMember]
    3943    public ClientInfo Client { get; set; }
  • trunk/sources/HeuristicLab.Hive.Contracts/HiveServerMessages.resx

    r1096 r1133  
    229229    <value>User is not logged in, you must login before sending Heartbeats</value>
    230230  </data>
     231  <data name="Communicator.JobIsNotBeenigCalculated" xml:space="preserve">
     232    <value>There is no client registered to calculate this job</value>
     233  </data>
     234  <data name="Communicator.WrongClientForJob" xml:space="preserve">
     235    <value>This client is not registered to calculate this job</value>
     236  </data>
    231237</root>
  • trunk/sources/HeuristicLab.Hive.Contracts/Interfaces/IClientCommunicator.cs

    r1103 r1133  
    4343      long jobId,
    4444      byte[] result,
     45      double percentage,
    4546      Exception exception, 
    4647      bool finished);
  • trunk/sources/HeuristicLab.Hive.Contracts/Interfaces/ILifecycleManager.cs

    r1088 r1133  
    3838    /// The server heartbeat
    3939    /// </summary>
    40     event EventHandler OnServerHeartbeat;
     40    void RegisterHeartbeat(EventHandler handler);
     41
     42    /// <summary>
     43    /// The startup event
     44    /// </summary>
     45    void RegisterStartup(EventHandler handler);
     46
     47    /// <summary>
     48    /// The shutdown event
     49    /// </summary>
     50    void RegisterShutdown(EventHandler handler);
    4151
    4252    /// <summary>
Note: See TracChangeset for help on using the changeset viewer.