forked from apache/whirr
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WHIRR-206. [HBase] Extract strings to a HBaseServiceConstants interfa…
…ce. Contributed by Lars George. git-svn-id: https://svn.apache.org/repos/asf/incubator/whirr/trunk@1059205 13f79535-47bb-0310-9956-ffa450edef68
- Loading branch information
Showing
5 changed files
with
87 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
services/hbase/src/main/java/org/apache/whirr/service/hbase/HBaseConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/** | ||
* 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.whirr.service.hbase; | ||
|
||
public final class HBaseConstants { | ||
|
||
public static final String KEY_INSTALL_RUNURL = "whirr.hbase.install-runurl"; | ||
public static final String KEY_CONFIGURE_RUNURL = "whirr.hbase.configure-runurl"; | ||
public static final String KEY_VERSION = "whirr.hbase.version"; | ||
|
||
public static final String SCRIPT_INSTALL = "apache/hbase/install"; | ||
public static final String SCRIPT_POST_CONFIGURE = "apache/hbase/post-configure"; | ||
|
||
public static final String PARAM_PROVIDER = "-c"; | ||
public static final String PARAM_MASTER = "-m"; | ||
public static final String PARAM_QUORUM = "-q"; | ||
public static final String PARAM_PORT = "-p"; | ||
public static final String PARAM_VERSION = "-v"; | ||
|
||
public static final String PROP_HBASE_ZOOKEEPER_QUORUM = "hbase.zookeeper.quorum"; | ||
|
||
public static final String FILE_HBASE_SITE_XML = "hbase-site.xml"; | ||
|
||
private HBaseConstants() { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters