Update license header in appc-dispatcher files
[appc.git] / appc-dispatcher / appc-dispatcher-common / domain-model-lib / src / main / java / org / onap / appc / domainmodel / lcm / RuntimeContext.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP : APPC
4  * ================================================================================
5  * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Copyright (C) 2017 Amdocs
8  * =============================================================================
9  * Licensed under the Apache License, Version 2.0 (the "License");
10  * you may not use this file except in compliance with the License.
11  * You may obtain a copy of the License at
12  * 
13  *      http://www.apache.org/licenses/LICENSE-2.0
14  * 
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  * 
21  * ============LICENSE_END=========================================================
22  */
23
24 package org.onap.appc.domainmodel.lcm;
25
26 import java.time.Instant;
27
28
29 public class RuntimeContext {
30
31     private RequestContext requestContext;
32     private ResponseContext responseContext;
33     private VNFContext vnfContext;
34     private TransactionRecord transactionRecord;
35
36     //TODO move fields timeStart abd isLockAcquired to a better place
37     private Instant timeStart;
38     private String rpcName;
39
40     public String getRpcName() {
41         return rpcName;
42     }
43
44     public void setRpcName(String rpcName) {
45         this.rpcName = rpcName;
46     }
47
48     public RequestContext getRequestContext() {
49         return requestContext;
50     }
51
52     public void setRequestContext(RequestContext requestContext) {
53         this.requestContext = requestContext;
54     }
55
56     public ResponseContext getResponseContext() {
57         return responseContext;
58     }
59
60     public void setResponseContext(ResponseContext responseContext) {
61         this.responseContext = responseContext;
62     }
63
64     public Instant getTimeStart() {
65         return timeStart;
66     }
67
68     public void setTimeStart(Instant timeStart) {
69         this.timeStart = timeStart;
70     }
71
72     public VNFContext getVnfContext() {
73         return vnfContext;
74     }
75
76     public void setVnfContext(VNFContext vnfContext) {
77         this.vnfContext = vnfContext;
78     }
79
80
81     public TransactionRecord getTransactionRecord() {
82         return transactionRecord;
83     }
84
85     public void setTransactionRecord(TransactionRecord transactionRecord) {
86         this.transactionRecord = transactionRecord;
87     }
88
89
90     @Override
91     public String toString() {
92         return "RuntimeContext{" +
93                 "requestContext=" + requestContext +
94                 ", responseContext=" + responseContext +
95                 ", vnfContext=" + vnfContext +
96                 ", timeStart=" + timeStart +
97                 ", rpcName='" + rpcName + '\'' +
98                 '}';
99     }
100 }