def upload_many(dbclass, cursor, packets): """ Upload many GRAM5Packet usage packets to the database referred to by the given cursor. It will also prepare the caches of id tables """ if GRAM5Packet.__all_init == 0: GRAM5Packet.db_class = dbclass GRAM5Packet._all_init = 1 GRAM5Packet.__init_dns_cache(cursor) GRAM5Packet.__init_versions(cursor) GRAM5Packet.__init_lrms(cursor) GRAM5Packet.__init_job_managers(cursor) GRAM5Packet.__init_job_manager_instances(cursor) GRAM5Packet.__init_rsl_attributes(cursor) GRAM5Packet.__init_rsl_bitfields(cursor) GRAM5Packet.__init_job_type_ids(cursor) GRAM5Packet.__init_clients(cursor) GRAM5Packet.__init_executables(cursor) GRAM5Packet.cursor = cursor CUsagePacket.upload_many(dbclass, cursor, packets)
def upload_many(dbclass, cursor, packets): """ Upload many GridFTPPacket usage packets to the database referred to by the given cursor. It will also prepare the caches of id tables """ if GridFTPPacket.__all_init == 0: GridFTPPacket.__db_class = dbclass GridFTPPacket._all_init = 1 GridFTPPacket.__init_dns_cache(cursor) GridFTPPacket.__init_versions(cursor) GridFTPPacket.__init_gftp_server(cursor) GridFTPPacket.__init_gftp_users(cursor) GridFTPPacket.__init_gftp_clients(cursor) GridFTPPacket.__init_gftp_scheme(cursor) GridFTPPacket.__init_gftp_dsi(cursor) GridFTPPacket.__init_gftp_xio_stack(cursor) GridFTPPacket.__init_gftp_xfer_type(cursor) GridFTPPacket.__init_gftp_transfer_sizes(cursor) GridFTPPacket.__init_gftp_block_sizes(cursor) GridFTPPacket.__init_gftp_buffer_sizes(cursor) GridFTPPacket.__init_gftp_transfer_rate_sizes(cursor) GridFTPPacket.__cursor = cursor CUsagePacket.upload_many(dbclass, cursor, packets)
def __init__(self, address, packet): CUsagePacket.__init__(self, address, packet)