diff --git a/bin/ConcurrencyExtension.jar b/bin/ConcurrencyExtension.jar index c6e9852..357c6cf 100644 Binary files a/bin/ConcurrencyExtension.jar and b/bin/ConcurrencyExtension.jar differ diff --git a/bin/classes/com/wup/wupConcurrencySC.class b/bin/classes/com/wup/wupConcurrencySC.class index d60396e..71e8242 100644 Binary files a/bin/classes/com/wup/wupConcurrencySC.class and b/bin/classes/com/wup/wupConcurrencySC.class differ diff --git a/configfiles/metadata.xml b/configfiles/metadata.xml index e90e93b..3a8f57f 100644 --- a/configfiles/metadata.xml +++ b/configfiles/metadata.xml @@ -4,7 +4,7 @@ name="ConcurrencyExtension" description="Concurrency Tools, based on the code provided by 'antondorf' on the ThingWorx Developers Community." vendor="" - packageVersion="0.1.26" + packageVersion="0.1.27" minimumThingWorxVersion="6.5.0"> diff --git a/lib/custom-rhino-js-5.1.0.jar b/lib/custom-rhino-js-5.1.0.jar new file mode 100644 index 0000000..ded7cf8 Binary files /dev/null and b/lib/custom-rhino-js-5.1.0.jar differ diff --git a/src/com/wup/wupConcurrencySC.java b/src/com/wup/wupConcurrencySC.java index b85f1b5..f90b414 100644 --- a/src/com/wup/wupConcurrencySC.java +++ b/src/com/wup/wupConcurrencySC.java @@ -3,7 +3,6 @@ import com.thingworx.metadata.annotations.ThingworxServiceDefinition; import com.thingworx.metadata.annotations.ThingworxServiceResult; - public class wupConcurrencySC { @ThingworxServiceDefinition( @@ -14,7 +13,11 @@ public class wupConcurrencySC { aspects = {"isAsync:false" } ) @ThingworxServiceResult(name = "result", description = "The total ammount.", baseType = "LONG", aspects = {}) - public static long GetTotalActiveLocks_wupMutexTS() { + public static long GetTotalActiveLocks_wupMutexTS( + org.mozilla.javascript.Context cx, + org.mozilla.javascript.Scriptable thisObj, + Object[] args, + org.mozilla.javascript.Function funObj) { return wupMutexTS.getTotalActiveLocks(); } @@ -26,7 +29,11 @@ public static long GetTotalActiveLocks_wupMutexTS() { aspects = {"isAsync:false" } ) @ThingworxServiceResult(name = "result", description = "The total ammount.", baseType = "LONG", aspects = {}) - public static long GetTotalActiveWaiting_wupMutexTS() { + public static long GetTotalActiveWaiting_wupMutexTS( + org.mozilla.javascript.Context cx, + org.mozilla.javascript.Scriptable thisObj, + Object[] args, + org.mozilla.javascript.Function funObj) { return wupMutexTS.getTotalActiveWaiting(); } @@ -38,7 +45,11 @@ public static long GetTotalActiveWaiting_wupMutexTS() { aspects = {"isAsync:false" } ) @ThingworxServiceResult(name = "result", description = "The total ammount.", baseType = "LONG", aspects = {}) - public static long GetTotalThingsLocksUsage_wupMutexTS() { + public static long GetTotalThingsLocksUsage_wupMutexTS( + org.mozilla.javascript.Context cx, + org.mozilla.javascript.Scriptable thisObj, + Object[] args, + org.mozilla.javascript.Function funObj) { return wupMutexTS.getTotalThingsLocksUsage(); } diff --git a/zip/ConcurrencyExtension.zip b/zip/ConcurrencyExtension.zip index 007417c..2f0637c 100644 Binary files a/zip/ConcurrencyExtension.zip and b/zip/ConcurrencyExtension.zip differ