JBoss version
Provide information about the versions of all running Jboss on a system.
- class insights.parsers.jboss_version.JbossRuntimeVersions(context)[source]
Bases:
Parser
,list
This class is to access to file
data/insights_commands/jboss_versions
Typical content of file
data/insights_commands/jboss_versions
is:{"/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:
Parser
This class is to access to file
$JBOSS_HOME/version.txt
Typical content of file
$JBOSS_HOME/version.txt
is: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.major
andobj.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