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.util.Date;
 
  27 public class RuntimeContext {
 
  29     private RequestContext requestContext;
 
  30     private ResponseContext responseContext;
 
  31     private VNFContext vnfContext;
 
  33     //TODO move fields timeStart abd isLockAcquired to a better place
 
  34     private Date timeStart;
 
  35     private boolean isLockAcquired;
 
  36     private String rpcName;
 
  38     public String getRpcName() {
 
  42     public void setRpcName(String rpcName) {
 
  43         this.rpcName = rpcName;
 
  46     public Date getTimeStart() {
 
  50     public boolean isLockAcquired() {
 
  51         return isLockAcquired;
 
  54     public void setIsLockAcquired(boolean isLockAcquired) {
 
  55         this.isLockAcquired = isLockAcquired;
 
  58     public void setTimeStart(Date timeStart) {
 
  59         this.timeStart = timeStart;
 
  62     public RequestContext getRequestContext() {
 
  63         return requestContext;
 
  66     public void setRequestContext(RequestContext requestContext) {
 
  67         this.requestContext = requestContext;
 
  70     public ResponseContext getResponseContext() {
 
  71         return responseContext;
 
  74     public void setResponseContext(ResponseContext responseContext) {
 
  75         this.responseContext = responseContext;
 
  78     public VNFContext getVnfContext() {
 
  82     public void setVnfContext(VNFContext vnfContext) {
 
  83         this.vnfContext = vnfContext;
 
  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 + '\'' +