|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.contrib.failmon.Anonymizer
public class Anonymizer
This class provides anonymization to SerializedRecord objects. It anonymizes all hostnames, ip addresses and file names/paths that appear in EventRecords gathered from the logs and other system utilities. Such values are hashed using a cryptographically safe one-way-hash algorithm (MD5).
Constructor Summary | |
---|---|
Anonymizer()
|
Method Summary | |
---|---|
static SerializedRecord |
anonymize(EventRecord er)
Anonymize hostnames, ip addresses and file names/paths that appear in fields of an EventRecord, after it gets serialized into a SerializedRecord. |
static SerializedRecord |
anonymize(SerializedRecord sr)
Anonymize hostnames, ip addresses and file names/paths that appear in fields of a SerializedRecord. |
static String |
getMD5Hash(String text)
Create the MD5 digest of an input text. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Anonymizer()
Method Detail |
---|
public static SerializedRecord anonymize(SerializedRecord sr) throws Exception
sr
- the input SerializedRecord
Exception
public static SerializedRecord anonymize(EventRecord er) throws Exception
er
- the input EventRecord
Exception
public static String getMD5Hash(String text)
text
- the input text
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |