public class Functions extends Object
| Constructor and Description |
|---|
Functions() |
| Modifier and Type | Method and Description |
|---|---|
static void |
executeLuaScript(String luaFileName,
redis.clients.jedis.JedisCluster jedisCluster,
String leaseKey,
String bmIdentifier)
Method to execute loaded lua script in the Redis cluster
|
static String |
getCallerLocation() |
static String |
getStackTrace() |
static String |
loadLuaScript(String fileName)
This is to load the lua script in our java program.
|
static String |
readResourceFile(String fileLocation)
Read a text resource file.
|
public static String loadLuaScript(String fileName)
fileName - The file that will be loaded.public static void executeLuaScript(String luaFileName, redis.clients.jedis.JedisCluster jedisCluster, String leaseKey, String bmIdentifier)
luaFileName - The lua script file to be executedjedisCluster - Redis cluster where the script is intended to be executedleaseKey - Key for which the value will be set in RedisbmIdentifier - Balance Manager identifier for which we are executing the lua scriptpublic static String readResourceFile(String fileLocation)
fileLocation - file location in serverpublic static String getCallerLocation()
public static String getStackTrace()
Copyright © 2022. All rights reserved.