Home » geronimo-2.2-source-release » org.apache.geronimo.monitoring.snapshot » [javadoc | source]

    1   /**
    2    *  Licensed to the Apache Software Foundation (ASF) under one or more
    3    *  contributor license agreements.  See the NOTICE file distributed with
    4    *  this work for additional information regarding copyright ownership.
    5    *  The ASF licenses this file to You under the Apache License, Version 2.0
    6    *  (the "License"); you may not use this file except in compliance with
    7    *  the License.  You may obtain a copy of the License at
    8    *
    9    *     http://www.apache.org/licenses/LICENSE-2.0
   10    *
   11    *  Unless required by applicable law or agreed to in writing, software
   12    *  distributed under the License is distributed on an "AS IS" BASIS,
   13    *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   14    *  See the License for the specific language governing permissions and
   15    *  limitations under the License.
   16    */
   17   package org.apache.geronimo.monitoring.snapshot;
   18   
   19   import java.util.ArrayList;
   20   import java.util.List;
   21   import javax.xml.bind.annotation.XmlAccessType;
   22   import javax.xml.bind.annotation.XmlAccessorType;
   23   import javax.xml.bind.annotation.XmlRootElement;
   24   import javax.xml.bind.annotation.XmlType;
   25   
   26   
   27   /**
   28    * <p>Java class for snapshot-config element declaration.
   29    * 
   30    * <p>The following schema fragment specifies the expected content contained within this class.
   31    * 
   32    * <pre>
   33    * &lt;element name="snapshot-config">
   34    *   &lt;complexType>
   35    *     &lt;complexContent>
   36    *       &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
   37    *         &lt;sequence>
   38    *           &lt;element name="duration" type="{http://www.w3.org/2001/XMLSchema}string"/>
   39    *           &lt;element name="retention" type="{http://www.w3.org/2001/XMLSchema}string"/>
   40    *           &lt;element name="mbeans">
   41    *             &lt;complexType>
   42    *               &lt;complexContent>
   43    *                 &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
   44    *                   &lt;sequence>
   45    *                     &lt;element name="mbean" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
   46    *                   &lt;/sequence>
   47    *                 &lt;/restriction>
   48    *               &lt;/complexContent>
   49    *             &lt;/complexType>
   50    *           &lt;/element>
   51    *         &lt;/sequence>
   52    *       &lt;/restriction>
   53    *     &lt;/complexContent>
   54    *   &lt;/complexType>
   55    * &lt;/element>
   56    * </pre>
   57    * 
   58    * 
   59    */
   60   @XmlAccessorType(XmlAccessType.FIELD)
   61   @XmlType(name = "", propOrder = {
   62       "duration",
   63       "retention",
   64       "mbeans"
   65   })
   66   @XmlRootElement(name = "snapshot-config")
   67   public class SnapshotConfig {
   68   
   69       protected String duration;
   70       protected String retention;
   71       protected Mbeans mbeans;
   72   
   73       /**
   74        * Gets the value of the duration property.
   75        * 
   76        * @return
   77        *     possible object is
   78        *     {@link String }
   79        *     
   80        */
   81       public String getDuration() {
   82           return duration;
   83       }
   84   
   85       /**
   86        * Sets the value of the duration property.
   87        * 
   88        * @param value
   89        *     allowed object is
   90        *     {@link String }
   91        *     
   92        */
   93       public void setDuration(String value) {
   94           this.duration = value;
   95       }
   96   
   97       /**
   98        * Gets the value of the retention property.
   99        * 
  100        * @return
  101        *     possible object is
  102        *     {@link String }
  103        *     
  104        */
  105       public String getRetention() {
  106           return retention;
  107       }
  108   
  109       /**
  110        * Sets the value of the retention property.
  111        * 
  112        * @param value
  113        *     allowed object is
  114        *     {@link String }
  115        *     
  116        */
  117       public void setRetention(String value) {
  118           this.retention = value;
  119       }
  120   
  121       /**
  122        * Gets the value of the mbeans property.
  123        * 
  124        * @return
  125        *     possible object is
  126        *     {@link Mbeans }
  127        *     
  128        */
  129       public Mbeans getMbeans() {
  130           return mbeans;
  131       }
  132   
  133       /**
  134        * Sets the value of the mbeans property.
  135        * 
  136        * @param value
  137        *     allowed object is
  138        *     {@link Mbeans }
  139        *     
  140        */
  141       public void setMbeans(Mbeans value) {
  142           this.mbeans = value;
  143       }
  144   
  145   
  146       /**
  147        * <p>Java class for anonymous complex type.
  148        * 
  149        * <p>The following schema fragment specifies the expected content contained within this class.
  150        * 
  151        * <pre>
  152        * &lt;complexType>
  153        *   &lt;complexContent>
  154        *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
  155        *       &lt;sequence>
  156        *         &lt;element name="mbean" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
  157        *       &lt;/sequence>
  158        *     &lt;/restriction>
  159        *   &lt;/complexContent>
  160        * &lt;/complexType>
  161        * </pre>
  162        * 
  163        * 
  164        */
  165       @XmlAccessorType(XmlAccessType.FIELD)
  166       @XmlType(name = "", propOrder = {
  167           "mbean"
  168       })
  169       public static class Mbeans {
  170   
  171           protected List<String> mbean;
  172   
  173           /**
  174            * Gets the value of the mbean property.
  175            * 
  176            * <p>
  177            * This accessor method returns a reference to the live list,
  178            * not a snapshot. Therefore any modification you make to the
  179            * returned list will be present inside the JAXB object.
  180            * This is why there is not a <CODE>set</CODE> method for the mbean property.
  181            * 
  182            * <p>
  183            * For example, to add a new item, do as follows:
  184            * <pre>
  185            *    getMbean().add(newItem);
  186            * </pre>
  187            * 
  188            * 
  189            * <p>
  190            * Objects of the following type(s) are allowed in the list
  191            * {@link String }
  192            * 
  193            * 
  194            */
  195           public List<String> getMbean() {
  196               if (mbean == null) {
  197                   mbean = new ArrayList<String>();
  198               }
  199               return this.mbean;
  200           }
  201   
  202       }
  203   
  204   }

Home » geronimo-2.2-source-release » org.apache.geronimo.monitoring.snapshot » [javadoc | source]