2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.openecomp.mso.client.sdno;
23 import java.io.FileNotFoundException;
24 import java.io.IOException;
25 import java.util.Optional;
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;
33 public class SDNOValidatorImpl implements SDNOValidator {
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 = "";
40 private boolean continuePolling = true;
42 public void healthDiagnostic(String vnfName, String uuid) {
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