Package invocations :: Package cu1 :: Module cu1Transfer :: Class CASUQueries
[hide private]

Class CASUQueries

source code


Query the CASU directories.

Instance Methods [hide private]

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]
 
getCasuDataFile(command, casuDataFilePath, copyDict, UKLight=True)
Execute the given command to create a file at CASU and copy the file into the sys dir.
source code
 
getCasuFileListing(commands, casuDataFile, copyDict, UKLight=True)
Execute the given command to create a file at CASU and copy the file into the sys dir.
source code
 
getCasuStagingDirs(UKLight=True, casuSubDirPath='processed')
Get a list of all main dirs at CASU.
source code
 
getCasuDateDirs(dirList=None, UKLight=True, mode='STR', presuf='')
Get a dictionary of all dateDirs and their paths.
source code
 
getDirListing(casuDisk, UKLight=True, lsFlags='', longStyle=True)
Get a listing of the given directory.
source code
 
getDirSizes(casuDisk, UKLight=True, returnList=False, dateRE='20*')
Dict of directory sizes.
source code
 
getDirVersions(casuDisk, reproVersion=None, forceTransfer=False, UKLight=True, returnList=False, dateStr='')
Dict of directory version numbers (dv).
source code
 
getOTCDirs(startDate, endDate, srDirs, dirVersions, casuDisk, reproMode=None, reproVersion=None, forceTransfer=False, checkSR=True, UKLight=True, returnList=False)
List of ok_to_copy (otc) directories.
source code
 
getSRDirs(casuDisk, UKLight=True, returnList=False, dateStr='')
List of successfully_read (sr) directories.
source code
 
copyFile(fileName, destDir='/disk01/wsa/sys', UKLight=True)
copy single File from CASU to local 'sys_dir'
source code
 
scpCmd(UKLight=True) source code
 
sshCmd(UKLight=True, syscon=None) source code
Class Variables [hide private]
  camListFile = None
hash(x)
  re_digits = re.compile(r'(\d+)')
  re_date = re.compile(r'(\A(\d{8})\Z)')
  sysc = IngCuSession.sysc
  re_datevers = re.compile(r'(\A(\d{8})_v(\d)(.?\d*)\Z)')
  notAvailCASUDisks = []
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

getOTCDirs(startDate, endDate, srDirs, dirVersions, casuDisk, reproMode=None, reproVersion=None, forceTransfer=False, checkSR=True, UKLight=True, returnList=False)
Static Method

source code 

List of ok_to_copy (otc) directories.

Parameters:
  • startDate (int) - Begin of transfer period.
  • endDate (int) - End of transfer period.
  • srDirs (list) - List of SUCCESSFULLY_READ directories.
  • dirVersions (dict) - Dict of directory version numbers.
  • checkSR (bool) - Check if the SUCCESSFULLY_READ tag is set.