Class MutexLabellingUtils
java.lang.Object
org.tasktide.mutex.utils.MutexLabellingUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidConfigure utilitystatic StringformatIpAddr(InetAddress addr) RepresentInetAddresswith underscores instead of dotsstatic longGet epoch timestatic InetAddressGet host IP addressstatic StringGet instance Idstatic StringGet the file name for new lock file under node-instance, to be appended onto directory pathstatic StringGet configured node Idstatic StringConcatenate Node and IP Addressstatic booleanDisplay whether utility is configured
-
Constructor Details
-
MutexLabellingUtils
public MutexLabellingUtils()
-
-
Method Details
-
getInstanceId
-
getNodeId
-
configure
public static void configure()Configure utility -
getHostIp
-
formatIpAddr
RepresentInetAddresswith underscores instead of dots- Parameters:
addr-- Returns:
- String
-
getNodeProcId
-
getCurrentTimeStamp
public static long getCurrentTimeStamp()Get epoch time- Returns:
- long
-
getMutexFileName
Get the file name for new lock file under node-instance, to be appended onto directory path- Returns:
- String
-
isConfigured
public static boolean isConfigured()Display whether utility is configured- Returns:
- boolean
-