Skip navigation links
oracle.ide.usages
Class UsagesTracker
java.lang.Object
oracle.ide.usages.UsagesTracker
-
public abstract class UsagesTracker
- extends java.lang.Object
This class provides support for tracking informatino about how users use the product. It can be used to track system information, like product or JDK version, for example, or it can be used to track command invocations or editor changes.
To track a particular usage do:
UsagesTracker tracker = UsagesTracker.getUsagesTracker()
;
UsageData usage = tracker.createUsageData()
;
usage.setUsageType("CREATE_DOCUMENT");
...
tracker.report(usage)
;
Field Summary |
protected static boolean |
_isOn
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_isOn
protected static boolean _isOn
UsagesTracker
public UsagesTracker()
getUsagesTracker
public static UsagesTracker getUsagesTracker()
isOn
public static boolean isOn()
createUsageData
public abstract UsageData createUsageData()
- Creates a UsageData object where information about feature usage can be stored.
-
- Returns:
- a UsageData object
report
public abstract void report(UsageData usageData)
- Logs the usage data. Logs are sent to the server periodically.
-
- Parameters:
usageData
- a UsageData object; must not be null
setUsagesTracker
protected static void setUsagesTracker(UsagesTracker usagesTracker)
Skip navigation links
Copyright © 1997, 2013, Oracle. All rights reserved.