core/src/main/java/com/digitalpebble/stormcrawler/bolt/StatusEmitterBolt.java
protected void emitOutlink(Tuple t, URL sURL, String newUrl,
            Metadata sourceMetadata, String... customKeyVals) {

        Outlink ol = filterOutlink(sURL, newUrl, sourceMetadata, customKeyVals);
        if (ol == null)
            return;

        collector.emit(
                com.digitalpebble.stormcrawler.Constants.StatusStreamName, t,
                new Values(ol.getTargetURL(), ol.getMetadata(),
                        Status.DISCOVERED));
    }
protected void emitOutlink(Tuple t, URL sURL, String newUrl,
            Metadata sourceMetadata, String... customKeyVals) {

        Outlink ol = filterOutlink(sURL, newUrl, sourceMetadata, customKeyVals);
        if (ol == null)
            return;

        collector.emit(
                com.digitalpebble.stormcrawler.Constants.StatusStreamName, t,
                new Values(ol.getTargetURL(), ol.getMetadata(),
                        Status.DISCOVERED));
    }
protected void emitOutlink ( Tuple t , URL sURL , String newUrl , Metadata sourceMetadata , String ... customKeyVals ) { Outlink ol = filterOutlink ( sURL , newUrl , sourceMetadata , customKeyVals ) ; if ( ol == null ) return ; collector . emit ( com . digitalpebble . stormcrawler . Constants . StatusStreamName , t , new Values ( ol . getTargetURL ( ) , ol . getMetadata ( ) , Status . DISCOVERED ) ) ; }
Used for redirections or when discovering sitemap URLs. The custom key /
values are added to the target metadata post-filtering.
Used for redirections or when discovering sitemap URLs . The custom key / values are added to the target metadata post - filtering .