Merge "Change the copyright to 2018"
[so.git] / bpmn / MSOCommonBPMN / src / main / java / org / openecomp / mso / client / sdno / SDNOValidatorImpl.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.openecomp.mso.client.sdno;
22
23 import java.io.FileNotFoundException;
24 import java.io.IOException;
25 import java.util.Optional;
26
27 import org.openecomp.mso.client.dmaap.Consumer;
28 import org.openecomp.mso.client.dmaap.DmaapConsumer;
29 import org.openecomp.mso.client.dmaap.DmaapPublisher;
30 import org.openecomp.mso.client.exceptions.SDNOException;
31 import org.openecomp.mso.jsonpath.JsonPathUtil;
32
33 public class SDNOValidatorImpl implements SDNOValidator {
34
35         private final static String aafUserName = "something";
36         private final static String clientName = "MSO";
37         private final static String healthDiagnosticPath = "body.output.response-healthdiagnostic";
38         private final static String producerFilePath = "";
39         private String uuid;
40         private boolean continuePolling = true;
41         @Override
42         public void healthDiagnostic(String vnfName, String uuid) {
43                 //Query A&AI data
44                 // setup SDNO Entity
45                 //Call SDNO for Health Diagnostic
46                 //create producer file for MRClient https://wiki.web.att.com/display/MessageRouter/DMaaP_MR_JavaReferenceClient
47                 //  final MRBatchingPublisher pub = MRClientFactory.createBatchingPublisher(producerFilePath);
48                 //      pub.send("Mypartitionkey",JSON.toString(object));
49                 //create consumer file for MRClient https://wiki.web.att.com/display/MessageRouter/DMaaP_MR_JavaReferenceClient
50                 //check for error in subscription feed filter via jsonpath 
51                 //block and continue to poll waiting for response
52         }
53
54 }