ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agoncha...@apache.org
Subject [28/36] ignite git commit: IGNITE-4799 Missing change after merge.
Date Thu, 27 Apr 2017 07:13:44 GMT
IGNITE-4799 Missing change after merge.


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/4d260619
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/4d260619
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/4d260619

Branch: refs/heads/ignite-5094
Commit: 4d260619b1ad90469b5dac7b24ff413847522fa6
Parents: 96f5cf5
Author: Alexey Kuznetsov <akuznetsov@gridgain.com>
Authored: Wed Apr 26 23:50:39 2017 +0700
Committer: Alexey Kuznetsov <akuznetsov@gridgain.com>
Committed: Wed Apr 26 23:50:39 2017 +0700

----------------------------------------------------------------------
 .../internal/visor/node/VisorBasicConfiguration.java   | 13 +++++++++++++
 1 file changed, 13 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/4d260619/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorBasicConfiguration.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorBasicConfiguration.java
b/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorBasicConfiguration.java
index a70cfdd..0a3a8ea 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorBasicConfiguration.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorBasicConfiguration.java
@@ -113,6 +113,9 @@ public class VisorBasicConfiguration extends VisorDataTransferObject {
     /** Whether update checker is enabled. */
     private boolean updateNtf;
 
+    /** Full metrics enabled flag. */
+    private long metricsUpdateFreq;
+
     /**
      * Default constructor.
      */
@@ -148,6 +151,7 @@ public class VisorBasicConfiguration extends VisorDataTransferObject {
         quiet = boolValue(IGNITE_QUIET, true);
         successFile = getProperty(IGNITE_SUCCESS_FILE);
         updateNtf = boolValue(IGNITE_UPDATE_NOTIFIER, true);
+        metricsUpdateFreq = c.getMetricsUpdateFrequency();
     }
 
     /**
@@ -297,6 +301,13 @@ public class VisorBasicConfiguration extends VisorDataTransferObject
{
         return updateNtf;
     }
 
+    /**
+     * @return Job metrics update frequency in milliseconds.
+     */
+    public long getMetricsUpdateFrequency() {
+        return metricsUpdateFreq;
+    }
+
     /** {@inheritDoc} */
     @Override protected void writeExternalData(ObjectOutput out) throws IOException {
         U.writeString(out, igniteInstanceName);
@@ -320,6 +331,7 @@ public class VisorBasicConfiguration extends VisorDataTransferObject {
         out.writeBoolean(quiet);
         U.writeString(out, successFile);
         out.writeBoolean(updateNtf);
+        out.writeLong(metricsUpdateFreq);
     }
 
     /** {@inheritDoc} */
@@ -345,6 +357,7 @@ public class VisorBasicConfiguration extends VisorDataTransferObject {
         quiet = in.readBoolean();
         successFile = U.readString(in);
         updateNtf = in.readBoolean();
+        metricsUpdateFreq = in.readLong();
     }
 
     /** {@inheritDoc} */


Mime
View raw message