TCA: Support for VES/A&AI enrichment
[dcaegen2/analytics/tca.git] / dcae-analytics-cdap-common / src / main / java / org / openecomp / dcae / apod / analytics / cdap / common / persistance / tca / TCAVESAlertEntity.java
index 7c333d8..785ead1 100644 (file)
@@ -1,78 +1,78 @@
-/*
- * ===============================LICENSE_START======================================
- *  dcae-analytics
- * ================================================================================
- *    Copyright © 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
- *  Licensed 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.
- *  ============================LICENSE_END===========================================
- */
-
-package org.openecomp.dcae.apod.analytics.cdap.common.persistance.tca;
-
-import org.apache.hadoop.io.Writable;
-import org.apache.hadoop.io.WritableUtils;
-
-import java.io.DataInput;
-import java.io.DataOutput;
-import java.io.IOException;
-import java.io.Serializable;
-
-/**
- *
- * @author Rajiv Singla . Creation Date: 11/16/2016.
- */
-public class TCAVESAlertEntity implements Writable, Serializable {
-
-    private static final long serialVersionUID = 1L;
-
-    private long creationTS;
-    private String alertMessage;
-
-    public TCAVESAlertEntity() {
-        // no argument constructor required for json serialization / deserialization
-    }
-
-    public TCAVESAlertEntity(long creationTS, String alertMessage) {
-        this.creationTS = creationTS;
-        this.alertMessage = alertMessage;
-    }
-
-    public long getCreationTS() {
-        return creationTS;
-    }
-
-    public void setCreationTS(long creationTS) {
-        this.creationTS = creationTS;
-    }
-
-    public String getAlertMessage() {
-        return alertMessage;
-    }
-
-    public void setAlertMessage(String alertMessage) {
-        this.alertMessage = alertMessage;
-    }
-
-    @Override
-    public void write(DataOutput dataOutput) throws IOException {
-        WritableUtils.writeVLong(dataOutput, creationTS);
-        WritableUtils.writeString(dataOutput, alertMessage);
-    }
-
-    @Override
-    public void readFields(DataInput dataInput) throws IOException {
-        creationTS = WritableUtils.readVLong(dataInput);
-        alertMessage = WritableUtils.readString(dataInput);
-    }
-}
+/*\r
+ * ===============================LICENSE_START======================================\r
+ *  dcae-analytics\r
+ * ================================================================================\r
+ *    Copyright © 2017 AT&T Intellectual Property. All rights reserved.\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
+\r
+package org.openecomp.dcae.apod.analytics.cdap.common.persistance.tca;\r
+\r
+import org.apache.hadoop.io.Writable;\r
+import org.apache.hadoop.io.WritableUtils;\r
+\r
+import java.io.DataInput;\r
+import java.io.DataOutput;\r
+import java.io.IOException;\r
+import java.io.Serializable;\r
+\r
+/**\r
+ *\r
+ * @author Rajiv Singla . Creation Date: 11/16/2016.\r
+ */\r
+public class TCAVESAlertEntity implements Writable, Serializable {\r
+\r
+    private static final long serialVersionUID = 1L;\r
+\r
+    private long creationTS;\r
+    private String alertMessage;\r
+\r
+    public TCAVESAlertEntity() {\r
+        // no argument constructor required for json serialization / deserialization\r
+    }\r
+\r
+    public TCAVESAlertEntity(long creationTS, String alertMessage) {\r
+        this.creationTS = creationTS;\r
+        this.alertMessage = alertMessage;\r
+    }\r
+\r
+    public long getCreationTS() {\r
+        return creationTS;\r
+    }\r
+\r
+    public void setCreationTS(long creationTS) {\r
+        this.creationTS = creationTS;\r
+    }\r
+\r
+    public String getAlertMessage() {\r
+        return alertMessage;\r
+    }\r
+\r
+    public void setAlertMessage(String alertMessage) {\r
+        this.alertMessage = alertMessage;\r
+    }\r
+\r
+    @Override\r
+    public void write(DataOutput dataOutput) throws IOException {\r
+        WritableUtils.writeVLong(dataOutput, creationTS);\r
+        WritableUtils.writeString(dataOutput, alertMessage);\r
+    }\r
+\r
+    @Override\r
+    public void readFields(DataInput dataInput) throws IOException {\r
+        creationTS = WritableUtils.readVLong(dataInput);\r
+        alertMessage = WritableUtils.readString(dataInput);\r
+    }\r
+}\r