|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.rapidminer.tools.usagestats.UsageStatistics
public class UsageStatistics
Collects statistics about usage of operators. Statistics can be sent to a server collecting them. Counting and resetting is thread safe.
UsageStatsTransmissionDialog
Nested Class Summary | |
---|---|
static class |
UsageStatistics.StatisticsScope
Selects with which scope the statistics are collected and reported. |
Method Summary | |
---|---|
void |
count(Operator op,
OperatorStatisticsValue type)
Adds 1 to the statistics value for the given operator in all scopes. |
void |
count(Operator op,
OperatorStatisticsValue type,
UsageStatistics.StatisticsScope... scopes)
Adds 1 to the statistics value for the given operator in the given scopes. |
void |
count(Process process,
OperatorStatisticsValue type)
Adds 1 to the statistics value for all operators contained in the current process in all scopes. |
void |
count(Process process,
OperatorStatisticsValue type,
UsageStatistics.StatisticsScope... scopes)
Adds 1 to the statistics value for all operators contained in the current process the given scopes. |
DataTable |
getAsDataTable(UsageStatistics.StatisticsScope scope)
Returns the statistics as a data table that can be displayed to the user. |
static UsageStatistics |
getInstance()
|
java.util.Date |
getNextTransmission()
Returns the date at which the next transmission should be scheduled. |
java.util.List<java.lang.String> |
getOperatorKeys(UsageStatistics.StatisticsScope scope)
Returns a list of all operator names for which statistics are available. |
OperatorUsageStatistics |
getOperatorStatistics(UsageStatistics.StatisticsScope scope,
OperatorDescription op)
|
java.lang.String |
getUserKey()
Returns the user key for this session. |
boolean |
hasFailedToday()
|
static void |
main(java.lang.String[] args)
|
void |
reset()
Sets all current counters to 0 and sets the last reset date to the current time. |
void |
save()
Saves the statistics to a user file. |
void |
scheduleTransmissionFromNow()
|
boolean |
transferUsageStats(ProgressListener progressListener)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static UsageStatistics getInstance()
public void reset()
public void count(Process process, OperatorStatisticsValue type)
public void count(Process process, OperatorStatisticsValue type, UsageStatistics.StatisticsScope... scopes)
public void count(Operator op, OperatorStatisticsValue type)
public void count(Operator op, OperatorStatisticsValue type, UsageStatistics.StatisticsScope... scopes)
public OperatorUsageStatistics getOperatorStatistics(UsageStatistics.StatisticsScope scope, OperatorDescription op)
public void save()
public DataTable getAsDataTable(UsageStatistics.StatisticsScope scope)
public java.util.List<java.lang.String> getOperatorKeys(UsageStatistics.StatisticsScope scope)
public boolean transferUsageStats(ProgressListener progressListener) throws java.lang.Exception
java.lang.Exception
public java.lang.String getUserKey()
public java.util.Date getNextTransmission()
public void scheduleTransmissionFromNow()
public boolean hasFailedToday()
public static void main(java.lang.String[] args)
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |