Refactoring Consolidation Service
[sdc.git] / common-app-api / src / main / java / org / openecomp / sdc / common / ecomplog / api / IEcompMdcWrapper.java
1 package org.openecomp.sdc.common.ecomplog.api;
2
3 import org.openecomp.sdc.common.ecomplog.EcompMDCWrapper;
4 import org.openecomp.sdc.common.ecomplog.Enums.Severity;
5
6 /**
7  * Created by dd4296 on 12/25/2017.
8  */
9 public interface IEcompMdcWrapper {
10     EcompMDCWrapper startTimer();
11
12     EcompMDCWrapper stopTimer();
13
14     EcompMDCWrapper setClassName(String className);
15
16     // automatic parameter this is optional
17     EcompMDCWrapper setAutoServerFQDN(String serverFQDN);
18
19     // automatic parameter this is optional
20     EcompMDCWrapper setAutoServerIPAddress(String serverIPAddress);
21
22     EcompMDCWrapper setInstanceUUID(String instanceUUID);
23
24     EcompMDCWrapper setProcessKey(String processKey);
25
26     EcompMDCWrapper setAlertSeverity(Severity alertSeverity);
27
28     EcompMDCWrapper setOptCustomField1(String customField1);
29
30     EcompMDCWrapper setOptCustomField2(String customField2);
31
32     EcompMDCWrapper setOptCustomField3(String customField3);
33
34     EcompMDCWrapper setOptCustomField4(String customField4);
35
36     EcompMDCWrapper setKeyRequestId(String keyRequestId);
37
38     EcompMDCWrapper setRemoteHost(String remoteHost);
39
40     EcompMDCWrapper setServiceName(String serviceName);
41
42     EcompMDCWrapper setStatusCode(String statusCode);
43
44     EcompMDCWrapper setPartnerName(String partnerName);
45
46     EcompMDCWrapper setResponseCode(int responseCode);
47
48     EcompMDCWrapper setResponseDesc(String responseDesc);
49
50     EcompMDCWrapper setServiceInstanceId(String serviceInstanceId);
51
52     EcompMDCWrapper setTargetEntity(String targetEntity);
53
54     EcompMDCWrapper setTargetServiceName(String targetServiceName);
55
56     EcompMDCWrapper setTargetVirtualEntity(String targetVirtualEntity);
57
58     EcompMDCWrapper setErrorCode(int errorCode);
59
60     EcompMDCWrapper setErrorDescription(String errorDescription);
61
62     EcompMDCWrapper clear();
63
64     void validateMandatoryFields();
65
66     void setMandatoryField(String mdcKeyRequestId);
67
68     void setOptionalField(String mdcKeyRequestId);
69
70     boolean isMDCParamEmpty(String mdcKeyName);
71
72     String getFqdn();
73
74     String getHostAddress();
75 }