FSUsage Package¶
FSUsage
Package¶
This package contains all FSUsage importers.
FSUsageImporter
Module¶
This module contains the base class for all FSUsage importers.
-
class
HPCStats.Importer.FSUsage.FSUsageImporter.
FSUsageImporter
(app, db, config, cluster)¶ Bases:
HPCStats.Importer.Importer.Importer
This is the base class common to all HPCStats FSUsage importers. It simply defines a common set of attributes.
FSUsageImporterFactory
Module¶
This module contains the factory design pattern class that builds the appropriate FSUsageImporter depending on what is specified in configuration.
-
class
HPCStats.Importer.FSUsage.FSUsageImporterFactory.
FSUsageImporterFactory
¶ Bases:
object
This class simply delivers the factory() static method, there is not point to instanciate it with an object.
-
static
factory
(app, db, config, cluster)¶ This method returns the appropriate FSUsageImporter object depending on what is specified in configuration. In case of configuration error, HPCStatsConfigurationException is raised.
-
static
FSUsageImporterSSH
Module¶
This module contains the FSUsageImporterSSH class.
-
class
HPCStats.Importer.FSUsage.FSUsageImporterSSH.
FSUsageImporterSSH
(app, db, config, cluster)¶ Bases:
HPCStats.Importer.FSUsage.FSUsageImporter.FSUsageImporter
This class imports FSUsage data from a CSV file available through SSH on a remote server.
-
check
()¶ Check if remote SSH server is available for connections and if the remote CSV file can be opened. Raises HPCStatsSourceError in case of problem.
-
connect_ssh
()¶ Connect through SSH to remote server and return connection handler. Raises HPCStatsSourceError in case of problem.
-
load
()¶ Load Filesystems and FSUsages from CSV logfile read through SSH. Raises HPCStatsSourceError if any error is encountered.
-
update
()¶ Update Filesystems and FSUsage in DB.
-