Example #1
0
def update_analyzers_and_filters(cnx, sources):
    """
    Runs Analyzers and Filters against each source in the source_os_list, updating the 
    approriate tables

    :param sources: list of SourceInfo instances
    """
    print "...Beginning Analyzers and Filters for inputted sources"

    start_time = time.time() 

    #now let's run the prevalence analyzer
    pu = PrevalenceAnalyzer(cnx)
    pu.update(sources)

    #set the cnx for each plugin
    for p in filter_list:
        p.cnx = cnx

    for source in sources:
        print "==== Beginning filter analysis of {} ====".format(source.source_name)
        for p in filter_list:
            p.update(source.source_name)

    elapsed_time = time.time() - start_time
    print "...completed Analyzers and Filters in {}".format(elapsed_time) 
Example #2
0
def update_analyzers(cnx, sources):
    """
    Runs Analyzers and Filters against each source in the source_os_list, updating the 
    approriate tables

    :param sources: list of SourceInfo instances
    """
    print "...Beginning Analyzers and Filters for inputted sources"

    start_time = time.time() 

    #now let's run the prevalence analyzer
    pu = PrevalenceAnalyzer(cnx)
    pu.update(sources)

    elapsed_time = time.time() - start_time
    print "...completed analyzers on inputed sources in {}".format(elapsed_time) 
Example #3
0
def update_analyzers(cnx, sources):
    """
    Runs Analyzers and Filters against each source in the source_os_list, updating the
    approriate tables

    :param sources: list of SourceInfo instances
    """
    print "...Beginning Analyzers and Filters for inputted sources"

    start_time = time.time()

    #now let's run the prevalence analyzer
    pu = PrevalenceAnalyzer(cnx)
    pu.update(sources)

    elapsed_time = time.time() - start_time
    print "...completed analyzers on inputed sources in {}".format(
        elapsed_time)