JBoss version
Provide information about the versions of all running Jboss on a system.
- class insights.parsers.jboss_version.JbossRuntimeVersions(context)[source]
Bases:
Parser,listThis class is to access to file
jboss_runtime_versionsTypical content looks like:
{"/opt/jboss-datagrid-7.3.0-server": "Red Hat Data Grid - Version 7.3.0"}
This class parses the file content and stores data in the list.
Examples
>>> len(all_jboss_versions) 1 >>> all_jboss_versions[0].major 7 >>> all_jboss_versions[0].minor 3 >>> all_jboss_versions[0].release 0
- class insights.parsers.jboss_version.JbossVersion(context)[source]
Bases:
ParserThis class is to access to file
$JBOSS_HOME/version.txtTypical content of file
$JBOSS_HOME/version.txtis:Red Hat JBoss Enterprise Application Platform - Version 6.4.3.GA
This class parses the file content and stores data in the dict
self.parsed. The version info can also be got viaobj.majorandobj.minor, etc.Examples
>>> jboss_version.file_path '/home/test/jboss/jboss-eap-6.4/version.txt' >>> jboss_version.raw 'Red Hat JBoss Enterprise Application Platform - Version 6.4.3.GA' >>> jboss_version.major 6 >>> jboss_version.minor 4 >>> jboss_version.release 3 >>> jboss_version.version '6.4.3' >>> jboss_version.code_name 'GA'
- property code_name
code name of this running JBoss progress.
- Type:
string
- property major
the major version of this running JBoss progress.
- Type:
int
- property minor
the minor version of this running JBoss progress.
- Type:
int
- property product
the version of this running JBoss progress.
- Type:
string
- property release
release of this running JBoss progress.
- Type:
int
- property version
the version of this running JBoss progress.
- Type:
string