Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/05/12 22:29:59 (12 years ago)
Author:
ascheibe
Message:

#1648 adapted client management for use with Hive

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ClientUserManagement/HeuristicLab.Clients.Access/3.3/ClientInformation.cs

    r7536 r7553  
    5454
    5555    private ClientInformation() {
    56       FetchClientInformationFromServer();
     56      if (ClientInformationUtils.IsClientHeuristicLab()) {
     57        FetchClientInformationFromServer();
     58      } else {
     59        // this means we are executed by an Hive slave, therefore we just get our machine id (e.g. for OKB Algs)
     60        // because the slave has already done the registration process
     61        GenerateLocalClientConfig();
     62      }
     63    }
     64
     65    private void GenerateLocalClientConfig() {
     66      clientExists = true;
     67      errorOccured = false;
     68      occuredException = null;
     69      clientInfo = new Client();
     70      clientInfo.Id = ClientInformationUtils.GetUniqueMachineId();
    5771    }
    5872
Note: See TracChangeset for help on using the changeset viewer.