[jira] [Comment Edited] (IGNITE-5050) .NET: IIgnite.GetMemoryMetrics

2017-05-16 Thread Pavel Tupitsyn (JIRA)

[ 
https://issues.apache.org/jira/browse/IGNITE-5050?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16012690#comment-16012690
 ] 

Pavel Tupitsyn edited comment on IGNITE-5050 at 5/16/17 4:36 PM:
-

Merged to master: {{73fc01c4f021854e3fdc5c9a3bfe9a0650a77055}}.

Added:
* {{IIgnite.GetMemoryMetrics()}}
* {{MemoryPolicyConfiguration.MetricsEnabled}}


was (Author: ptupitsyn):
Merged to master: {{73fc01c4f021854e3fdc5c9a3bfe9a0650a77055}}.

> .NET: IIgnite.GetMemoryMetrics
> --
>
> Key: IGNITE-5050
> URL: https://issues.apache.org/jira/browse/IGNITE-5050
> Project: Ignite
>  Issue Type: New Feature
>  Components: platforms
>Affects Versions: 2.0
>Reporter: Pavel Tupitsyn
>Assignee: Pavel Tupitsyn
>  Labels: .NET
> Fix For: 2.1
>
>
> Add {{IIgnite.GetMemoryMetrics()}} in .NET which delegates to 
> {{Ignite.memoryMetrics()}} in Java



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Comment Edited] (IGNITE-5050) .NET: IIgnite.GetMemoryMetrics

2017-04-24 Thread Pavel Tupitsyn (JIRA)

[ 
https://issues.apache.org/jira/browse/IGNITE-5050?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15981153#comment-15981153
 ] 

Pavel Tupitsyn edited comment on IGNITE-5050 at 4/24/17 1:32 PM:
-

Main difficulty here is that {{MemoryMetrics}} is not a read-only snapshot like 
all other metrics, it is a living object which is constantly updated.

I think for .NET we should still go with a snapshot approach to avoid frequent 
native calls.

To enable and disable metrics there should be a separate 
{{IIgnite.EnableMemoryMetrics(string policyName, bool enable)}} method.


was (Author: ptupitsyn):
Main difficulty here is that {{MemoryMetrics}} is not a read-only snapshot like 
all other metrics, it is a living object which is constantly updated.

I think for .NET we should still go with a snapshot approach to avoid frequent 
native calls.

> .NET: IIgnite.GetMemoryMetrics
> --
>
> Key: IGNITE-5050
> URL: https://issues.apache.org/jira/browse/IGNITE-5050
> Project: Ignite
>  Issue Type: New Feature
>  Components: platforms
>Affects Versions: 2.0
>Reporter: Pavel Tupitsyn
>Assignee: Pavel Tupitsyn
>  Labels: .NET
> Fix For: 2.0
>
>
> Add {{IIgnite.GetMemoryMetrics()}} in .NET which delegates to 
> {{Ignite.memoryMetrics()}} in Java



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)