--- /dev/null
+/*\r
+* ============LICENSE_START=======================================================\r
+* ONAP : DCAE\r
+* ================================================================================\r
+* Copyright 2018 TechMahindra\r
+*=================================================================================\r
+* Licensed under the Apache License, Version 2.0 (the "License");\r
+* you may not use this file except in compliance with the License.\r
+* You may obtain a copy of the License at\r
+*\r
+* http://www.apache.org/licenses/LICENSE-2.0\r
+*\r
+* Unless required by applicable law or agreed to in writing, software\r
+* distributed under the License is distributed on an "AS IS" BASIS,\r
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+* See the License for the specific language governing permissions and\r
+* limitations under the License.\r
+* ============LICENSE_END=========================================================\r
+*/\r
+package org.onap.dcaegen2.ves.domain.ves7_0;\r
+\r
+import com.fasterxml.jackson.annotation.JsonInclude;\r
+import com.fasterxml.jackson.annotation.JsonProperty;\r
+import com.fasterxml.jackson.annotation.JsonPropertyDescription;\r
+import com.fasterxml.jackson.annotation.JsonPropertyOrder;\r
+import org.apache.commons.lang.builder.EqualsBuilder;\r
+import org.apache.commons.lang.builder.HashCodeBuilder;\r
+import org.apache.commons.lang.builder.ToStringBuilder;\r
+\r
+\r
+/**\r
+ * metrics on system processes\r
+ * \r
+ */\r
+@JsonInclude(JsonInclude.Include.NON_NULL)\r
+@JsonPropertyOrder({\r
+ "forkRate",\r
+ "processIdentifier",\r
+ "psStateBlocked",\r
+ "psStatePaging",\r
+ "psStateRunning",\r
+ "psStateSleeping",\r
+ "psStateStopped",\r
+ "psStateZombie"\r
+})\r
+public class ProcessStatsArray {\r
+\r
+ /**\r
+ * the number of threads created since the last reboot\r
+ * \r
+ */\r
+ @JsonProperty("forkRate")\r
+ @JsonPropertyDescription("the number of threads created since the last reboot")\r
+ private Double forkRate;\r
+ /**\r
+ * processIdentifier\r
+ * (Required)\r
+ * \r
+ */\r
+ @JsonProperty("processIdentifier")\r
+ @JsonPropertyDescription("processIdentifier")\r
+ private String processIdentifier;\r
+ /**\r
+ * the number of processes in a blocked state\r
+ * \r
+ */\r
+ @JsonProperty("psStateBlocked")\r
+ @JsonPropertyDescription("the number of processes in a blocked state")\r
+ private Double psStateBlocked;\r
+ /**\r
+ * the number of processes in a paging state\r
+ * \r
+ */\r
+ @JsonProperty("psStatePaging")\r
+ @JsonPropertyDescription("the number of processes in a paging state")\r
+ private Double psStatePaging;\r
+ /**\r
+ * the number of processes in a running state\r
+ * \r
+ */\r
+ @JsonProperty("psStateRunning")\r
+ @JsonPropertyDescription("the number of processes in a running state")\r
+ private Double psStateRunning;\r
+ /**\r
+ * the number of processes in a sleeping state\r
+ * \r
+ */\r
+ @JsonProperty("psStateSleeping")\r
+ @JsonPropertyDescription("the number of processes in a sleeping state")\r
+ private Double psStateSleeping;\r
+ /**\r
+ * the number of processes in a stopped state\r
+ * \r
+ */\r
+ @JsonProperty("psStateStopped")\r
+ @JsonPropertyDescription("the number of processes in a stopped state")\r
+ private Double psStateStopped;\r
+ /**\r
+ * the number of processes in a zombie state\r
+ * \r
+ */\r
+ @JsonProperty("psStateZombie")\r
+ @JsonPropertyDescription("the number of processes in a zombie state")\r
+ private Double psStateZombie;\r
+\r
+ /**\r
+ * the number of threads created since the last reboot\r
+ * \r
+ */\r
+ @JsonProperty("forkRate")\r
+ public Double getForkRate() {\r
+ return forkRate;\r
+ }\r
+\r
+ /**\r
+ * the number of threads created since the last reboot\r
+ * \r
+ */\r
+ @JsonProperty("forkRate")\r
+ public void setForkRate(Double forkRate) {\r
+ this.forkRate = forkRate;\r
+ }\r
+\r
+ /**\r
+ * processIdentifier\r
+ * (Required)\r
+ * \r
+ */\r
+ @JsonProperty("processIdentifier")\r
+ public String getProcessIdentifier() {\r
+ return processIdentifier;\r
+ }\r
+\r
+ /**\r
+ * processIdentifier\r
+ * (Required)\r
+ * \r
+ */\r
+ @JsonProperty("processIdentifier")\r
+ public void setProcessIdentifier(String processIdentifier) {\r
+ this.processIdentifier = processIdentifier;\r
+ }\r
+\r
+ /**\r
+ * the number of processes in a blocked state\r
+ * \r
+ */\r
+ @JsonProperty("psStateBlocked")\r
+ public Double getPsStateBlocked() {\r
+ return psStateBlocked;\r
+ }\r
+\r
+ /**\r
+ * the number of processes in a blocked state\r
+ * \r
+ */\r
+ @JsonProperty("psStateBlocked")\r
+ public void setPsStateBlocked(Double psStateBlocked) {\r
+ this.psStateBlocked = psStateBlocked;\r
+ }\r
+\r
+ /**\r
+ * the number of processes in a paging state\r
+ * \r
+ */\r
+ @JsonProperty("psStatePaging")\r
+ public Double getPsStatePaging() {\r
+ return psStatePaging;\r
+ }\r
+\r
+ /**\r
+ * the number of processes in a paging state\r
+ * \r
+ */\r
+ @JsonProperty("psStatePaging")\r
+ public void setPsStatePaging(Double psStatePaging) {\r
+ this.psStatePaging = psStatePaging;\r
+ }\r
+\r
+ /**\r
+ * the number of processes in a running state\r
+ * \r
+ */\r
+ @JsonProperty("psStateRunning")\r
+ public Double getPsStateRunning() {\r
+ return psStateRunning;\r
+ }\r
+\r
+ /**\r
+ * the number of processes in a running state\r
+ * \r
+ */\r
+ @JsonProperty("psStateRunning")\r
+ public void setPsStateRunning(Double psStateRunning) {\r
+ this.psStateRunning = psStateRunning;\r
+ }\r
+\r
+ /**\r
+ * the number of processes in a sleeping state\r
+ * \r
+ */\r
+ @JsonProperty("psStateSleeping")\r
+ public Double getPsStateSleeping() {\r
+ return psStateSleeping;\r
+ }\r
+\r
+ /**\r
+ * the number of processes in a sleeping state\r
+ * \r
+ */\r
+ @JsonProperty("psStateSleeping")\r
+ public void setPsStateSleeping(Double psStateSleeping) {\r
+ this.psStateSleeping = psStateSleeping;\r
+ }\r
+\r
+ /**\r
+ * the number of processes in a stopped state\r
+ * \r
+ */\r
+ @JsonProperty("psStateStopped")\r
+ public Double getPsStateStopped() {\r
+ return psStateStopped;\r
+ }\r
+\r
+ /**\r
+ * the number of processes in a stopped state\r
+ * \r
+ */\r
+ @JsonProperty("psStateStopped")\r
+ public void setPsStateStopped(Double psStateStopped) {\r
+ this.psStateStopped = psStateStopped;\r
+ }\r
+\r
+ /**\r
+ * the number of processes in a zombie state\r
+ * \r
+ */\r
+ @JsonProperty("psStateZombie")\r
+ public Double getPsStateZombie() {\r
+ return psStateZombie;\r
+ }\r
+\r
+ /**\r
+ * the number of processes in a zombie state\r
+ * \r
+ */\r
+ @JsonProperty("psStateZombie")\r
+ public void setPsStateZombie(Double psStateZombie) {\r
+ this.psStateZombie = psStateZombie;\r
+ }\r
+\r
+ @Override\r
+ public String toString() {\r
+ return ToStringBuilder.reflectionToString(this);\r
+ }\r
+\r
+ @Override\r
+ public int hashCode() {\r
+ return new HashCodeBuilder().append(forkRate).append(processIdentifier).append(psStateBlocked).append(psStatePaging).append(psStateRunning).append(psStateSleeping).append(psStateStopped).append(psStateZombie).toHashCode();\r
+ }\r
+\r
+ @Override\r
+ public boolean equals(Object other) {\r
+ if (other == this) {\r
+ return true;\r
+ }\r
+ if ((other instanceof ProcessStatsArray) == false) {\r
+ return false;\r
+ }\r
+ ProcessStatsArray rhs = ((ProcessStatsArray) other);\r
+ return new EqualsBuilder().append(forkRate, rhs.forkRate).append(processIdentifier, rhs.processIdentifier).append(psStateBlocked, rhs.psStateBlocked).append(psStatePaging, rhs.psStatePaging).append(psStateRunning, rhs.psStateRunning).append(psStateSleeping, rhs.psStateSleeping).append(psStateStopped, rhs.psStateStopped).append(psStateZombie, rhs.psStateZombie).isEquals();\r
+ }\r
+\r
+}\r