HPSS Python Module
HPSS Backend Module.
Module that implements the Abstract backend archive for an hpss backend.
-
class
pacifica.archiveinterface.backends.hpss.archive.
HpssBackendArchive
(prefix)[source]
The HPSS implementation of the backend archive.
-
__init__
(prefix)[source]
Constructor for the HPSS Backend Archive.
-
static
_check_rcode
(rcode, msg)[source]
Check if rcode is < 0 and raise error.
-
authenticate
()[source]
Authenticate the user with the hpss system.
-
close
()[source]
Close an HPSS File.
-
open
(filepath, mode)[source]
Open an hpss file.
-
patch
(file_id, old_path)[source]
Move a hpss file.
-
read
(blocksize)[source]
Read a file from the hpss archive.
-
remove
()[source]
Remove the file for an HPSS file.
-
seek
(offset)[source]
Seek in the file to offset.
-
set_file_permissions
()[source]
Set the file permissions for an hpss archive file.
-
set_mod_time
(mod_time)[source]
Set the mod time for an hpss archive file.
-
stage
()[source]
Stage an hpss file to the top level drive.
-
status
()[source]
Get the status of a file in the hpss archive.
-
write
(buf)[source]
Write a file to the hpss archive.
-
pacifica.archiveinterface.backends.hpss.archive.
path_info_munge
(filepath)[source]
Munge the path for this filetype.
HPSS Extended File Module.
Module that holds the class to the interface for the hpss c extensions.
-
class
pacifica.archiveinterface.backends.hpss.extended.
HpssExtended
(filepath)[source]
Provide the interface for the hpss ctypes.
-
__init__
(filepath)[source]
Constructor for the HPSS Extended File type.
-
makedirs
()[source]
Recursively make the directories for the filepath.
-
parse_latency
(latency_tuple)[source]
Parse the latency tuple.
Parse the tuple returned by the c extension into
the correct latency.
-
ping_core
(sitename)[source]
Ping the Core server to see if its still active.
-
set_mod_time
(mod_time)[source]
Use extensions to set the mod time on an hpss file.
-
stage
()[source]
Stage an hpss file.
Do this to move the file to disk
doesnt need to return anything. will throw
exception on error however.
-
status
()[source]
Get the status of a file.
If it is on tape or disk
Found the documentation for this in the hpss programmers reference
section 2.3.6.2.8 “Get Extanded Attributes”.
HPSS Status Module.
Module that implements the Abstract Status class for the hpss
archive backend type.
-
class
pacifica.archiveinterface.backends.hpss.status.
HpssStatus
(mtime, ctime, bytes_per_level, filesize)[source]
HPSS Status Class.
Class for handling hpss status pieces
needs mtime,ctime, bytes per level array.
-
__init__
(mtime, ctime, bytes_per_level, filesize)[source]
HPSS Status Constructor.
-
_disk
= 'disk'
-
_error
= 'error'
-
_tape
= 'tape'
-
define_levels
()[source]
Set up what each level definition means.
-
find_file_storage_media
()[source]
Set if file is on disk or tape.
-
set_filepath
(filepath)[source]
Set the filepath that the status is for.