Repository: ambari Updated Branches: refs/heads/trunk da767d5f6 -> 42d19f377
AMBARI-5770. Embed Slider client into Ambari Slider view. (srimanth) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/42d19f37 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/42d19f37 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/42d19f37 Branch: refs/heads/trunk Commit: 42d19f377aaf12ec42d6fc6283659eacb1b3503c Parents: da767d5 Author: Srimanth Gunturi <[email protected]> Authored: Thu May 15 00:02:02 2014 -0700 Committer: Srimanth Gunturi <[email protected]> Committed: Thu May 15 13:18:02 2014 -0700 ---------------------------------------------------------------------- .../slider/slider/0.30.0/slider-0.30.0.jar | Bin 0 -> 1012825 bytes .../slider/slider/0.30.0/slider-0.30.0.pom | 25 +++++++++++++++ .../slider/slider/maven-metadata-local.xml | 28 +++++++++++++++++ contrib/views/slider/pom.xml | 13 ++++++++ .../ambari/view/slider/SliderClientTest.java | 31 +++++++++++++++++++ 5 files changed, 97 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/42d19f37/contrib/views/slider/lib/org/apache/slider/slider/0.30.0/slider-0.30.0.jar ---------------------------------------------------------------------- diff --git a/contrib/views/slider/lib/org/apache/slider/slider/0.30.0/slider-0.30.0.jar b/contrib/views/slider/lib/org/apache/slider/slider/0.30.0/slider-0.30.0.jar new file mode 100644 index 0000000..9697ac5 Binary files /dev/null and b/contrib/views/slider/lib/org/apache/slider/slider/0.30.0/slider-0.30.0.jar differ http://git-wip-us.apache.org/repos/asf/ambari/blob/42d19f37/contrib/views/slider/lib/org/apache/slider/slider/0.30.0/slider-0.30.0.pom ---------------------------------------------------------------------- diff --git a/contrib/views/slider/lib/org/apache/slider/slider/0.30.0/slider-0.30.0.pom b/contrib/views/slider/lib/org/apache/slider/slider/0.30.0/slider-0.30.0.pom new file mode 100644 index 0000000..857600f --- /dev/null +++ b/contrib/views/slider/lib/org/apache/slider/slider/0.30.0/slider-0.30.0.pom @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + 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. +--> +<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> + <modelVersion>4.0.0</modelVersion> + <groupId>org.apache.slider</groupId> + <artifactId>slider</artifactId> + <version>0.30.0</version> + <description>POM was created from install:install-file</description> +</project> http://git-wip-us.apache.org/repos/asf/ambari/blob/42d19f37/contrib/views/slider/lib/org/apache/slider/slider/maven-metadata-local.xml ---------------------------------------------------------------------- diff --git a/contrib/views/slider/lib/org/apache/slider/slider/maven-metadata-local.xml b/contrib/views/slider/lib/org/apache/slider/slider/maven-metadata-local.xml new file mode 100644 index 0000000..faf7bb8 --- /dev/null +++ b/contrib/views/slider/lib/org/apache/slider/slider/maven-metadata-local.xml @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + 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. +--> +<metadata> + <groupId>org.apache.slider</groupId> + <artifactId>slider</artifactId> + <versioning> + <release>0.30.0</release> + <versions> + <version>0.30.0</version> + </versions> + <lastUpdated>20140515192533</lastUpdated> + </versioning> +</metadata> http://git-wip-us.apache.org/repos/asf/ambari/blob/42d19f37/contrib/views/slider/pom.xml ---------------------------------------------------------------------- diff --git a/contrib/views/slider/pom.xml b/contrib/views/slider/pom.xml index ffe25a4..74a0d47 100644 --- a/contrib/views/slider/pom.xml +++ b/contrib/views/slider/pom.xml @@ -34,6 +34,11 @@ <version>${hadoop-version}</version> </dependency> <dependency> + <groupId>org.apache.slider</groupId> + <artifactId>slider</artifactId> + <version>0.30.0</version> + </dependency> + <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <scope>test</scope> @@ -96,6 +101,14 @@ </dependency> </dependencies> + <repositories> + <repository> + <id>SliderAppsLibsRepo</id> + <name>SliderAppsLibsRepo</name> + <url>file://${project.basedir}/lib</url> + </repository> + </repositories> + <properties> <hadoop-version>2.2.0</hadoop-version> <nodejs.directory>${basedir}/target/nodejs</nodejs.directory> http://git-wip-us.apache.org/repos/asf/ambari/blob/42d19f37/contrib/views/slider/src/test/java/org/apache/ambari/view/slider/SliderClientTest.java ---------------------------------------------------------------------- diff --git a/contrib/views/slider/src/test/java/org/apache/ambari/view/slider/SliderClientTest.java b/contrib/views/slider/src/test/java/org/apache/ambari/view/slider/SliderClientTest.java new file mode 100644 index 0000000..8af22b7 --- /dev/null +++ b/contrib/views/slider/src/test/java/org/apache/ambari/view/slider/SliderClientTest.java @@ -0,0 +1,31 @@ +/** + * 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.ambari.view.slider; + +import org.apache.slider.client.SliderClient; +import org.apache.slider.common.SliderKeys; +import org.junit.Assert; +import org.junit.Test; + +public class SliderClientTest { + @Test + public void testSliderClientClassAvailability() { + Assert.assertEquals(SliderKeys.APP_TYPE, SliderClient.APP_TYPE); + } +}
