This section describes the modules that are used by the TLP client. For each role, at least one standard module is provided. Each module is associated with a Class and has a name as a shortcut. Besides playing its role, a module might provide extra commands that are accessible through the module's name from the command-line.
The following list describes the TLP client modules in detail:
This implementation of the TlpClient::Role::Analyzer role is used to run the PatchPro analyzer and store the output in a text file. This text file contains the PatchPro suggested patches. The output file is transferred to the TLP server for further processing and patch set creation, by using the TlpClient::Role::Transfer role.
The tlpexplorer module plays the role of a TlpClient::Role::Collector. This role is used to gather system information that is required for the TLP server.
The TlpExplorer archive that is created is not suitable for other analyzers. You must use the PatchPro analyzer if you use the TlpExplorer module.
The explorer module plays the role of a TlpClient::Role::Collector. This role used to gather system information that is required for the TLP server and analyzers that are running on the TLP server. This module calls the SUNWexplo binary. By using this Collector, you do not need to run PatchPro on your client, as all of the analysis is done on the server.
The TlpClient::Role::Transfer module is used to transfer information from the TLP client to the server by using the HTTP protocol.
The script for the creation of patch sets refers only to roles. Hence, the TLP client is flexible to changes in its environment. The following output shows a portion of the TLP client configuration file. In this example, you can see the association between roles and modules.
<Module patchpro> Class TlpClient::Analyzer::PatchPro # Perl Module to use .... # Module specific config </Module> Analyzer patchpro # Associate Module with Role |
Note that the Analyzer role is associated with the patchpro module, which is associated with the class, TlpClient::Analyzer::PatchPro.