A LicenseResource object represents a single license file or license
server (port@host). The object records how the resource was found and
what the licenses it provides.
|
__init__(self,
location,
source=None)
The location may be either a pathname or the port@host address of a
license server. |
|
|
|
|
|
|
|
|
|
|
|
add_error(self,
message,
exc=None) |
|
|
|
_load_license_file(self,
pathname)
Load the license file. |
|
|
|
_load_tokens(self)
Load the information about the total number of tokens available and
the number currently in use. |
|
|
|
_load_job_reqs(self)
Load the table of license requirements for each joob type. |
|
|
|
|
|
available_tokens(self)
Return a dict mapping feature names to the number of tokens available
for each. |
|
|
|
total_tokens(self)
Return a dict mapping feature names to the number of tokens provided
by this resource for each. |
|
|
|
_get_license_tokens(self)
Populate the tokens table from the license object. |
|
|
|
|
|
jobs(self,
jobtypes=[ ] )
Return a dict mapping each job type to the number of jobs that can be
run given the available tokens. |
|
|
|
_get_features(self)
Get license feature information via "lmutil lmdiag". |
|
|
|
_check_features(self)
Check the results returned from lmdiag and record errors if there are
expired fatures, or similar problems. |
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|