Repository: ignite Updated Branches: refs/heads/master 44cabd841 -> e70adde71
IGNITE-3509 .NET: Add missing package-info, include LINQ and AspNet in doxygen Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/e70adde7 Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/e70adde7 Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/e70adde7 Branch: refs/heads/master Commit: e70adde719009e99e56bb4398c6fa3e43cf6b2ca Parents: 44cabd8 Author: Pavel Tupitsyn <ptupit...@apache.org> Authored: Tue Jul 26 10:47:49 2016 +0300 Committer: Pavel Tupitsyn <ptupit...@apache.org> Committed: Tue Jul 26 10:47:49 2016 +0300 ---------------------------------------------------------------------- .../Apache.Ignite.AspNet.csproj | 1 + .../dotnet/Apache.Ignite.AspNet/Package-Info.cs | 26 ++++ .../Apache.Ignite.Core.csproj | 6 + .../Cache/Affinity/AffinityFunctionBase.cs | 139 ------------------- .../Configuration/Package-Info.cs | 26 ++++ .../Discovery/Package-Info.cs | 26 ++++ .../Discovery/Tcp/Multicast/Package-Info.cs | 26 ++++ .../Discovery/Tcp/Package-Info.cs | 26 ++++ .../Discovery/Tcp/Static/Package-Info.cs | 26 ++++ .../Apache.Ignite.Core/Interop/Package-Info.cs | 26 ++++ .../Apache.Ignite.Linq.csproj | 1 + .../dotnet/Apache.Ignite.Linq/Package-Info.cs | 26 ++++ modules/platforms/dotnet/Apache.Ignite.dxg | 4 +- 13 files changed, 218 insertions(+), 141 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/e70adde7/modules/platforms/dotnet/Apache.Ignite.AspNet/Apache.Ignite.AspNet.csproj ---------------------------------------------------------------------- diff --git a/modules/platforms/dotnet/Apache.Ignite.AspNet/Apache.Ignite.AspNet.csproj b/modules/platforms/dotnet/Apache.Ignite.AspNet/Apache.Ignite.AspNet.csproj index b18119e..0c273e0 100644 --- a/modules/platforms/dotnet/Apache.Ignite.AspNet/Apache.Ignite.AspNet.csproj +++ b/modules/platforms/dotnet/Apache.Ignite.AspNet/Apache.Ignite.AspNet.csproj @@ -48,6 +48,7 @@ <ItemGroup> <Compile Include="IgniteOutputCacheProvider.cs" /> <Compile Include="IgniteWebUtils.cs" /> + <Compile Include="Package-Info.cs" /> <Compile Include="Properties\AssemblyInfo.cs" /> </ItemGroup> <ItemGroup> http://git-wip-us.apache.org/repos/asf/ignite/blob/e70adde7/modules/platforms/dotnet/Apache.Ignite.AspNet/Package-Info.cs ---------------------------------------------------------------------- diff --git a/modules/platforms/dotnet/Apache.Ignite.AspNet/Package-Info.cs b/modules/platforms/dotnet/Apache.Ignite.AspNet/Package-Info.cs new file mode 100644 index 0000000..5e74d3c --- /dev/null +++ b/modules/platforms/dotnet/Apache.Ignite.AspNet/Package-Info.cs @@ -0,0 +1,26 @@ +/* +* Licensed to the Apache Software Foundation (ASF) under one or more +* contributor license agreements. See the NOTICE file distributed with +* this work for additional information regarding copyright ownership. +* The ASF licenses this file to You under the Apache License, Version 2.0 +* (the "License"); you may not use this file except in compliance with +* the License. You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +#pragma warning disable 1587 // invalid XML comment + +/// <summary> +/// Ignite ASP.NET integration. +/// </summary> +namespace Apache.Ignite.AspNet +{ + // No-op. +} http://git-wip-us.apache.org/repos/asf/ignite/blob/e70adde7/modules/platforms/dotnet/Apache.Ignite.Core/Apache.Ignite.Core.csproj ---------------------------------------------------------------------- diff --git a/modules/platforms/dotnet/Apache.Ignite.Core/Apache.Ignite.Core.csproj b/modules/platforms/dotnet/Apache.Ignite.Core/Apache.Ignite.Core.csproj index 2e374e5..59bf090 100644 --- a/modules/platforms/dotnet/Apache.Ignite.Core/Apache.Ignite.Core.csproj +++ b/modules/platforms/dotnet/Apache.Ignite.Core/Apache.Ignite.Core.csproj @@ -85,6 +85,11 @@ <ItemGroup> <Compile Include="Binary\BinaryReflectiveSerializer.cs" /> <Compile Include="Common\JavaException.cs" /> + <Compile Include="DataStructures\Configuration\Package-Info.cs" /> + <Compile Include="Discovery\Package-Info.cs" /> + <Compile Include="Discovery\Tcp\Multicast\Package-Info.cs" /> + <Compile Include="Discovery\Tcp\Package-Info.cs" /> + <Compile Include="Discovery\Tcp\Static\Package-Info.cs" /> <Compile Include="Impl\Binary\BinaryReflectiveSerializerInternal.cs" /> <Compile Include="Impl\Binary\IBinarySerializerInternal.cs" /> <Compile Include="Binary\Package-Info.cs" /> @@ -427,6 +432,7 @@ <Compile Include="Impl\Unmanaged\UnmanagedTarget.cs" /> <Compile Include="Impl\Unmanaged\UnmanagedUtils.cs" /> <Compile Include="Interop\JavaObject.cs" /> + <Compile Include="Interop\Package-Info.cs" /> <Compile Include="Lifecycle\ClientReconnectEventArgs.cs" /> <Compile Include="Lifecycle\Package-Info.cs" /> <Compile Include="Messaging\Package-Info.cs" /> http://git-wip-us.apache.org/repos/asf/ignite/blob/e70adde7/modules/platforms/dotnet/Apache.Ignite.Core/Cache/Affinity/AffinityFunctionBase.cs ---------------------------------------------------------------------- diff --git a/modules/platforms/dotnet/Apache.Ignite.Core/Cache/Affinity/AffinityFunctionBase.cs b/modules/platforms/dotnet/Apache.Ignite.Core/Cache/Affinity/AffinityFunctionBase.cs deleted file mode 100644 index ce2e5e1..0000000 --- a/modules/platforms/dotnet/Apache.Ignite.Core/Cache/Affinity/AffinityFunctionBase.cs +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -namespace Apache.Ignite.Core.Cache.Affinity -{ - using System; - using System.Collections.Generic; - using System.ComponentModel; - using Apache.Ignite.Core.Cluster; - using Apache.Ignite.Core.Common; - - /// <summary> - /// Base class for predefined affinity functions. - /// </summary> - [Serializable] - public abstract class AffinityFunctionBase : IAffinityFunction - { - /// <summary> The default value for <see cref="Partitions"/> property. </summary> - public const int DefaultPartitions = 1024; - - /** */ - private int _partitions = DefaultPartitions; - - /** */ - private IAffinityFunction _baseFunction; - - - /// <summary> - /// Gets or sets the total number of partitions. - /// </summary> - [DefaultValue(DefaultPartitions)] - public virtual int Partitions - { - get { return _partitions; } - set { _partitions = value; } - } - - /// <summary> - /// Gets partition number for a given key starting from 0. Partitioned caches - /// should make sure that keys are about evenly distributed across all partitions - /// from 0 to <see cref="Partitions" /> for best performance. - /// <para /> - /// Note that for fully replicated caches it is possible to segment key sets among different - /// grid node groups. In that case each node group should return a unique partition - /// number. However, unlike partitioned cache, mappings of keys to nodes in - /// replicated caches are constant and a node cannot migrate from one partition - /// to another. - /// </summary> - /// <param name="key">Key to get partition for.</param> - /// <returns> - /// Partition number for a given key. - /// </returns> - public virtual int GetPartition(object key) - { - ThrowIfUninitialized(); - - return _baseFunction.GetPartition(key); - } - - /// <summary> - /// Removes node from affinity. This method is called when it is safe to remove - /// disconnected node from affinity mapping. - /// </summary> - /// <param name="nodeId">The node identifier.</param> - public virtual void RemoveNode(Guid nodeId) - { - ThrowIfUninitialized(); - - _baseFunction.RemoveNode(nodeId); - } - - /// <summary> - /// Gets affinity nodes for a partition. In case of replicated cache, all returned - /// nodes are updated in the same manner. In case of partitioned cache, the returned - /// list should contain only the primary and back up nodes with primary node being - /// always first. - /// <pare /> - /// Note that partitioned affinity must obey the following contract: given that node - /// <code>N</code> is primary for some key <code>K</code>, if any other node(s) leave - /// grid and no node joins grid, node <code>N</code> will remain primary for key <code>K</code>. - /// </summary> - /// <param name="context">The affinity function context.</param> - /// <returns> - /// A collection of partitions, where each partition is a collection of nodes, - /// where first node is a primary node, and other nodes are backup nodes. - /// </returns> - public virtual IEnumerable<IEnumerable<IClusterNode>> AssignPartitions(AffinityFunctionContext context) - { - ThrowIfUninitialized(); - - return _baseFunction.AssignPartitions(context); - } - - /// <summary> - /// Gets or sets a value indicating whether to exclude same-host-neighbors from being backups of each other. - /// </summary> - public virtual bool ExcludeNeighbors { get; set; } - - /// <summary> - /// Initializes a new instance of the <see cref="AffinityFunctionBase"/> class. - /// </summary> - internal AffinityFunctionBase() - { - // No-op. - } - - /// <summary> - /// Sets the base function. - /// </summary> - /// <param name="baseFunc">The base function.</param> - internal void SetBaseFunction(IAffinityFunction baseFunc) - { - _baseFunction = baseFunc; - } - - /// <summary> - /// Gets the direct usage error. - /// </summary> - private void ThrowIfUninitialized() - { - if (_baseFunction == null) - throw new IgniteException(GetType() + " has not yet been initialized."); - } - } -} http://git-wip-us.apache.org/repos/asf/ignite/blob/e70adde7/modules/platforms/dotnet/Apache.Ignite.Core/DataStructures/Configuration/Package-Info.cs ---------------------------------------------------------------------- diff --git a/modules/platforms/dotnet/Apache.Ignite.Core/DataStructures/Configuration/Package-Info.cs b/modules/platforms/dotnet/Apache.Ignite.Core/DataStructures/Configuration/Package-Info.cs new file mode 100644 index 0000000..aa6cdfd --- /dev/null +++ b/modules/platforms/dotnet/Apache.Ignite.Core/DataStructures/Configuration/Package-Info.cs @@ -0,0 +1,26 @@ +/* +* Licensed to the Apache Software Foundation (ASF) under one or more +* contributor license agreements. See the NOTICE file distributed with +* this work for additional information regarding copyright ownership. +* The ASF licenses this file to You under the Apache License, Version 2.0 +* (the "License"); you may not use this file except in compliance with +* the License. You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +#pragma warning disable 1587 // invalid XML comment + +/// <summary> +/// Distributed data structures configuration. +/// </summary> +namespace Apache.Ignite.Core.DataStructures.Configuration +{ + // No-op. +} http://git-wip-us.apache.org/repos/asf/ignite/blob/e70adde7/modules/platforms/dotnet/Apache.Ignite.Core/Discovery/Package-Info.cs ---------------------------------------------------------------------- diff --git a/modules/platforms/dotnet/Apache.Ignite.Core/Discovery/Package-Info.cs b/modules/platforms/dotnet/Apache.Ignite.Core/Discovery/Package-Info.cs new file mode 100644 index 0000000..c6fadec --- /dev/null +++ b/modules/platforms/dotnet/Apache.Ignite.Core/Discovery/Package-Info.cs @@ -0,0 +1,26 @@ +/* +* Licensed to the Apache Software Foundation (ASF) under one or more +* contributor license agreements. See the NOTICE file distributed with +* this work for additional information regarding copyright ownership. +* The ASF licenses this file to You under the Apache License, Version 2.0 +* (the "License"); you may not use this file except in compliance with +* the License. You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +#pragma warning disable 1587 // invalid XML comment + +/// <summary> +/// Node discovery API. +/// </summary> +namespace Apache.Ignite.Core.Discovery +{ + // No-op. +} http://git-wip-us.apache.org/repos/asf/ignite/blob/e70adde7/modules/platforms/dotnet/Apache.Ignite.Core/Discovery/Tcp/Multicast/Package-Info.cs ---------------------------------------------------------------------- diff --git a/modules/platforms/dotnet/Apache.Ignite.Core/Discovery/Tcp/Multicast/Package-Info.cs b/modules/platforms/dotnet/Apache.Ignite.Core/Discovery/Tcp/Multicast/Package-Info.cs new file mode 100644 index 0000000..0a1c751 --- /dev/null +++ b/modules/platforms/dotnet/Apache.Ignite.Core/Discovery/Tcp/Multicast/Package-Info.cs @@ -0,0 +1,26 @@ +/* +* Licensed to the Apache Software Foundation (ASF) under one or more +* contributor license agreements. See the NOTICE file distributed with +* this work for additional information regarding copyright ownership. +* The ASF licenses this file to You under the Apache License, Version 2.0 +* (the "License"); you may not use this file except in compliance with +* the License. You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +#pragma warning disable 1587 // invalid XML comment + +/// <summary> +/// Multicast TCP discovery. +/// </summary> +namespace Apache.Ignite.Core.Discovery.Tcp.Multicast +{ + // No-op. +} http://git-wip-us.apache.org/repos/asf/ignite/blob/e70adde7/modules/platforms/dotnet/Apache.Ignite.Core/Discovery/Tcp/Package-Info.cs ---------------------------------------------------------------------- diff --git a/modules/platforms/dotnet/Apache.Ignite.Core/Discovery/Tcp/Package-Info.cs b/modules/platforms/dotnet/Apache.Ignite.Core/Discovery/Tcp/Package-Info.cs new file mode 100644 index 0000000..dc94d48 --- /dev/null +++ b/modules/platforms/dotnet/Apache.Ignite.Core/Discovery/Tcp/Package-Info.cs @@ -0,0 +1,26 @@ +/* +* Licensed to the Apache Software Foundation (ASF) under one or more +* contributor license agreements. See the NOTICE file distributed with +* this work for additional information regarding copyright ownership. +* The ASF licenses this file to You under the Apache License, Version 2.0 +* (the "License"); you may not use this file except in compliance with +* the License. You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +#pragma warning disable 1587 // invalid XML comment + +/// <summary> +/// TCP node discovery API. +/// </summary> +namespace Apache.Ignite.Core.Discovery.Tcp +{ + // No-op. +} http://git-wip-us.apache.org/repos/asf/ignite/blob/e70adde7/modules/platforms/dotnet/Apache.Ignite.Core/Discovery/Tcp/Static/Package-Info.cs ---------------------------------------------------------------------- diff --git a/modules/platforms/dotnet/Apache.Ignite.Core/Discovery/Tcp/Static/Package-Info.cs b/modules/platforms/dotnet/Apache.Ignite.Core/Discovery/Tcp/Static/Package-Info.cs new file mode 100644 index 0000000..bf3fa5c --- /dev/null +++ b/modules/platforms/dotnet/Apache.Ignite.Core/Discovery/Tcp/Static/Package-Info.cs @@ -0,0 +1,26 @@ +/* +* Licensed to the Apache Software Foundation (ASF) under one or more +* contributor license agreements. See the NOTICE file distributed with +* this work for additional information regarding copyright ownership. +* The ASF licenses this file to You under the Apache License, Version 2.0 +* (the "License"); you may not use this file except in compliance with +* the License. You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +#pragma warning disable 1587 // invalid XML comment + +/// <summary> +/// Static TCP discovery. +/// </summary> +namespace Apache.Ignite.Core.Discovery.Tcp.Static +{ + // No-op. +} http://git-wip-us.apache.org/repos/asf/ignite/blob/e70adde7/modules/platforms/dotnet/Apache.Ignite.Core/Interop/Package-Info.cs ---------------------------------------------------------------------- diff --git a/modules/platforms/dotnet/Apache.Ignite.Core/Interop/Package-Info.cs b/modules/platforms/dotnet/Apache.Ignite.Core/Interop/Package-Info.cs new file mode 100644 index 0000000..51f26df --- /dev/null +++ b/modules/platforms/dotnet/Apache.Ignite.Core/Interop/Package-Info.cs @@ -0,0 +1,26 @@ +/* +* Licensed to the Apache Software Foundation (ASF) under one or more +* contributor license agreements. See the NOTICE file distributed with +* this work for additional information regarding copyright ownership. +* The ASF licenses this file to You under the Apache License, Version 2.0 +* (the "License"); you may not use this file except in compliance with +* the License. You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +#pragma warning disable 1587 // invalid XML comment + +/// <summary> +/// Platform interoperability. +/// </summary> +namespace Apache.Ignite.Core.Interop +{ + // No-op. +} http://git-wip-us.apache.org/repos/asf/ignite/blob/e70adde7/modules/platforms/dotnet/Apache.Ignite.Linq/Apache.Ignite.Linq.csproj ---------------------------------------------------------------------- diff --git a/modules/platforms/dotnet/Apache.Ignite.Linq/Apache.Ignite.Linq.csproj b/modules/platforms/dotnet/Apache.Ignite.Linq/Apache.Ignite.Linq.csproj index d1dad16..3abfa56 100644 --- a/modules/platforms/dotnet/Apache.Ignite.Linq/Apache.Ignite.Linq.csproj +++ b/modules/platforms/dotnet/Apache.Ignite.Linq/Apache.Ignite.Linq.csproj @@ -69,6 +69,7 @@ <Compile Include="Impl\QueryData.cs" /> <Compile Include="Impl\SqlTypes.cs" /> <Compile Include="Impl\ExpressionWalker.cs" /> + <Compile Include="Package-Info.cs" /> <Compile Include="Properties\AssemblyInfo.cs" /> </ItemGroup> <ItemGroup> http://git-wip-us.apache.org/repos/asf/ignite/blob/e70adde7/modules/platforms/dotnet/Apache.Ignite.Linq/Package-Info.cs ---------------------------------------------------------------------- diff --git a/modules/platforms/dotnet/Apache.Ignite.Linq/Package-Info.cs b/modules/platforms/dotnet/Apache.Ignite.Linq/Package-Info.cs new file mode 100644 index 0000000..1c1e370 --- /dev/null +++ b/modules/platforms/dotnet/Apache.Ignite.Linq/Package-Info.cs @@ -0,0 +1,26 @@ +/* +* Licensed to the Apache Software Foundation (ASF) under one or more +* contributor license agreements. See the NOTICE file distributed with +* this work for additional information regarding copyright ownership. +* The ASF licenses this file to You under the Apache License, Version 2.0 +* (the "License"); you may not use this file except in compliance with +* the License. You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +#pragma warning disable 1587 // invalid XML comment + +/// <summary> +/// Ignite cache LINQ provider. +/// </summary> +namespace Apache.Ignite.Linq +{ + // No-op. +} http://git-wip-us.apache.org/repos/asf/ignite/blob/e70adde7/modules/platforms/dotnet/Apache.Ignite.dxg ---------------------------------------------------------------------- diff --git a/modules/platforms/dotnet/Apache.Ignite.dxg b/modules/platforms/dotnet/Apache.Ignite.dxg index 6337d83..012a1eb 100644 --- a/modules/platforms/dotnet/Apache.Ignite.dxg +++ b/modules/platforms/dotnet/Apache.Ignite.dxg @@ -2381,7 +2381,7 @@ GENERATE_LEGEND = YES DOT_CLEANUP = YES -;INPUT=Apache.Ignite.Core -;EXCLUDE=Apache.Ignite.Core/Impl +;INPUT=Apache.Ignite.Core Apache.Ignite.Linq Apache.Ignite.AspNet +;EXCLUDE=Apache.Ignite.Core/Impl Apache.Ignite.Linq/Impl ;OUTPUT_DIRECTORY=../../clients/target/dotnetdoc ;PROJECT_LOGO=../../../assembly/docfiles/ignite_logo.png