Private Attributes | |
__session | |
__tagInventoryIDName | |
__tagInventoryTableColumns | |
__tagInventoryTableHandle | |
__tagInventoryTableName | |
__tagInventoryTableNotNullColumns | |
__tagInventoryTablePK | |
Class manages tag inventory
Definition at line 3 of file tagInventory.py.
def python.tagInventory.tagInventory.__init__ | ( | self, | |
session | |||
) |
Input: coral session handle
Definition at line 6 of file tagInventory.py.
def python.tagInventory.tagInventory.addEntriesReplaceService | ( | self, | |
newservicename | |||
) |
clone all existing entries only servicename in pfn are different return collection of new (oldtagid,newtagid) pair
Definition at line 122 of file tagInventory.py.
References python.tagInventory.tagInventory.__session, python.entryComment.entryComment.__session, python.tagInventory.tagInventory.__tagInventoryTableColumns, python.tagInventory.tagInventory.__tagInventoryTableName, data, and join().
def python.tagInventory.tagInventory.addEntry | ( | self, | |
leafNode | |||
) |
Add entry into the inventory.\n Input: base tag info. If identical data found already exists, do nothing Output: tagid. if tagid=0, there's no new entry added, i.e.no new tagid
Definition at line 75 of file tagInventory.py.
References python.tagInventory.tagInventory.__tagInventoryIDName, python.tagInventory.tagInventory.__tagInventoryTableColumns, python.tagInventory.tagInventory.__tagInventoryTableName, and data.
def python.tagInventory.tagInventory.bulkInsertEntries | ( | self, | |
entries | |||
) |
insert a chunk of entries. Input: entries [{tagid:unsigned long, tagname:string , pfn:string , recordname:string , objectname:string, labelname:string }] Output: {oldtagid:newtagid} of the inserted entries. If tag already exists, old tagid is returned
Definition at line 420 of file tagInventory.py.
References python.tagInventory.tagInventory.__tagInventoryIDName, python.tagInventory.tagInventory.__tagInventoryTableName, python.tagInventory.tagInventory.createInventoryTable(), data, python.tagInventory.tagInventory.existInventoryTable(), and python.tagInventory.tagInventory.getAllEntries().
def python.tagInventory.tagInventory.cloneEntry | ( | self, | |
sourcetagid, | |||
pfn | |||
) |
clone an existing entry with different pfn parameter Input: sourcetagid, pfn. Output: tagid of the new entry. Return 0 in case no new entry created or required entry already exists.
Definition at line 211 of file tagInventory.py.
References python.tagInventory.tagInventory.__tagInventoryIDName, python.tagInventory.tagInventory.__tagInventoryTableColumns, python.tagInventory.tagInventory.__tagInventoryTableName, and python.tagInventory.tagInventory.getEntryById().
def python.tagInventory.tagInventory.createInventoryTable | ( | self | ) |
Create tag inventory table. Existing table will be deleted.
Definition at line 45 of file tagInventory.py.
References python.tagInventory.tagInventory.__tagInventoryTableName, python.tagInventory.tagInventory.__tagInventoryTableNotNullColumns, and python.tagInventory.tagInventory.__tagInventoryTablePK.
Referenced by python.tagInventory.tagInventory.bulkInsertEntries().
def python.tagInventory.tagInventory.deleteAllEntries | ( | self | ) |
Delete all entries in the inventory
Definition at line 365 of file tagInventory.py.
References python.tagInventory.tagInventory.__tagInventoryTableName.
def python.tagInventory.tagInventory.deleteEntryByName | ( | self, | |
tagname | |||
) |
Delete entry with given tag name
Definition at line 382 of file tagInventory.py.
References python.tagInventory.tagInventory.__tagInventoryTableName.
def python.tagInventory.tagInventory.dropme | ( | self | ) |
Drop inventory related tables
Definition at line 16 of file tagInventory.py.
References python.tagInventory.tagInventory.__tagInventoryIDName, and python.tagInventory.tagInventory.__tagInventoryTableName.
def python.tagInventory.tagInventory.existInventoryTable | ( | self | ) |
Check if inventory table exists
Definition at line 31 of file tagInventory.py.
References python.tagInventory.tagInventory.__tagInventoryTableName.
Referenced by python.tagInventory.tagInventory.bulkInsertEntries().
def python.tagInventory.tagInventory.getAllEntries | ( | self | ) |
Get all entries in the inventory Output: list of leafNode objects
Definition at line 315 of file tagInventory.py.
References python.tagInventory.tagInventory.__tagInventoryTableColumns, python.tagInventory.tagInventory.__tagInventoryTableName, and data.
Referenced by python.tagInventory.tagInventory.bulkInsertEntries().
def python.tagInventory.tagInventory.getEntryById | ( | self, | |
tagId | |||
) |
Get basic tag from inventory by id.\n Input: tagid Output: leafNode
Definition at line 283 of file tagInventory.py.
References python.tagInventory.tagInventory.__tagInventoryTableColumns, python.tagInventory.tagInventory.__tagInventoryTableName, and data.
Referenced by python.tagInventory.tagInventory.cloneEntry().
def python.tagInventory.tagInventory.getEntryByName | ( | self, | |
tagName, | |||
pfn | |||
) |
Get basic tag from inventory by tagName+pfn. pfn can be empty\n Input: tagname,pfn Output: leafNode throw if more than one entry is found.
Definition at line 243 of file tagInventory.py.
References python.tagInventory.tagInventory.__tagInventoryTableColumns, python.tagInventory.tagInventory.__tagInventoryTableName, and data.
def python.tagInventory.tagInventory.getIDsByName | ( | self, | |
name | |||
) |
get tagids correspond to a given tag name
Definition at line 342 of file tagInventory.py.
References python.tagInventory.tagInventory.__tagInventoryTableName, and data.
def python.tagInventory.tagInventory.modifyEntriesReplaceService | ( | self, | |
newservicename | |||
) |
replace all existing entries replace service name in pfn no change in other parameters
Definition at line 174 of file tagInventory.py.
References python.tagInventory.tagInventory.__tagInventoryTableName, data, and join().
def python.tagInventory.tagInventory.replaceTagLabel | ( | self, | |
tagname, | |||
label | |||
) |
Replace the run time label of the given tag
Definition at line 401 of file tagInventory.py.
References python.tagInventory.tagInventory.__tagInventoryTableName.
|
private |
Definition at line 9 of file tagInventory.py.
Referenced by python.tagInventory.tagInventory.addEntriesReplaceService().
|
private |
Definition at line 11 of file tagInventory.py.
Referenced by python.tagInventory.tagInventory.addEntry(), python.tagInventory.tagInventory.bulkInsertEntries(), python.tagInventory.tagInventory.cloneEntry(), and python.tagInventory.tagInventory.dropme().
|
private |
Definition at line 12 of file tagInventory.py.
Referenced by python.tagInventory.tagInventory.addEntriesReplaceService(), python.tagInventory.tagInventory.addEntry(), python.tagInventory.tagInventory.cloneEntry(), python.tagInventory.tagInventory.getAllEntries(), python.tagInventory.tagInventory.getEntryById(), and python.tagInventory.tagInventory.getEntryByName().
|
private |
Definition at line 66 of file tagInventory.py.
|
private |
Definition at line 10 of file tagInventory.py.
Referenced by python.tagInventory.tagInventory.addEntriesReplaceService(), python.tagInventory.tagInventory.addEntry(), python.tagInventory.tagInventory.bulkInsertEntries(), python.tagInventory.tagInventory.cloneEntry(), python.tagInventory.tagInventory.createInventoryTable(), python.tagInventory.tagInventory.deleteAllEntries(), python.tagInventory.tagInventory.deleteEntryByName(), python.tagInventory.tagInventory.dropme(), python.tagInventory.tagInventory.existInventoryTable(), python.tagInventory.tagInventory.getAllEntries(), python.tagInventory.tagInventory.getEntryById(), python.tagInventory.tagInventory.getEntryByName(), python.tagInventory.tagInventory.getIDsByName(), python.tagInventory.tagInventory.modifyEntriesReplaceService(), and python.tagInventory.tagInventory.replaceTagLabel().
|
private |
Definition at line 13 of file tagInventory.py.
Referenced by python.tagInventory.tagInventory.createInventoryTable().
|
private |
Definition at line 15 of file tagInventory.py.
Referenced by python.tagInventory.tagInventory.createInventoryTable().