- Timestamp:
- 06/18/15 17:28:03 (9 years ago)
- Location:
- branches/HiveStatistics/sources
- Files:
-
- 31 added
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HiveStatistics/sources/HeuristicLab 3.3 Services.sln
r12428 r12477 69 69 .nuget\NuGet.targets = .nuget\NuGet.targets 70 70 EndProjectSection 71 EndProject 72 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Services.WebApp.Statistics-3.3", "HeuristicLab.Services.WebApp.Statistics\3.3\HeuristicLab.Services.WebApp.Statistics-3.3.csproj", "{1BC54353-7D4C-4734-BAA9-3D11B3242B59}" 71 73 EndProject 72 74 Global … … 243 245 {2351DBE7-D0E1-44F9-9CE9-2F0F5E580572}.Release|x86.ActiveCfg = Release|x86 244 246 {2351DBE7-D0E1-44F9-9CE9-2F0F5E580572}.Release|x86.Build.0 = Release|x86 247 {1BC54353-7D4C-4734-BAA9-3D11B3242B59}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 248 {1BC54353-7D4C-4734-BAA9-3D11B3242B59}.Debug|Any CPU.Build.0 = Debug|Any CPU 249 {1BC54353-7D4C-4734-BAA9-3D11B3242B59}.Debug|x64.ActiveCfg = Debug|Any CPU 250 {1BC54353-7D4C-4734-BAA9-3D11B3242B59}.Debug|x86.ActiveCfg = Debug|Any CPU 251 {1BC54353-7D4C-4734-BAA9-3D11B3242B59}.Release|Any CPU.ActiveCfg = Release|Any CPU 252 {1BC54353-7D4C-4734-BAA9-3D11B3242B59}.Release|Any CPU.Build.0 = Release|Any CPU 253 {1BC54353-7D4C-4734-BAA9-3D11B3242B59}.Release|x64.ActiveCfg = Release|Any CPU 254 {1BC54353-7D4C-4734-BAA9-3D11B3242B59}.Release|x86.ActiveCfg = Release|Any CPU 245 255 EndGlobalSection 246 256 GlobalSection(SolutionProperties) = preSolution -
branches/HiveStatistics/sources/HeuristicLab.Services.Hive.DataAccess/3.3/Daos/HiveStatistics/DimJobDao.cs
r12468 r12477 31 31 return Table.SingleOrDefault(x => x.JobId == id); 32 32 } 33 34 public IQueryable<DimJob> GetByUserId(Guid id) { 35 return Table.Where(x => x.UserId == id); 36 } 33 37 } 34 38 } -
branches/HiveStatistics/sources/HeuristicLab.Services.Hive.DataAccess/3.3/Daos/HiveStatistics/FactTaskDao.cs
r12468 r12477 40 40 } 41 41 42 public IQueryable<FactTask> GetByJobId(Guid id) { 43 return Table.Where(x => x.JobId == id); 44 } 45 42 46 public override void Delete(IEnumerable<Guid> ids) { 43 47 string paramIds = string.Join(",", ids.Select(x => string.Format("'{0}'", x))); -
branches/HiveStatistics/sources/HeuristicLab.Services.Hive.DataAccess/3.3/HiveDataContext.dbml
r12468 r12477 1 1 <?xml version="1.0" encoding="utf-8"?><Database Name="HeuristicLab.Hive-3.3" Class="HiveDataContext" xmlns="http://schemas.microsoft.com/linqtosql/dbml/2007"> 2 <Connection Mode="AppSettings" ConnectionString="Data Source= localhost;Initial Catalog=HeuristicLab.Hive-3.3;Integrated Security=True" SettingsObjectName="HeuristicLab.Services.Hive.DataAccess.Settings" SettingsPropertyName="HeuristicLab_Hive_LinqConnectionString" Provider="System.Data.SqlClient" />2 <Connection Mode="AppSettings" ConnectionString="Data Source=.\SQLEXPRESS;Initial Catalog=HeuristicLab.Hive-3.3;Integrated Security=True" SettingsObjectName="HeuristicLab.Services.Hive.DataAccess.Settings" SettingsPropertyName="HeuristicLab_Hive_LinqConnectionString" Provider="System.Data.SqlClient" /> 3 3 <Table Name="dbo.AssignedResources" Member="AssignedResources"> 4 4 <Type Name="AssignedResource"> … … 251 251 <Column Name="JobName" Type="System.String" DbType="VarChar(MAX) NOT NULL" CanBeNull="false" /> 252 252 <Column Name="UserName" Type="System.String" DbType="VarChar(MAX) NOT NULL" CanBeNull="false" /> 253 <Column Member="DateCreated" Type="System.DateTime" CanBeNull="false" /> 253 254 <Association Name="DimJob_FactTask" Member="FactTasks" ThisKey="JobId" OtherKey="JobId" Type="FactTask" /> 254 255 </Type> -
branches/HiveStatistics/sources/HeuristicLab.Services.Hive.DataAccess/3.3/HiveDataContext.dbml.layout
r12468 r12477 259 259 </nestedChildShapes> 260 260 </classShape> 261 <classShape Id="e0cb8641-a75e-4b9f-beda-3218c56938b1" absoluteBounds="8.125, 9.125, 2, 1. 5785953776041666">261 <classShape Id="e0cb8641-a75e-4b9f-beda-3218c56938b1" absoluteBounds="8.125, 9.125, 2, 1.7708968098958344"> 262 262 <DataClassMoniker Name="/HiveDataContext/DimJob" /> 263 263 <nestedChildShapes> 264 <elementListCompartment Id="6b9e8260-7e4b-4357-9c26-eebebfd69504" absoluteBounds="8.14, 9.585, 1.9700000000000002, 1. 0185953776041665" name="DataPropertiesCompartment" titleTextColor="Black" itemTextColor="Black" />264 <elementListCompartment Id="6b9e8260-7e4b-4357-9c26-eebebfd69504" absoluteBounds="8.14, 9.585, 1.9700000000000002, 1.2108968098958333" name="DataPropertiesCompartment" titleTextColor="Black" itemTextColor="Black" /> 265 265 </nestedChildShapes> 266 266 </classShape> … … 290 290 </nodes> 291 291 </associationConnector> 292 <associationConnector edgePoints="[(8.5 : 10. 7035953776042); (8.5 : 11.25)]" fixedFrom="NotFixed" fixedTo="NotFixed">292 <associationConnector edgePoints="[(8.5 : 10.8958968098958); (8.5 : 11.25)]" fixedFrom="Algorithm" fixedTo="Algorithm"> 293 293 <AssociationMoniker Name="/HiveDataContext/DimJob/DimJob_FactTask" /> 294 294 <nodes> -
branches/HiveStatistics/sources/HeuristicLab.Services.Hive.DataAccess/3.3/HiveDataContext.designer.cs
r12468 r12477 5415 5415 private string _UserName; 5416 5416 5417 private System.DateTime _DateCreated; 5418 5417 5419 private EntitySet<FactTask> _FactTasks; 5418 5420 … … 5429 5431 partial void OnUserNameChanging(string value); 5430 5432 partial void OnUserNameChanged(); 5433 partial void OnDateCreatedChanging(System.DateTime value); 5434 partial void OnDateCreatedChanged(); 5431 5435 #endregion 5432 5436 … … 5513 5517 this.SendPropertyChanged("UserName"); 5514 5518 this.OnUserNameChanged(); 5519 } 5520 } 5521 } 5522 5523 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DateCreated")] 5524 public System.DateTime DateCreated 5525 { 5526 get 5527 { 5528 return this._DateCreated; 5529 } 5530 set 5531 { 5532 if ((this._DateCreated != value)) 5533 { 5534 this.OnDateCreatedChanging(value); 5535 this.SendPropertyChanging(); 5536 this._DateCreated = value; 5537 this.SendPropertyChanged("DateCreated"); 5538 this.OnDateCreatedChanged(); 5515 5539 } 5516 5540 } -
branches/HiveStatistics/sources/HeuristicLab.Services.Hive.DataAccess/3.3/SQL Scripts/Initialize Hive Database.sql
r12468 r12477 219 219 ); 220 220 CREATE TABLE [statistics].[DimJob] ( 221 [JobId] UNIQUEIDENTIFIER NOT NULL, 222 [UserId] UNIQUEIDENTIFIER NOT NULL, 223 [JobName] VARCHAR (MAX) NOT NULL, 224 [UserName] VARCHAR (MAX) NOT NULL, 221 [JobId] UNIQUEIDENTIFIER NOT NULL, 222 [UserId] UNIQUEIDENTIFIER NOT NULL, 223 [JobName] VARCHAR (MAX) NOT NULL, 224 [UserName] VARCHAR (MAX) NOT NULL, 225 [DateCreated] DATETIME NOT NULL, 225 226 CONSTRAINT [PK_DimJob] PRIMARY KEY CLUSTERED ([JobId] ASC) 226 227 ); -
branches/HiveStatistics/sources/HeuristicLab.Services.Hive.DataAccess/3.3/Settings.Designer.cs
r11623 r12477 2 2 // <auto-generated> 3 3 // This code was generated by a tool. 4 // Runtime Version:4.0.30319.34 0144 // Runtime Version:4.0.30319.34209 5 5 // 6 6 // Changes to this file may cause incorrect behavior and will be lost if … … 27 27 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 28 28 [global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)] 29 [global::System.Configuration.DefaultSettingValueAttribute("Data Source= localhost;Initial Catalog=HeuristicLab.Hive-3.3;Integrated Security=T" +30 " rue;")]29 [global::System.Configuration.DefaultSettingValueAttribute("Data Source=.\\SQLEXPRESS;Initial Catalog=HeuristicLab.Hive-3.3;Integrated Securit" + 30 "y=True;")] 31 31 public string HeuristicLab_Hive_LinqConnectionString { 32 32 get { -
branches/HiveStatistics/sources/HeuristicLab.Services.Hive.DataAccess/3.3/Settings.settings
r6983 r12477 6 6 <DesignTimeValue Profile="(Default)"><?xml version="1.0" encoding="utf-16"?> 7 7 <SerializableConnectionString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> 8 <ConnectionString>Data Source= localhost;Initial Catalog=HeuristicLab.Hive-3.3;Integrated Security=True;</ConnectionString>8 <ConnectionString>Data Source=.\SQLEXPRESS;Initial Catalog=HeuristicLab.Hive-3.3;Integrated Security=True;</ConnectionString> 9 9 <ProviderName>System.Data.SqlClient</ProviderName> 10 10 </SerializableConnectionString></DesignTimeValue> 11 <Value Profile="(Default)">Data Source= localhost;Initial Catalog=HeuristicLab.Hive-3.3;Integrated Security=True;</Value>11 <Value Profile="(Default)">Data Source=.\SQLEXPRESS;Initial Catalog=HeuristicLab.Hive-3.3;Integrated Security=True;</Value> 12 12 </Setting> 13 13 <Setting Name="LongRunningDatabaseCommandTimeout" Type="System.TimeSpan" Scope="Application"> -
branches/HiveStatistics/sources/HeuristicLab.Services.Hive/3.3/HiveJanitor.cs
r12468 r12477 62 62 while (!stop) { 63 63 try { 64 LogFactory.GetLogger(typeof(HiveJanitor).Namespace).Log("HiveJanitor: starting cleanup ");64 LogFactory.GetLogger(typeof(HiveJanitor).Namespace).Log("HiveJanitor: starting cleanup."); 65 65 bool cleanup = false; 66 66 trans.UseTransaction(() => { … … 75 75 eventManager.Cleanup(); 76 76 } 77 LogFactory.GetLogger(typeof(HiveJanitor).Namespace).Log("HiveJanitor: cleanup finished ");77 LogFactory.GetLogger(typeof(HiveJanitor).Namespace).Log("HiveJanitor: cleanup finished."); 78 78 } 79 79 catch (Exception e) { … … 88 88 while (!stop) { 89 89 try { 90 LogFactory.GetLogger(typeof(HiveJanitor).Namespace).Log("HiveJanitor: starting generate statistics ");90 LogFactory.GetLogger(typeof(HiveJanitor).Namespace).Log("HiveJanitor: starting generate statistics."); 91 91 statisticsGenerator.GenerateStatistics(); 92 LogFactory.GetLogger(typeof(HiveJanitor).Namespace).Log("HiveJanitor: generate statistics finished ");92 LogFactory.GetLogger(typeof(HiveJanitor).Namespace).Log("HiveJanitor: generate statistics finished."); 93 93 } 94 94 catch (Exception e) { -
branches/HiveStatistics/sources/HeuristicLab.Services.Hive/3.3/HiveStatisticsGenerator.cs
r12468 r12477 106 106 UserId = x.OwnerUserId, 107 107 JobName = x.Name ?? string.Empty, 108 DateCreated = x.DateCreated 108 109 }) 109 110 .ToList(); … … 112 113 JobName = x.JobName, 113 114 UserId = x.UserId, 114 UserName = GetUserName(x.UserId) 115 UserName = GetUserName(x.UserId), 116 DateCreated = x.DateCreated 115 117 })); 116 118 } -
branches/HiveStatistics/sources/HeuristicLab.Services.Hive/3.3/Properties/Settings.Designer.cs
r12441 r12477 89 89 [global::System.Configuration.ApplicationScopedSettingAttribute()] 90 90 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 91 [global::System.Configuration.DefaultSettingValueAttribute("00:0 5:00")]91 [global::System.Configuration.DefaultSettingValueAttribute("00:01:00")] 92 92 public global::System.TimeSpan GenerateStatisticsInterval { 93 93 get { -
branches/HiveStatistics/sources/HeuristicLab.Services.WebApp.Status/3.3/status.js
r12428 r12477 23 23 name: 'History', 24 24 route: '#/status/history', 25 icon: 'glyphicon glyphicon- stats'25 icon: 'glyphicon glyphicon-calendar' 26 26 }] 27 27 }); -
branches/HiveStatistics/sources/HeuristicLab.Services.WebApp/3.3/HeuristicLab.Services.WebApp-3.3.csproj
r12467 r12477 261 261 </ProjectReference> 262 262 </ItemGroup> 263 <ItemGroup> 264 <None Include="Properties\PublishProfiles\WebApp.pubxml" /> 265 </ItemGroup> 263 266 <PropertyGroup> 264 267 <VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion> -
branches/HiveStatistics/sources/HeuristicLab.Services.WebApp/3.3/HeuristicLab.Services.WebApp-3.3.csproj.user
r12428 r12477 1 1 <?xml version="1.0" encoding="utf-8"?> 2 2 <Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> 3 <PropertyGroup> 4 <NameOfLastUsedPublishProfile>WebApp</NameOfLastUsedPublishProfile> 5 </PropertyGroup> 3 6 <ProjectExtensions> 4 7 <VisualStudio>
Note: See TracChangeset
for help on using the changeset viewer.