-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make commons' modules independant from plugins (#89)
- Loading branch information
Showing
159 changed files
with
3,525 additions
and
1,445 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
30 changes: 30 additions & 0 deletions
30
hadoop-unit-alluxio/src/main/java/fr/jetoile/hadoopunit/component/AlluxioConfig.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,30 @@ | ||
/* | ||
* Licensed 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 fr.jetoile.hadoopunit.component; | ||
|
||
public class AlluxioConfig { | ||
|
||
// Alluxio | ||
public static final String ALLUXIO_WORK_DIR = "alluxio.work.dir"; | ||
public static final String ALLUXIO_HOSTNAME = "alluxio.hostname"; | ||
public static final String ALLUXIO_MASTER_RPC_PORT = "alluxio.master.port"; | ||
public static final String ALLUXIO_MASTER_WEB_PORT = "alluxio.master.web.port"; | ||
public static final String ALLUXIO_PROXY_WEB_PORT = "alluxio.proxy.web.port"; | ||
public static final String ALLUXIO_WORKER_RPC_PORT = "alluxio.worker.port"; | ||
public static final String ALLUXIO_WORKER_DATA_PORT = "alluxio.worker.data.port"; | ||
public static final String ALLUXIO_WORKER_WEB_PORT = "alluxio.worker.web.port"; | ||
public static final String ALLUXIO_WEBAPP_DIRECTORY = "alluxio.webapp.directory"; | ||
|
||
private AlluxioConfig() {} | ||
} |
44 changes: 44 additions & 0 deletions
44
hadoop-unit-alluxio/src/main/java/fr/jetoile/hadoopunit/component/AlluxioMetadata.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,44 @@ | ||
/* | ||
* Licensed 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 fr.jetoile.hadoopunit.component; | ||
|
||
import fr.jetoile.hadoopunit.ComponentMetadata; | ||
|
||
import java.util.Arrays; | ||
import java.util.Collections; | ||
import java.util.List; | ||
|
||
public class AlluxioMetadata extends ComponentMetadata { | ||
|
||
@Override | ||
public String getName() { | ||
return "ALLUXIO"; | ||
} | ||
|
||
@Override | ||
public String getBootstrapClass() { | ||
return "fr.jetoile.hadoopunit.component.AlluxioBootstrap"; | ||
} | ||
|
||
@Override | ||
public String getArtifactKey() { | ||
return "alluxio.artifact"; | ||
} | ||
|
||
@Override | ||
public List<String> getDependencies() { | ||
return Arrays.asList("HDFS"); | ||
} | ||
|
||
} |
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
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
24 changes: 24 additions & 0 deletions
24
hadoop-unit-cassandra/src/main/java/fr/jetoile/hadoopunit/component/CassandraConfig.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,24 @@ | ||
/* | ||
* Licensed 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 fr.jetoile.hadoopunit.component; | ||
|
||
public class CassandraConfig { | ||
|
||
// Cassandra | ||
public static final String CASSANDRA_IP_KEY = "cassandra.ip"; | ||
public static final String CASSANDRA_PORT_KEY = "cassandra.port"; | ||
public static final String CASSANDRA_TEMP_DIR_KEY = "cassandra.temp.dir"; | ||
|
||
private CassandraConfig() {} | ||
} |
43 changes: 43 additions & 0 deletions
43
hadoop-unit-cassandra/src/main/java/fr/jetoile/hadoopunit/component/CassandraMetadata.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,43 @@ | ||
/* | ||
* Licensed 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 fr.jetoile.hadoopunit.component; | ||
|
||
import fr.jetoile.hadoopunit.ComponentMetadata; | ||
|
||
import java.util.Collections; | ||
import java.util.List; | ||
|
||
public class CassandraMetadata extends ComponentMetadata { | ||
|
||
@Override | ||
public String getName() { | ||
return "CASSANDRA"; | ||
} | ||
|
||
@Override | ||
public String getBootstrapClass() { | ||
return "fr.jetoile.hadoopunit.component.CassandraBootstrap"; | ||
} | ||
|
||
@Override | ||
public String getArtifactKey() { | ||
return "cassandra.artifact"; | ||
} | ||
|
||
@Override | ||
public List<String> getDependencies() { | ||
return Collections.EMPTY_LIST; | ||
} | ||
|
||
} |
Oops, something went wrong.