public class AnalyticsLogRecord
extends java.util.logging.LogRecord
| Constructor and Description | 
|---|
| AnalyticsLogRecord(java.util.logging.Level level,
                  String eventName)Constructor of AnalyticsLogRecord | 
| AnalyticsLogRecord(java.util.logging.Level level,
                  String category,
                  String eventName,
                  JSONObject payload)Constructor of AnalyticsLogRecord. | 
| AnalyticsLogRecord(java.util.logging.LogRecord lr)Constructor of AnalyticsLogRecord | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getCategory() | 
| String | getFeatureId() | 
| String | getName() | 
| JSONObject | getPayload() | 
| static String | getSessionId() | 
| String | getUsername()This method returns the username using which the user has logged into the
 secured feature. | 
| void | setCategory(String category)This method is used to set the category of events. | 
| void | setName(String name)This method is used to set the name of the event and it cannot be null. | 
| void | setPayload(JSONObject payload)This method sets the payload which represents the 'properties' object of
 the event being logged. | 
| JSONObject | toJSON() | 
| String | toString() | 
getLevel, getLoggerName, getMessage, getMillis, getParameters, getResourceBundle, getResourceBundleName, getSequenceNumber, getSourceClassName, getSourceMethodName, getThreadID, getThrown, setLevel, setLoggerName, setMessage, setMillis, setParameters, setResourceBundle, setResourceBundleName, setSequenceNumber, setSourceClassName, setSourceMethodName, setThreadID, setThrownpublic AnalyticsLogRecord(java.util.logging.Level level,
                          String eventName)
level - - Level to be set for AnalyticsLogRecordeventName - - Name to be set for AnalyticsLogRecordpublic AnalyticsLogRecord(java.util.logging.LogRecord lr)
lr - - LogRecord from which to create an AnalyticsLogRecord object.public AnalyticsLogRecord(java.util.logging.Level level,
                          String category,
                          String eventName,
                          JSONObject payload)
level - - Level to be set for AnalyticsLogRecordcategory - - Category to be set for AnalyticsLogRecordeventName - - Name to be set for AnalyticsLogRecordpayload - - JSONObject which will represent the 'properties' object for the
          AnalyticsLogRecordpublic static String getSessionId()
public void setName(String name)
name - - It represents the name of the event.AdfException - - It throws AdfException if name is null.public String getName()
public void setCategory(String category)
category - custom - All the events which are logged from user application has
          to be of type custom. Its a default category. These events will
          be analyzed by MCS to generate reports. 
          system - If events are being published to MCS then only 'context, 
          sessionStart & sessionEnd event' are allowed to be of type system.public String getCategory()
public void setPayload(JSONObject payload)
payload - - It is a JSONObject object with Key/Value pair of type String.public JSONObject getPayload()
public String getUsername()
public String getFeatureId()
public JSONObject toJSON()
public String toString()
toString in class Object