ACCUMULO-2114 Starting a Constants reference for clients
Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/26c51db4 Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/26c51db4 Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/26c51db4 Branch: refs/heads/master Commit: 26c51db4d77bbba2d9ce50e1d6d0efc718618e50 Parents: 4e331fa Author: John Vines <vi...@apache.org> Authored: Tue Feb 4 14:43:22 2014 -0500 Committer: John Vines <vi...@apache.org> Committed: Tue Feb 4 14:43:22 2014 -0500 ---------------------------------------------------------------------- .../accumulo/core/client/ClientConstants.java | 22 ++++++++++++++++++++ .../accumulo/core/client/impl/Namespaces.java | 3 ++- 2 files changed, 24 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/accumulo/blob/26c51db4/core/src/main/java/org/apache/accumulo/core/client/ClientConstants.java ---------------------------------------------------------------------- diff --git a/core/src/main/java/org/apache/accumulo/core/client/ClientConstants.java b/core/src/main/java/org/apache/accumulo/core/client/ClientConstants.java new file mode 100644 index 0000000..4514e82 --- /dev/null +++ b/core/src/main/java/org/apache/accumulo/core/client/ClientConstants.java @@ -0,0 +1,22 @@ +/* + * 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.accumulo.core.client; + + +public class ClientConstants { + public static final String DEFAULT_NAMESPACE = ""; +} http://git-wip-us.apache.org/repos/asf/accumulo/blob/26c51db4/core/src/main/java/org/apache/accumulo/core/client/impl/Namespaces.java ---------------------------------------------------------------------- diff --git a/core/src/main/java/org/apache/accumulo/core/client/impl/Namespaces.java b/core/src/main/java/org/apache/accumulo/core/client/impl/Namespaces.java index c134c04..4161b12 100644 --- a/core/src/main/java/org/apache/accumulo/core/client/impl/Namespaces.java +++ b/core/src/main/java/org/apache/accumulo/core/client/impl/Namespaces.java @@ -24,6 +24,7 @@ import java.util.SortedMap; import java.util.TreeMap; import org.apache.accumulo.core.Constants; +import org.apache.accumulo.core.client.ClientConstants; import org.apache.accumulo.core.client.Instance; import org.apache.accumulo.core.client.NamespaceNotFoundException; import org.apache.accumulo.core.util.ArgumentChecker.Validator; @@ -73,7 +74,7 @@ public class Namespaces { private static SecurityPermission TABLES_PERMISSION = new SecurityPermission("tablesPermission"); public static final String DEFAULT_NAMESPACE_ID = "+default"; - public static final String DEFAULT_NAMESPACE = ""; + public static final String DEFAULT_NAMESPACE = ClientConstants.DEFAULT_NAMESPACE; public static final String ACCUMULO_NAMESPACE_ID = "+accumulo"; public static final String ACCUMULO_NAMESPACE = "accumulo";