You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by ec...@apache.org on 2013/07/23 19:39:08 UTC

git commit: ACCUMULO-1585 forgot to add new file

Updated Branches:
  refs/heads/master 689414e28 -> 81684b769


ACCUMULO-1585 forgot to add new file


Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/81684b76
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/81684b76
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/81684b76

Branch: refs/heads/master
Commit: 81684b769061339a144ad09b8f5a30251d46b8fa
Parents: 689414e
Author: Eric Newton <ec...@apache.org>
Authored: Tue Jul 23 13:39:13 2013 -0400
Committer: Eric Newton <ec...@apache.org>
Committed: Tue Jul 23 13:39:13 2013 -0400

----------------------------------------------------------------------
 .../org/apache/accumulo/server/ServerOpts.java  | 32 ++++++++++++++++++++
 1 file changed, 32 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/81684b76/server/src/main/java/org/apache/accumulo/server/ServerOpts.java
----------------------------------------------------------------------
diff --git a/server/src/main/java/org/apache/accumulo/server/ServerOpts.java b/server/src/main/java/org/apache/accumulo/server/ServerOpts.java
new file mode 100644
index 0000000..95fee8f
--- /dev/null
+++ b/server/src/main/java/org/apache/accumulo/server/ServerOpts.java
@@ -0,0 +1,32 @@
+/*
+ * 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.server;
+
+import org.apache.accumulo.core.cli.Help;
+
+import com.beust.jcommander.Parameter;
+
+public class ServerOpts extends Help {
+  @Parameter(names={"-a", "--address"}, description = "address to bind to")
+  String address = null;
+  
+  public String getAddress() {
+    if (address != null)
+      return address;
+    return "0.0.0.0";
+  }
+}
\ No newline at end of file