File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -244,6 +244,24 @@ def GetHostLicenseExpiryDate():
244
244
return expiry_date .value
245
245
else :
246
246
raise LexFloatClientException (status )
247
+
248
+ @staticmethod
249
+ def GetFloatingClientLeaseExpiryDate ():
250
+ """Gets the lease expiry date timestamp of the floating client.
251
+
252
+ Raises:
253
+ LexFloatClientException
254
+
255
+ Returns:
256
+ int: the timestamp
257
+ """
258
+ leaseExpiryDate = ctypes .c_uint ()
259
+ status = LexFloatClientNative .GetFloatingClientLeaseExpiryDate (
260
+ ctypes .byref (leaseExpiryDate ))
261
+ if status == LexFloatStatusCodes .LF_OK :
262
+ return leaseExpiryDate .value
263
+ else :
264
+ raise LexFloatClientException (status )
247
265
248
266
@staticmethod
249
267
def GetFloatingClientMeterAttributeUses (name ):
Original file line number Diff line number Diff line change @@ -155,6 +155,10 @@ def byte_to_string(input):
155
155
GetHostLicenseExpiryDate .argtypes = [POINTER (c_uint32 )]
156
156
GetHostLicenseExpiryDate .restype = c_int
157
157
158
+ GetFloatingClientLeaseExpiryDate = library .GetFloatingClientLeaseExpiryDate
159
+ GetFloatingClientLeaseExpiryDate .argtypes = [POINTER (c_uint32 )]
160
+ GetFloatingClientLeaseExpiryDate .restype = c_int
161
+
158
162
GetFloatingClientMeterAttributeUses = library .GetFloatingClientMeterAttributeUses
159
163
GetFloatingClientMeterAttributeUses .argtypes = [CSTRTYPE , POINTER (c_uint32 )]
160
164
GetFloatingClientMeterAttributeUses .restype = c_int
You can’t perform that action at this time.
0 commit comments