2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights
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
12 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
22 package org.openecomp.appc.domainmodel.lcm;
24 import java.time.Instant;
25 import java.util.Date;
28 public class RuntimeContext {
30 private RequestContext requestContext;
31 private ResponseContext responseContext;
32 private VNFContext vnfContext;
34 //TODO move fields timeStart abd isLockAcquired to a better place
35 private Instant timeStart;
36 private boolean isLockAcquired;
37 private String rpcName;
39 public String getRpcName() {
43 public void setRpcName(String rpcName) {
44 this.rpcName = rpcName;
47 public Instant getTimeStart() {
51 public boolean isLockAcquired() {
52 return isLockAcquired;
55 public void setIsLockAcquired(boolean isLockAcquired) {
56 this.isLockAcquired = isLockAcquired;
59 public void setTimeStart(Instant timeStart) {
60 this.timeStart = timeStart;
63 public RequestContext getRequestContext() {
64 return requestContext;
67 public void setRequestContext(RequestContext requestContext) {
68 this.requestContext = requestContext;
71 public ResponseContext getResponseContext() {
72 return responseContext;
75 public void setResponseContext(ResponseContext responseContext) {
76 this.responseContext = responseContext;
79 public VNFContext getVnfContext() {
83 public void setVnfContext(VNFContext vnfContext) {
84 this.vnfContext = vnfContext;
88 public String toString() {
89 return "RuntimeContext{" +
90 "requestContext=" + requestContext +
91 ", responseContext=" + responseContext +
92 ", vnfContext=" + vnfContext +
93 ", timeStart=" + timeStart +
94 ", isLockAcquired=" + isLockAcquired +
95 ", rpcName='" + rpcName + '\'' +