2 * ============LICENSE_START=======================================================
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
13 * http://www.apache.org/licenses/LICENSE-2.0
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.
21 * ============LICENSE_END=========================================================
24 package org.onap.appc.domainmodel.lcm;
26 import java.time.Instant;
29 public class RuntimeContext {
31 private RequestContext requestContext;
32 private ResponseContext responseContext;
33 private VNFContext vnfContext;
34 private TransactionRecord transactionRecord;
36 //TODO move fields timeStart abd isLockAcquired to a better place
37 private Instant timeStart;
38 private String rpcName;
40 public String getRpcName() {
44 public void setRpcName(String rpcName) {
45 this.rpcName = rpcName;
48 public RequestContext getRequestContext() {
49 return requestContext;
52 public void setRequestContext(RequestContext requestContext) {
53 this.requestContext = requestContext;
56 public ResponseContext getResponseContext() {
57 return responseContext;
60 public void setResponseContext(ResponseContext responseContext) {
61 this.responseContext = responseContext;
64 public Instant getTimeStart() {
68 public void setTimeStart(Instant timeStart) {
69 this.timeStart = timeStart;
72 public VNFContext getVnfContext() {
76 public void setVnfContext(VNFContext vnfContext) {
77 this.vnfContext = vnfContext;
81 public TransactionRecord getTransactionRecord() {
82 return transactionRecord;
85 public void setTransactionRecord(TransactionRecord transactionRecord) {
86 this.transactionRecord = transactionRecord;
91 public String toString() {
92 return "RuntimeContext{" +
93 "requestContext=" + requestContext +
94 ", responseContext=" + responseContext +
95 ", vnfContext=" + vnfContext +
96 ", timeStart=" + timeStart +
97 ", rpcName='" + rpcName + '\'' +