aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/org/onap/music/main/MusicCore.java
diff options
context:
space:
mode:
authorArthur Martella <arthur.martella.1@att.com>2019-09-13 15:59:26 -0400
committerArthur Martella <arthur.martella.1@att.com>2019-09-16 14:24:40 -0400
commitea39a71e28f2772da7d467a410d43a7ddd8d163d (patch)
tree22c89e9b7abc41c7a69623b79a47eccf815e4947 /src/main/java/org/onap/music/main/MusicCore.java
parent4fe3f08aa1c93a1fc81a78544031ef747a747098 (diff)
Deadlock detection by owner
Issue-ID: MUSIC-502 Signed-off-by: Martella, Arthur <arthur.martella.1@att.com> Change-Id: Iec20cfeec96d7031c691055ffba2f65c34854adf
Diffstat (limited to 'src/main/java/org/onap/music/main/MusicCore.java')
-rw-r--r--src/main/java/org/onap/music/main/MusicCore.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/main/java/org/onap/music/main/MusicCore.java b/src/main/java/org/onap/music/main/MusicCore.java
index da94e1a6..e889e180 100644
--- a/src/main/java/org/onap/music/main/MusicCore.java
+++ b/src/main/java/org/onap/music/main/MusicCore.java
@@ -89,6 +89,10 @@ public class MusicCore {
return musicCore.createLockReference(fullyQualifiedKey, locktype);
}
+ public static String createLockReference(String fullyQualifiedKey, LockType locktype, String owner) throws MusicLockingException {
+ return musicCore.createLockReference(fullyQualifiedKey, locktype, owner);
+ }
+
public static ResultType createTable(String keyspace, String table, PreparedQueryObject tableQueryObject,
String consistency) throws MusicServiceException {
return musicCore.createTable(keyspace, table, tableQueryObject, consistency);
@@ -193,6 +197,10 @@ public class MusicCore {
return musicCore.releaseLock(lockId, voluntaryRelease);
}
+ public static List<String> releaseAllLocksForOwner(String ownerId, String keyspace, String table) throws MusicLockingException, MusicServiceException, MusicQueryException {
+ return musicCore.releaseAllLocksForOwner(ownerId, keyspace, table);
+ }
+
//Added changes for orm implementation.
public static ResultType createKeyspace(JsonKeySpace jsonKeySpaceObject, String consistencyInfo)
@@ -245,6 +253,4 @@ public class MusicCore {
return musicCore.deleteFromTable(jsonDeleteObj,rowParams);
}
-
-
}