incubator-ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From omal...@apache.org
Subject svn commit: r1181033 - in /incubator/ambari/trunk/client/src/main/java/org/apache/ambari/common/rest/entities: ComponentDefinition.java PackageRepository.java RepositoryKind.java RoleToNodes.java RoleToNodesMap.java RoleToNodesMapEntry.java Roles.java
Date Mon, 10 Oct 2011 15:47:58 GMT
Author: omalley
Date: Mon Oct 10 15:47:58 2011
New Revision: 1181033

URL: http://svn.apache.org/viewvc?rev=1181033&view=rev
Log:
AMBARI-50. I missed some files.

Added:
    incubator/ambari/trunk/client/src/main/java/org/apache/ambari/common/rest/entities/ComponentDefinition.java
    incubator/ambari/trunk/client/src/main/java/org/apache/ambari/common/rest/entities/RepositoryKind.java
    incubator/ambari/trunk/client/src/main/java/org/apache/ambari/common/rest/entities/RoleToNodes.java
Removed:
    incubator/ambari/trunk/client/src/main/java/org/apache/ambari/common/rest/entities/PackageRepository.java
    incubator/ambari/trunk/client/src/main/java/org/apache/ambari/common/rest/entities/RoleToNodesMap.java
    incubator/ambari/trunk/client/src/main/java/org/apache/ambari/common/rest/entities/RoleToNodesMapEntry.java
    incubator/ambari/trunk/client/src/main/java/org/apache/ambari/common/rest/entities/Roles.java

Added: incubator/ambari/trunk/client/src/main/java/org/apache/ambari/common/rest/entities/ComponentDefinition.java
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/client/src/main/java/org/apache/ambari/common/rest/entities/ComponentDefinition.java?rev=1181033&view=auto
==============================================================================
--- incubator/ambari/trunk/client/src/main/java/org/apache/ambari/common/rest/entities/ComponentDefinition.java
(added)
+++ incubator/ambari/trunk/client/src/main/java/org/apache/ambari/common/rest/entities/ComponentDefinition.java
Mon Oct 10 15:47:58 2011
@@ -0,0 +1,86 @@
+/*
+ * 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.common.rest.entities;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlRootElement;
+
+
+/**
+ * Define the name, group, and version of a component definition.
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlRootElement
+public class ComponentDefinition {
+  @XmlAttribute
+  protected String group;
+  @XmlAttribute
+  protected String definition;
+  @XmlAttribute
+  protected String version;
+  
+  /**
+   * Get the group that published the component definition
+   * @return the group name
+   */
+  public String getGroup() {
+    return group;
+  }
+  
+  /**
+   * Get the name of the component definition
+   * @return the component definition name
+   */
+  public String getDefinition() {
+    return definition;
+  }
+  
+  /**
+   * Get the version of the component definition
+   * @return the version string
+   */
+  public String getVersion() {
+    return version;
+  }
+  
+  /**
+   * Set the group that published the component definition
+   * @param group
+   */
+  public void setGroup(String group) {
+    this.group = group;
+  }
+  
+  /**
+   * Set the component definition name.
+   * @param definition the new name
+   */
+  public void setDefinition(String definition) {
+    this.definition = definition;
+  }
+  
+  /**
+   * Set the version of the component definition.
+   * @param version the new version
+   */
+  public void setVersion(String version) {
+    this.version = version;
+  }
+}

Added: incubator/ambari/trunk/client/src/main/java/org/apache/ambari/common/rest/entities/RepositoryKind.java
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/client/src/main/java/org/apache/ambari/common/rest/entities/RepositoryKind.java?rev=1181033&view=auto
==============================================================================
--- incubator/ambari/trunk/client/src/main/java/org/apache/ambari/common/rest/entities/RepositoryKind.java
(added)
+++ incubator/ambari/trunk/client/src/main/java/org/apache/ambari/common/rest/entities/RepositoryKind.java
Mon Oct 10 15:47:58 2011
@@ -0,0 +1,94 @@
+/*
+ * 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.common.rest.entities;
+
+import java.util.List;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * Entity for defining a list of repositories
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "PackageType", propOrder = {
+    "urls"
+})
+@XmlRootElement
+public class RepositoryKind {
+
+    @XmlAttribute(required = true)
+    protected String kind;
+    
+    @XmlElement(required = true)
+    protected List<String> urls;
+
+    /**
+     * Gets the value of the urls property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public List<String> getUrls() {
+        return urls;
+    }
+
+    /**
+     * Sets the value of the locationURL property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setUrls(List<String> value) {
+        this.urls = value;
+    }
+
+    /**
+     * Gets the value of the kind property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getKind() {
+        return kind;
+    }
+
+    /**
+     * Sets the value of the kind property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setKind(String value) {
+        this.kind = value;
+    }
+
+}

Added: incubator/ambari/trunk/client/src/main/java/org/apache/ambari/common/rest/entities/RoleToNodes.java
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/client/src/main/java/org/apache/ambari/common/rest/entities/RoleToNodes.java?rev=1181033&view=auto
==============================================================================
--- incubator/ambari/trunk/client/src/main/java/org/apache/ambari/common/rest/entities/RoleToNodes.java
(added)
+++ incubator/ambari/trunk/client/src/main/java/org/apache/ambari/common/rest/entities/RoleToNodes.java
Mon Oct 10 15:47:58 2011
@@ -0,0 +1,60 @@
+/*
+ * 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.common.rest.entities;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+
+
+/**
+ * <p>Java class for RoleToNodesMapEntryType complex type.
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+public class RoleToNodes {
+
+    @XmlAttribute(required = true)
+    protected String roleName;
+    @XmlAttribute
+    protected String nodes;
+    
+        /**
+         * @return the roleName
+         */
+        public String getRoleName() {
+                return roleName;
+        }
+        /**
+         * @param roleName the roleName to set
+         */
+        public void setRoleName(String roleName) {
+                this.roleName = roleName;
+        }
+        /**
+         * @return the nodeRangeExpressions
+         */
+        public String getNodeRangeExpressions() {
+                return nodes;
+        }
+        /**
+         * @param nodeRangeExpressions the nodeRangeExpressions to set
+         */
+        public void setNodes(String nodes) {
+                this.nodes = nodes;
+        }
+}



Mime
View raw message