ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [2/2] incubator-ignite git commit: [IGNITE-349]: secondary filesystem configuration made optional. The logic of the filesystem construction made common, and is now reused in all places where used. Constants also now specified in single place and reused.
Date Mon, 02 Mar 2015 18:22:37 GMT
[IGNITE-349]: secondary filesystem configuration made optional. The logic of the filesystem
construction made common, and is now reused in all places where used. Constants also now specified
in single place and reused.


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

Branch: refs/heads/ignite-349
Commit: e58cbfb4cc2f425ec2160af05ec532dea6b1c197
Parents: 51985d5
Author: iveselovskiy <iveselovskiy@gridgain.com>
Authored: Mon Mar 2 21:21:34 2015 +0300
Committer: iveselovskiy <iveselovskiy@gridgain.com>
Committed: Mon Mar 2 21:21:34 2015 +0300

----------------------------------------------------------------------
 .../java/org/apache/ignite/igfs/IgfsConst.java  | 28 ++++++++++++++++++++
 .../visor/node/VisorIgfsConfiguration.java      |  9 ++-----
 2 files changed, 30 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/e58cbfb4/modules/core/src/main/java/org/apache/ignite/igfs/IgfsConst.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/igfs/IgfsConst.java b/modules/core/src/main/java/org/apache/ignite/igfs/IgfsConst.java
new file mode 100644
index 0000000..859415b
--- /dev/null
+++ b/modules/core/src/main/java/org/apache/ignite/igfs/IgfsConst.java
@@ -0,0 +1,28 @@
+/*
+ * 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.
+ */
+
+package org.apache.ignite.igfs;
+
+/**
+ * Constants related to Igfs secondary filesystem configuration.
+ */
+public class IgfsConst {
+    /** Property name for path to Hadoop configuration. */
+    public static final String SECONDARY_FS_CONFIG_PATH = "SECONDARY_FS_CONFIG_PATH";
+    /** Property name for URI of file system. */
+    public static final String SECONDARY_FS_URI = "SECONDARY_FS_URI";
+}

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/e58cbfb4/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorIgfsConfiguration.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorIgfsConfiguration.java
b/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorIgfsConfiguration.java
index 056ac7f..3ec9d87 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorIgfsConfiguration.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorIgfsConfiguration.java
@@ -31,11 +31,6 @@ import static org.apache.ignite.internal.visor.util.VisorTaskUtils.*;
  * Data transfer object for IGFS configuration properties.
  */
 public class VisorIgfsConfiguration implements Serializable {
-    /** Property name for path to Hadoop configuration. */
-    public static final String SECONDARY_FS_CONFIG_PATH = "SECONDARY_FS_CONFIG_PATH";
-
-    /** Property name for URI of file system. */
-    public static final String SECONDARY_FS_URI = "SECONDARY_FS_URI";
 
     /** */
     private static final long serialVersionUID = 0L;
@@ -142,8 +137,8 @@ public class VisorIgfsConfiguration implements Serializable {
         if (secFs != null) {
             Map<String, String> props = secFs.properties();
 
-            cfg.secondaryHadoopFileSysUri = props.get(SECONDARY_FS_URI);
-            cfg.secondaryHadoopFileSysCfgPath = props.get(SECONDARY_FS_CONFIG_PATH);
+            cfg.secondaryHadoopFileSysUri = props.get(IgfsConst.SECONDARY_FS_URI);
+            cfg.secondaryHadoopFileSysCfgPath = props.get(IgfsConst.SECONDARY_FS_CONFIG_PATH);
         }
 
         cfg.dfltMode = igfs.getDefaultMode();


Mime
View raw message