1   package com.trendmicro.grid.acl.ds.trivial;
2   
3   import com.trendmicro.grid.acl.ds.ReportReceiver;
4   import com.trendmicro.grid.acl.l0.datatypes.FileReport;
5   import org.slf4j.Logger;
6   import org.slf4j.LoggerFactory;
7   import org.springframework.stereotype.Service;
8   
9   import java.util.Collection;
10  
11  /**
12   * Implements a trivial reporting facility that simply writes everything to the log.
13   *
14   * @author juergen_kellerer, 2010-05-06
15   * @version 1.0
16   */
17  @Service
18  public class TrivialReportReceiver implements ReportReceiver {
19  
20  	private static final Logger log = LoggerFactory.getLogger(TrivialReportReceiver.class);
21  
22  	/**
23  	 * {@inheritDoc}
24  	 */
25  	public void receiveFileReports(Collection<FileReport> fileReports) {
26  		for (FileReport fileReport : fileReports)
27  			log.info("TMACL-00460: Received file usage report: {}", fileReport);
28  	}
29  }