Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/19/10 13:30:56 (14 years ago)
Author:
cneumuel
Message:

Split up "State" to "JobState" and "SlaveState" (#1159)

Location:
branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Contracts/3.3
Files:
3 added
7 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Contracts/3.3/ApplicationConstants.cs

    r4263 r4264  
    3535    /// </summary>
    3636    public static System.Transactions.IsolationLevel ISOLATION_LEVEL_SCOPE = System.Transactions.IsolationLevel.ReadUncommitted;
     37
    3738    public static int HEARTBEAT_MAX_DIF = 120; // value in seconds
     39   
    3840    public static int JOB_TIME_TO_LIVE = 5;
    39 
    40     //public static string RESPONSE_SERVERCONSOLE_LOGIN_SUCCESS = "Logged in";
    41     //public static string RESPONSE_SERVERCONSOLE_LOGIN_FAILED = "Login failed";
    42 
    43     //public static string RESPONSE_USERROLE_GET_ALL_USERS = "UserRole.GetAllUsers";
    44     //public static string RESPONSE_USERROLE_USER_EXISTS_ALLREADY = "UserRole.UserExistsAllready";
    45     //public static string RESPONSE_USERROLE_USER_SUCCESSFULLY_ADDED = "UserRole.UserSuccessfullyAdded";
    46     //public static string RESPONSE_USERROLE_USER_DOESNT_EXIST = "UserRole.UserDoesntExist";
    47     //public static string RESPONSE_USERROLE_USER_REMOVED = "UserRole.UserRemoved";
    48     //public static string RESPONSE_USERROLE_USERGROUP_EXISTS_ALLREADY = "UserRole.UsergroupExistsAllready";
    49     //public static string RESPONSE_USERROLE_USERGROUP_ADDED = "UserRole.UserGroupAdded";
    50     //public static string RESPONSE_USERROLE_USERGROUP_DOESNT_EXIST = "UserRole.UserGroupDoesntExist";
    51     //public static string RESPONSE_USERROLE_PERMISSIONOWNER_DOESNT_EXIST = "UserRole.PermissionOwnerDoesntExist";
    52     //public static string RESPONSE_USERROLE_PERMISSIONOWNER_REMOVED = "UserRole.PermissionOwnerRemoved";
    53     //public static string RESPONSE_USERROLE_PERMISSIONOWNER_ADDED = "UserRole.PermissionOwnerAdded";
    54     //public static string RESPONSE_USERROLE_GET_ALL_USERGROUPS = "UserRole.AllUserGroupsReturned";
    55     //public static string RESPONSE_USERROLE_ID_MUST_NOT_BE_SET = "UserRole.IdMustNotBeSet";
    56     //public static string RESPONSE_USERROLE_USERGROUP_ADDED_TO_USERGROUP = "UserRole.UserGroupAddedToUserGroup";
    57     //public static string RESPONSE_USERROLE_USERNAME_EXISTS_ALLREADY = "UserRole.UsernameExistsAllready";
    58 
    59     //public static string RESPONSE_CLIENT_GET_ALL_CLIENTS = "Client.GetAllClients";
    60     //public static string RESPONSE_CLIENT_GET_ALL_CLIENTGROUPS = "Client.GetAllClientGroups";
    61     //public static string RESPONSE_CLIENT_ID_MUST_NOT_BE_SET = "Client.IdMustNotBeSet";
    62     //public static string RESPONSE_CLIENT_CLIENTGROUP_ADDED = "Client.ClientGroupAdded";
    63     //public static string RESPONSE_CLIENT_CLIENTGROUP_DOESNT_EXIST = "Client.ClientGroupDoesntExist";
    64     //public static string RESPONSE_CLIENT_CLIENTGROUP_DELETED = "Client group sucessfully deleted";
    65     //public static string RESPONSE_CLIENT_RESOURCE_ADDED_TO_GROUP = "Client.ResourceAddedToGroup";
    66     //public static string RESPONSE_CLIENT_RESOURCE_REMOVED = "Client.ResourceRemoved";
    67     //public static string RESPONSE_CLIENT_RESOURCE_NOT_FOUND = "Client.ResourceNotFound";
    68     //public static string RESPONSE_CLIENT_PERMISSIONOWNER_DOESNT_EXIST = "Client.PermissionOwnerDoesntExist";
    69     //public static string RESPONSE_CLIENT_GET_GROUPS_OF_CLIENT = "Get all groups of a client";
    70 
    71     //public static string RESPONSE_COMMUNICATOR_HEARTBEAT_RECEIVED = "Communicator.HeardbeatReceived";
    72     //public static string RESPONSE_COMMUNICATOR_JOB_PULLED = "Communicator.JobPulled";
    73     //public static string RESPONSE_COMMUNICATOR_JOBRESULT_RECEIVED = "Communicator.JobResultReceived";
    74     //public static string RESPONSE_COMMUNICATOR_LOGIN_USER_ALLREADY_ONLINE = "Communicator.LoginUserAllreadyOnline";
    75     //public static string RESPONSE_COMMUNICATOR_LOGIN_SUCCESS = "Communicator.LoginSuccess";
    76     //public static string RESPONSE_COMMUNICATOR_LOGOUT_CLIENT_NOT_REGISTERED = "Communicator.LogoutClientNotRegistered";
    77     //public static string RESPONSE_COMMUNICATOR_LOGOUT_SUCCESS = "Communicator.LogoutSuccess";
    78     //public static string RESPONSE_COMMUNICATOR_NO_JOBS_LEFT = "Communicator.NoJobsLeft";
    79     //public static string RESPONSE_COMMUNICATOR_ID_MUST_NOT_BE_SET = "Communicator.IdMustNotBeSet";
    80     //public static string RESPONSE_COMMUNICATOR_NO_JOB_WITH_THIS_ID = "Communicator.NoJobWithThisId";
    81     //public static string RESPONSE_COMMUNICATOR_WRONG_JOB_STATE = "Communicator.WrongJobState";
    82     //public static string RESPONSE_COMMUNICATOR_USER_NOT_LOGGED_IN = "Communicator.UserNotLoggedIn";
    83     //public static string RESPONSE_COMMUNICATOR_JOB_IS_NOT_BEEING_CALCULATED = "Communicator.JobIsNotBeenigCalculated";
    84     //public static string RESPONSE_COMMUNICATOR_WRONG_CLIENT_FOR_JOB = "Communicator.WrongClientForJob";
    85     //public static string RESPONSE_COMMUNICATOR_JOB_ALLREADY_FINISHED = "Job allready finished. Not needed anymore";
    86     //public static string RESPONSE_COMMUNICATOR_JOB_DOESNT_EXIST = "No job exists with this id";
    87     //public static string RESPONSE_COMMUNICATOR_SEND_JOBRESULT = "Please send the Jobresult to the server";
    88     //public static string RESPONSE_COMMUNICATOR_PLUGINS_SENT = "Communicator.PluginsSent";
    89     //public static string RESPONSE_COMMUNICATOR_PLUGINS_NOT_AVAIL = "Communicator.PluginsNotAvail";
    90     //public static string RESPONSE_COMMUNICATOR_JOB_WAS_ABORTED = "Job was aborted";
    91 
    92     //public static string RESPONSE_COMMUNICATOR_FETCH_OR_FORCEFETCH_CALENDAR = "new Calendar must be fetched / force fetched";
    93 
    94     //public static string RESPONSE_JOB_ALL_JOBS = "Job.AllJobs";
    95     //public static string RESPONSE_JOB_GET_JOB_BY_ID = "Job.GetJobById";
    96     //public static string RESPONSE_JOB_ID_MUST_NOT_BE_SET = "Job.IdMustNotBeSet";
    97     //public static string RESPONSE_JOB_JOB_ADDED = "Job.JobAdded";
    98     //public static string RESPONSE_JOB_JOB_NULL = "Job.JobNull";
    99     //public static string RESPONSE_JOB_JOB_DOESNT_EXIST = "JobDoesntExist";
    100     //public static string RESPONSE_JOB_JOB_REMOVED = "Job.JobRemoved";
    101     //public static string RESPONSE_JOB_JOBSTATE_MUST_BE_OFFLINE = "Job.JobStateMustBeOffline";
    102     //public static string RESPONSE_JOB_IS_NOT_BEEING_CALCULATED = "Job.IsNotBeeingCalculated";
    103     //public static string RESPONSE_JOB_JOB_RESULT_SENT = "Job.JobResultSent";
    104     //public static string RESPONSE_JOB_REQUEST_ALLREADY_SET = "Job.RequestAllreadySet";
    105     //public static string RESPONSE_JOB_ABORT_REQUEST_ALLREADY_SET = "Job.AbortRequestAllreadySet";
    106     //public static string RESPONSE_JOB_REQUEST_SET = "Job.RequestSet";
    107     //public static string RESPONSE_JOB_ABORT_REQUEST_SET = "Job.AbortRequestSet";
    108     //public static string RESPONSE_JOB_RESULT_NOT_YET_HERE = "Requested job result is not yet finished";
    109     //public static string RESPONSE_JOB_PROJECT_NAME_EMPTY = "Please specifiy a project name";
    110     //public static string RESPONSE_JOB_PROJECT_ADDED = "Project successfully added";
    111     //public static string RESPONSE_JOB_PROJECT_DOESNT_EXIST = "The specified project doesn't exist";
    112     //public static string RESPONSE_JOB_PROJECT_DELETED = "The project was sucessfully deleted";
    113 
    114     //public static string RESPONSE_UPTIMECALENDAR_NO_CALENDAR_FOUND = "No Calendar could be found anywhere in the tree";
    115     //public static string RESPONSE_UPTIMECALENDAR_STATUS_UPDATED = "Calendar status has been updated";
    11641  }
    11742}
  • branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Contracts/3.3/BusinessObjects/ClientDto.cs

    r4141 r4264  
    2929
    3030namespace HeuristicLab.Hive.Contracts.BusinessObjects {
    31 
    32   public enum State { NullState, Idle, Calculating, Offline, Finished, Abort, RequestSnapshot, RequestSnapshotSent, Pending, Failed };
    33   public enum CalendarState { Fetch, ForceFetch, Fetching, Fetched, NotAllowedToFetch };
    34 
    3531  [StorableClass]
    3632  [DataContract]
     
    5753    [Storable]
    5854    [DataMember]
    59     public State State { get; set; }
     55    public SlaveState State { get; set; }
    6056    [Storable]
    6157    [DataMember]
  • branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Contracts/3.3/BusinessObjects/HeartBeatData.cs

    r4253 r4264  
    3838    [DataMember]
    3939    public Dictionary<Guid, double> JobProgress { get; set; } // TODO: define Type
     40    [DataMember]
     41    public bool IsAllowedToCalculate { get; set; } // this is true if slave is allowed to work according to calendar
    4042
    4143    public override string ToString() {
  • branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Contracts/3.3/BusinessObjects/JobDto.cs

    r4144 r4264  
    3838    [Storable]
    3939    [DataMember]
    40     public State State { get; set; }
     40    public JobState State { get; set; }
    4141    [Storable]
    4242    [DataMember]
  • branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Contracts/3.3/BusinessObjects/JobResult.cs

    r4170 r4264  
    4444    [Storable]
    4545    [DataMember]
    46     public State State { get; set; }
     46    public JobState State { get; set; }
    4747    [Storable]
    4848    [DataMember]
  • branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Contracts/3.3/HeuristicLab.Hive.Contracts-3.3.csproj

    r4263 r4264  
    118118    <Compile Include="BusinessObjects\AppointmentDto.cs" />
    119119    <Compile Include="BusinessObjects\CachedHivePluginInfoDto.cs" />
     120    <Compile Include="BusinessObjects\CalendarState.cs" />
    120121    <Compile Include="BusinessObjects\ClientGroupDto.cs" />
    121122    <Compile Include="BusinessObjects\HivePluginFile.cs" />
    122123    <Compile Include="BusinessObjects\JobResultList.cs" />
     124    <Compile Include="BusinessObjects\JobState.cs" />
    123125    <Compile Include="BusinessObjects\ResourceDto.cs" />
    124126    <Compile Include="BusinessObjects\SerializedJob.cs" />
     
    129131    <Compile Include="BusinessObjects\JobResult.cs" />
    130132    <Compile Include="BusinessObjects\SerializedJobResult.cs" />
     133    <Compile Include="BusinessObjects\SlaveState.cs" />
    131134    <Compile Include="BusinessObjects\UpTimeStatisticsDto.cs" />
    132135    <Compile Include="BusinessObjects\ClientDto.cs" />
  • branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Contracts/3.3/Interfaces/IJobManager.cs

    r4263 r4264  
    3636
    3737    [OperationContract]
    38     ResponseList<JobDto> GetAllJobsWithFilter(State jobState, int offset, int count);
     38    ResponseList<JobDto> GetAllJobsWithFilter(JobState jobState, int offset, int count);
    3939
    4040    [OperationContract]
Note: See TracChangeset for help on using the changeset viewer.