public class DefaultActivityReporter extends Object implements ActivityReporter
Constructor and Description |
---|
DefaultActivityReporter() |
Modifier and Type | Method and Description |
---|---|
protected void |
init()
This method initializes the auditor.
|
void |
logError(String error)
This method can be used to report error information.
|
void |
logInfo(String info)
This method can be used to report general information.
|
void |
logWarning(String warning)
This method can be used to report warning information.
|
void |
report(ActivityType actType)
This method reports the activity event to the
collector.
|
void |
report(String type,
Map<String,String> props)
This method can be used to report activity information.
|
void |
setActivityCollector(ActivityCollector ac)
This method sets the activity collector.
|
protected void init()
public void setActivityCollector(ActivityCollector ac)
ac
- The activity collectorpublic void logInfo(String info)
logInfo
in interface ActivityReporter
info
- The informationpublic void logWarning(String warning)
logWarning
in interface ActivityReporter
warning
- The warning descriptionpublic void logError(String error)
logError
in interface ActivityReporter
error
- The error descriptionpublic void report(String type, Map<String,String> props)
report
in interface ActivityReporter
type
- The activity typeprops
- The propertiespublic void report(ActivityType actType)
report
in interface ActivityReporter
actType
- The activity typeCopyright © 2013-2015 JBoss by Red Hat. All Rights Reserved.