Include owner in createLockRef
[music.git] / music-core / src / main / java / org / onap / music / exceptions / MusicDeadlockException.java
1 /*
2  * ============LICENSE_START==========================================
3  * org.onap.music
4  * ===================================================================
5  *  Copyright (c) 2019 AT&T Intellectual Property
6  * ===================================================================
7  *  Licensed under the Apache License, Version 2.0 (the "License");
8  *  you may not use this file except in compliance with the License.
9  *  You may obtain a copy of the License at
10  *
11  *     http://www.apache.org/licenses/LICENSE-2.0
12  *
13  *  Unless required by applicable law or agreed to in writing, software
14  *  distributed under the License is distributed on an "AS IS" BASIS,
15  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  *  See the License for the specific language governing permissions and
17  *  limitations under the License.
18  *
19  * ============LICENSE_END=============================================
20  * ====================================================================
21  */
22 package org.onap.music.exceptions;
23
24 public class MusicDeadlockException extends MusicLockingException {
25
26         private String owner = null;
27         private String keyspace = null;
28         private String table = null;
29         private String key = null;
30         
31         public MusicDeadlockException() {
32                 super();
33         }
34
35         public MusicDeadlockException(String message) {
36                 super(message);
37         }
38         
39         public MusicDeadlockException(Throwable cause) {
40                 super(cause);
41         }
42
43         public MusicDeadlockException(String message, Throwable cause) {
44                 super(message, cause);
45         }
46
47         public MusicDeadlockException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
48                 super(message, cause, enableSuppression, writableStackTrace);
49         }
50
51         public void setValues(String owner, String keyspace, String table, String key) {
52                 this.owner = owner;
53                 this.keyspace = keyspace;
54                 this.table = table;
55                 this.key = key;
56         }
57
58         public String getOwner() {
59                 return owner;
60         }
61
62         public String getKeyspace() {
63                 return keyspace;
64         }
65
66         public String getTable() {
67                 return table;
68         }
69
70         public String getKey() {
71                 return key;
72         }
73
74         
75 }