You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by vo...@apache.org on 2016/01/18 15:12:17 UTC
[12/50] ignite git commit: wip
wip
Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/9b66a937
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/9b66a937
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/9b66a937
Branch: refs/heads/ignite-2324
Commit: 9b66a937ce7f5d8305bdcf9df097d4fed9e5979b
Parents: 829c5e0
Author: Pavel Tupitsyn <pt...@gridgain.com>
Authored: Wed Jan 13 18:06:38 2016 +0300
Committer: Pavel Tupitsyn <pt...@gridgain.com>
Committed: Wed Jan 13 18:06:38 2016 +0300
----------------------------------------------------------------------
.../Apache.Ignite.Core/Events/CacheEvent.cs | 8 ++-
.../Apache.Ignite.Core/Events/EventBase.cs | 67 ++++++++++++++++----
.../Apache.Ignite.Core/Impl/Common/Future.cs | 1 +
.../Impl/Common/FutureType.cs | 1 +
.../Apache.Ignite.Core/Impl/Handle/Handle.cs | 1 +
.../Impl/Memory/PlatformMemoryStream.cs | 1 +
6 files changed, 64 insertions(+), 15 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ignite/blob/9b66a937/modules/platforms/dotnet/Apache.Ignite.Core/Events/CacheEvent.cs
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.Core/Events/CacheEvent.cs b/modules/platforms/dotnet/Apache.Ignite.Core/Events/CacheEvent.cs
index 2c3230d..4c75e0a 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core/Events/CacheEvent.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Core/Events/CacheEvent.cs
@@ -166,9 +166,11 @@ namespace Apache.Ignite.Core.Events
/// Gets task name if cache event was caused by an operation initiated within task execution.
/// </summary>
public string TaskName { get { return _taskName; } }
-
- /** <inheritDoc /> */
- public override string ToShortString()
+
+ /// <summary>
+ /// Gets shortened version of ToString result.
+ /// </summary>
+ public override string ToShortString()
{
return string.Format(CultureInfo.InvariantCulture,
"{0}: IsNear={1}, Key={2}, HasNewValue={3}, HasOldValue={4}, NodeId={5}", Name,
http://git-wip-us.apache.org/repos/asf/ignite/blob/9b66a937/modules/platforms/dotnet/Apache.Ignite.Core/Events/EventBase.cs
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.Core/Events/EventBase.cs b/modules/platforms/dotnet/Apache.Ignite.Core/Events/EventBase.cs
index 4334158..8d3f5cd 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core/Events/EventBase.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Core/Events/EventBase.cs
@@ -74,55 +74,82 @@ namespace Apache.Ignite.Core.Events
_timestamp = timestamp.Value;
}
- /** <inheritDoc /> */
+ /// <summary>
+ /// Gets globally unique ID of this event.
+ /// </summary>
public IgniteGuid Id
{
get { return _id; }
}
- /** <inheritDoc /> */
+ /// <summary>
+ /// Gets locally unique ID that is atomically incremented for each event. Unlike global <see cref="Id" />
+ /// this local ID can be used for ordering events on this node.
+ /// <para />
+ /// Note that for performance considerations Ignite doesn't order events globally.
+ /// </summary>
public long LocalOrder
{
get { return _localOrder; }
}
- /** <inheritDoc /> */
+ /// <summary>
+ /// Node where event occurred and was recorded.
+ /// </summary>
public IClusterNode Node
{
get { return _node; }
}
- /** <inheritDoc /> */
+ /// <summary>
+ /// Gets optional message for this event.
+ /// </summary>
public string Message
{
get { return _message; }
}
- /** <inheritDoc /> */
+ /// <summary>
+ /// Gets type of this event. All system event types are defined in <see cref="EventType" />
+ /// </summary>
public int Type
{
get { return _type; }
}
- /** <inheritDoc /> */
+ /// <summary>
+ /// Gets name of this event.
+ /// </summary>
public string Name
{
get { return _name; }
}
- /** <inheritDoc /> */
+ /// <summary>
+ /// Gets event timestamp. Timestamp is local to the node on which this event was produced.
+ /// Note that more than one event can be generated with the same timestamp.
+ /// For ordering purposes use <see cref="LocalOrder" /> instead.
+ /// </summary>
public DateTime Timestamp
{
get { return _timestamp; }
}
- /** <inheritDoc /> */
+ /// <summary>
+ /// Gets shortened version of ToString result.
+ /// </summary>
public virtual string ToShortString()
{
return ToString();
}
- /** <inheritDoc /> */
+ /// <summary>
+ /// Determines whether the specified object is equal to this instance.
+ /// </summary>
+ /// <param name="other">The object to compare with this instance.</param>
+ /// <returns>
+ /// <c>true</c> if the specified object is equal to this instance; otherwise, <c>false</c>.
+ /// </returns>
public bool Equals(EventBase other)
{
if (ReferenceEquals(null, other)) return false;
@@ -131,7 +158,13 @@ namespace Apache.Ignite.Core.Events
return _id.Equals(other._id);
}
- /** <inheritDoc /> */
+ /// <summary>
+ /// Determines whether the specified object is equal to this instance.
+ /// </summary>
+ /// <param name="obj">The object to compare with this instance.</param>
+ /// <returns>
+ /// <c>true</c> if the specified object is equal to this instance; otherwise, <c>false</c>.
+ /// </returns>
public override bool Equals(object obj)
{
if (ReferenceEquals(null, obj)) return false;
@@ -141,13 +174,23 @@ namespace Apache.Ignite.Core.Events
return Equals((EventBase) obj);
}
- /** <inheritDoc /> */
+ /// <summary>
+ /// Returns a hash code for this instance.
+ /// </summary>
+ /// <returns>
+ /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
+ /// </returns>
public override int GetHashCode()
{
return _id.GetHashCode();
}
- /** <inheritDoc /> */
+ /// <summary>
+ /// Returns a <see cref="string" /> that represents this instance.
+ /// </summary>
+ /// <returns>
+ /// A <see cref="string" /> that represents this instance.
+ /// </returns>
public override string ToString()
{
return string.Format(CultureInfo.InvariantCulture,
http://git-wip-us.apache.org/repos/asf/ignite/blob/9b66a937/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Common/Future.cs
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Common/Future.cs b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Common/Future.cs
index 0325b71..3e99040 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Common/Future.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Common/Future.cs
@@ -15,6 +15,7 @@
* limitations under the License.
*/
+#pragma warning disable 1591 // Missing XML comment for publicly visible type or member
namespace Apache.Ignite.Core.Impl.Common
{
using System;
http://git-wip-us.apache.org/repos/asf/ignite/blob/9b66a937/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Common/FutureType.cs
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Common/FutureType.cs b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Common/FutureType.cs
index c9f1555..c9a4852 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Common/FutureType.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Common/FutureType.cs
@@ -15,6 +15,7 @@
* limitations under the License.
*/
+#pragma warning disable 1591 // Missing XML comment for publicly visible type or member
namespace Apache.Ignite.Core.Impl.Common
{
using System.Diagnostics.CodeAnalysis;
http://git-wip-us.apache.org/repos/asf/ignite/blob/9b66a937/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Handle/Handle.cs
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Handle/Handle.cs b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Handle/Handle.cs
index 0168963..1cf0512 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Handle/Handle.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Handle/Handle.cs
@@ -15,6 +15,7 @@
* limitations under the License.
*/
+#pragma warning disable 1591 // Missing XML comment for publicly visible type or member
namespace Apache.Ignite.Core.Impl.Handle
{
using System;
http://git-wip-us.apache.org/repos/asf/ignite/blob/9b66a937/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Memory/PlatformMemoryStream.cs
----------------------------------------------------------------------
diff --git a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Memory/PlatformMemoryStream.cs b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Memory/PlatformMemoryStream.cs
index e68ef42..02b9efc 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Memory/PlatformMemoryStream.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Memory/PlatformMemoryStream.cs
@@ -15,6 +15,7 @@
* limitations under the License.
*/
+#pragma warning disable 1591 // Missing XML comment for publicly visible type or member
namespace Apache.Ignite.Core.Impl.Memory
{
using System;