1 package org.openecomp.sdc.common.ecomplog.api;
3 import org.openecomp.sdc.common.ecomplog.EcompMDCWrapper;
4 import org.openecomp.sdc.common.ecomplog.Enums.Severity;
7 * Created by dd4296 on 12/25/2017.
9 public interface IEcompMdcWrapper {
10 EcompMDCWrapper startTimer();
12 EcompMDCWrapper stopTimer();
14 EcompMDCWrapper setClassName(String className);
16 // automatic parameter this is optional
17 EcompMDCWrapper setAutoServerFQDN(String serverFQDN);
19 // automatic parameter this is optional
20 EcompMDCWrapper setAutoServerIPAddress(String serverIPAddress);
22 EcompMDCWrapper setInstanceUUID(String instanceUUID);
24 EcompMDCWrapper setProcessKey(String processKey);
26 EcompMDCWrapper setAlertSeverity(Severity alertSeverity);
28 EcompMDCWrapper setOptCustomField1(String customField1);
30 EcompMDCWrapper setOptCustomField2(String customField2);
32 EcompMDCWrapper setOptCustomField3(String customField3);
34 EcompMDCWrapper setOptCustomField4(String customField4);
36 EcompMDCWrapper setKeyRequestId(String keyRequestId);
38 EcompMDCWrapper setRemoteHost(String remoteHost);
40 EcompMDCWrapper setServiceName(String serviceName);
42 EcompMDCWrapper setStatusCode(String statusCode);
44 EcompMDCWrapper setPartnerName(String partnerName);
46 EcompMDCWrapper setResponseCode(int responseCode);
48 EcompMDCWrapper setResponseDesc(String responseDesc);
50 EcompMDCWrapper setServiceInstanceId(String serviceInstanceId);
52 EcompMDCWrapper setTargetEntity(String targetEntity);
54 EcompMDCWrapper setTargetServiceName(String targetServiceName);
56 EcompMDCWrapper setTargetVirtualEntity(String targetVirtualEntity);
58 EcompMDCWrapper setErrorCode(int errorCode);
60 EcompMDCWrapper setErrorDescription(String errorDescription);
62 EcompMDCWrapper clear();
64 void validateMandatoryFields();
66 void setMandatoryField(String mdcKeyRequestId);
68 void setOptionalField(String mdcKeyRequestId);
70 boolean isMDCParamEmpty(String mdcKeyName);
74 String getHostAddress();