def autoArchive(fullPath = gAutoArchiveFullPath, workingDir = gWorkingDir,taskUuid = uuid.uuid4()):
    inputTubeName = "collectionListTube"+taskUuid
    delayedCollectionListTubeName = "delayedCollectionListTubeName"+taskUuid
    
    s = folderScanner.folderScanner()
    s.addItem({"command": "folderScanner", "fullPath":"d:/tmp/generating",
               "targetTubeName": zippedListTubeName,"blackList":[]})

    s = monitorService.monitorService()
    s.addItem({"command": "folderScanner", "fullPath":"d:/tmp/generating",
               "targetTubeName": zippedListTubeName,"blackList":[]})
    
    s = tubeDelayService()
    s.addItem({"inputTubeName":zippedListTubeName,
               "outputTubeName": delayedZippedInfoListTubeName,"blackList":[]})
    
    s = zippedCollectionListService()
    s.addItem({"inputTubeName":delayedZippedInfoListTubeName})
def autoArchiveThumb(fullPath = gAutoArchiveFullPath, workingDir = gWorkingDir,taskUuid = uuid.uuid4()):
    inputTubeName = "collectionListTube"+taskUuid
    delayedCollectionListTubeName = "delayedCollectionListTubeName"+taskUuid
    
    s1 = folderScanner.folderScanner()
    s1.addItem({"command": "folderScanner", "fullPath":fullPath,
               "targetTubeName": inputTubeName,"blackList":[]})

    s2 = monitorService.monitorService()
    s2.addItem({"command": "monitorService", "fullPath":fullPath,
               "targetTubeName": inputTubeName,"blackList":[]})
    
    s3 = tubeDelayService()
    s3.addItem({"inputTubeName":inputTubeName,
               "outputTubeName": delayedCollectionListTubeName,"blackList":[]})
    
    s4 = fileArchiveService()
    s4.addItem({"inputTubeName":delayedCollectionListTubeName, "workingDir":workingDir})
Ejemplo n.º 3
0
'''
Created on 2012-02-20

@author: Richard
'''
import localLibSys
import localLibs.services.folderScanner as folderScanner
'''
fileScanner->fileListTube
monitorServiceV2->fileListTube
'''
if __name__ == "__main__":
    s = folderScanner.folderScanner()
    s.addItem({"command": "folderScanner", "fullPath":"d:/tmp/monitoring",
               "targetTubeName": "fileListTube","blackList":[]})