Class SanitizeWeblogs
java.lang.Object
org.torproject.metrics.collector.sync.SyncManager
org.torproject.metrics.collector.cron.CollecTorMain
org.torproject.metrics.collector.webstats.SanitizeWeblogs
- All Implemented Interfaces:
java.lang.Runnable,java.util.concurrent.Callable<java.lang.Object>
public class SanitizeWeblogs extends CollecTorMain
This module processes web-logs for CollecTor according to the weblog
sanitation specification published on metrics.torproject.org.
-
Field Summary
Fields inherited from class org.torproject.metrics.collector.cron.CollecTorMain
config, mapPathDescriptors, SOURCES -
Constructor Summary
Constructors Constructor Description SanitizeWeblogs(Configuration conf)Possibly privacy impacting data is replaced by dummy data producing a log-file (or files) that confirm(s) to Apache's Combined Log Format. -
Method Summary
Modifier and Type Method Description static byte[]bytesFor(java.lang.String line, long times)java.lang.Stringmodule()Returns the module name for logging purposes.protected voidstartProcessing()Module specific code goes here.protected java.lang.StringsyncMarker()Returns property prefix/infix/postfix for Sync related properties.Methods inherited from class org.torproject.metrics.collector.cron.CollecTorMain
call, checkAvailableSpace, readProcessedFiles, run, syncMapPathsDescriptors, writeProcessedFiles
-
Constructor Details
-
SanitizeWeblogs
Possibly privacy impacting data is replaced by dummy data producing a log-file (or files) that confirm(s) to Apache's Combined Log Format.
-
-
Method Details
-
module
public java.lang.String module()Description copied from class:CollecTorMainReturns the module name for logging purposes.- Specified by:
modulein classCollecTorMain
-
syncMarker
protected java.lang.String syncMarker()Description copied from class:CollecTorMainReturns property prefix/infix/postfix for Sync related properties.- Specified by:
syncMarkerin classCollecTorMain
-
startProcessing
protected void startProcessing()Description copied from class:CollecTorMainModule specific code goes here.- Specified by:
startProcessingin classCollecTorMain
-
bytesFor
public static byte[] bytesFor(java.lang.String line, long times)
-