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