View Javadoc
1   
2   package org.miloss.fgsms.services.interfaces.policyconfiguration;
3   
4   import java.io.Serializable;
5   import javax.xml.bind.annotation.XmlAccessType;
6   import javax.xml.bind.annotation.XmlAccessorType;
7   import javax.xml.bind.annotation.XmlElement;
8   import javax.xml.bind.annotation.XmlRootElement;
9   import javax.xml.bind.annotation.XmlType;
10  
11  
12  /**
13   * This represents a policy for a specifc process running on a machine
14   * 
15   * Extends the service policy base type
16   * 
17   * <p>Java class for ProcessPolicy complex type.
18   * 
19   * <p>The following schema fragment specifies the expected content contained within this class.
20   * 
21   * <pre>
22   * &lt;complexType name="ProcessPolicy">
23   *   &lt;complexContent>
24   *     &lt;extension base="{urn:org:miloss:fgsms:services:interfaces:policyConfiguration}ServicePolicy">
25   *       &lt;sequence>
26   *         &lt;element name="AlsoKnownAs" type="{http://www.w3.org/2001/XMLSchema}string"/>
27   *         &lt;element name="RecordCPUusage" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
28   *         &lt;element name="RecordMemoryUsage" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
29   *         &lt;element name="RecordOpenFileHandles" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
30   *       &lt;/sequence>
31   *     &lt;/extension>
32   *   &lt;/complexContent>
33   * &lt;/complexType>
34   * </pre>
35   * 
36   * 
37   */
38  @XmlAccessorType(XmlAccessType.FIELD)
39  @XmlType(name = "ProcessPolicy", propOrder = {
40      "alsoKnownAs",
41      "recordCPUusage",
42      "recordMemoryUsage",
43      "recordOpenFileHandles"
44  })
45  @XmlRootElement
46  public class ProcessPolicy
47      extends ServicePolicy
48      implements Serializable
49  {
50  
51      private final static long serialVersionUID = 1L;
52      @XmlElement(name = "AlsoKnownAs", required = false)
53      protected String alsoKnownAs;
54      @XmlElement(name = "RecordCPUusage")
55      protected boolean recordCPUusage;
56      @XmlElement(name = "RecordMemoryUsage")
57      protected boolean recordMemoryUsage;
58      @XmlElement(name = "RecordOpenFileHandles")
59      protected boolean recordOpenFileHandles;
60  
61      /**
62       * Gets the value of the alsoKnownAs property.
63       * 
64       * @return
65       *     possible object is
66       *     {@link String }
67       *     
68       */
69      public String getAlsoKnownAs() {
70          return alsoKnownAs;
71      }
72  
73      /**
74       * Sets the value of the alsoKnownAs property.
75       * 
76       * @param value
77       *     allowed object is
78       *     {@link String }
79       *     
80       */
81      public void setAlsoKnownAs(String value) {
82          this.alsoKnownAs = value;
83      }
84  
85      public boolean isSetAlsoKnownAs() {
86          return (this.alsoKnownAs!= null);
87      }
88  
89      /**
90       * Gets the value of the recordCPUusage property.
91       * 
92       */
93      public boolean isRecordCPUusage() {
94          return recordCPUusage;
95      }
96  
97      /**
98       * Sets the value of the recordCPUusage property.
99       * 
100      */
101     public void setRecordCPUusage(boolean value) {
102         this.recordCPUusage = value;
103     }
104 
105     public boolean isSetRecordCPUusage() {
106         return true;
107     }
108 
109     /**
110      * Gets the value of the recordMemoryUsage property.
111      * 
112      */
113     public boolean isRecordMemoryUsage() {
114         return recordMemoryUsage;
115     }
116 
117     /**
118      * Sets the value of the recordMemoryUsage property.
119      * 
120      */
121     public void setRecordMemoryUsage(boolean value) {
122         this.recordMemoryUsage = value;
123     }
124 
125     public boolean isSetRecordMemoryUsage() {
126         return true;
127     }
128 
129     /**
130      * Gets the value of the recordOpenFileHandles property.
131      * 
132      */
133     public boolean isRecordOpenFileHandles() {
134         return recordOpenFileHandles;
135     }
136 
137     /**
138      * Sets the value of the recordOpenFileHandles property.
139      * 
140      */
141     public void setRecordOpenFileHandles(boolean value) {
142         this.recordOpenFileHandles = value;
143     }
144 
145     public boolean isSetRecordOpenFileHandles() {
146         return true;
147     }
148 
149 }