CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Namespaces | Functions | Variables
archive.py File Reference

Go to the source code of this file.

Namespaces

 archive
 

Functions

def archive.CheckCommand
 
def archive.CheckFileStatus
 
def archive.CheckPath
 
def archive.CheckZippedFiles
 
def archive.Cleaner
 
def archive.ConfirmPath
 
def archive.Delete
 
def archive.DiskUsage
 
def archive.filereg
 
def archive.fileunreg
 
def archive.GetAllFiles
 
def archive.GetFileFromDB
 
def archive.GetListOfFiles
 
def archive.GetZippedFile
 
def archive.RemoveAndRegister
 
def archive.ScanDir
 
def archive.SetPath
 
def archive.TransferWithT0System
 

Variables

string archive.arcdir = "/nfshome0/smaruyam/CMSSW_2_0_10/src/test/"
 
string archive.bakdb = dbdir+"tmp/backup.db"
 
string archive.cfgarg = " --config "
 
string archive.cfgfile = " /nfshome0/smaruyam/CMSSW_2_0_10/src/test/myconfig.txt "
 
string archive.db = dbdir+"db.db"
 
string archive.dbdir = "/nfshome0/smaruyam/CMSSW_2_0_10/src/test/"
 
string archive.dir = "/nfshome0/smaruyam/CMSSW_2_0_10/src/test/"
 
int archive.disk_threshold = 80
 
string archive.emptyString = "empty"
 
 archive.EnableFileRemoval = False
 
 archive.EnableTransfer = False
 
 archive.filepath = outputFileName
 
int archive.fileSizeThreshold = 1000000000
 
string archive.firstFile = "DQM_Online_"
 
 archive.flag = False
 
string archive.fullTransferArg = cfgarg+" --type dqm --hostname srv-C2D05-19 --lumisection 1 --appname CMSSW --appversion CMSSW_2_0_10 "
 
tuple archive.lastFile = zipFileList.split()
 
tuple archive.logfile = open('archival_log.txt', 'a')
 
string archive.outputFileName = arcdir+firstFile+lastFile+".zip"
 
 archive.PathReplace = False
 
string archive.sqlite3 = "sqlite3 "
 
string archive.statusCheck = cfgarg+" --check --filename "
 
string archive.targetdir = "/castor/cern.ch/cms/store/dqm/"
 
string archive.tmpdb = dbdir+"tmp/tmp.db"
 
tuple archive.transfer = TransferWithT0System(filepath,flag, logfile)
 
string archive.transferScript = "/nfshome0/tier0/scripts/injectFileIntoTransferSystem.pl"
 
tuple archive.zip = zipfile.ZipFile(outputFileName, "w")
 
tuple archive.zipFileList = GetListOfFiles(logfile)
 
tuple archive.zipFileSize = os.path.getsize(filepath)