public class SPINStatisticsManager extends Object
setRecording(true);.| Constructor and Description |
|---|
SPINStatisticsManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Iterable<SPINStatistics> values)
Adds new statistics and notifies any registered listeners.
|
void |
addListener(SPINStatisticsListener listener) |
void |
addSilently(Iterable<SPINStatistics> values)
Adds new statistics without notifying listeners.
|
static SPINStatisticsManager |
get()
Gets the singleton instance of this class.
|
List<SPINStatistics> |
getStatistics()
Gets all previously added statistics.
|
boolean |
isRecording() |
boolean |
isRecordingNativeFunctions() |
boolean |
isRecordingSPINFunctions() |
void |
notifyListeners()
Notifies all registered SPINStatisticsListeners so that they can refresh themselves.
|
void |
removeListener(SPINStatisticsListener listener) |
void |
reset() |
void |
setRecording(boolean value) |
void |
setRecordingNativeFunctions(boolean value) |
void |
setRecordingSPINFunctions(boolean value) |
public static SPINStatisticsManager get()
public void addListener(SPINStatisticsListener listener)
public void add(Iterable<SPINStatistics> values)
isRecording() is true
to prevent the unnecessary creation of SPINStatistics objects.values - the statistics to addpublic void addSilently(Iterable<SPINStatistics> values)
isRecording() is true
to prevent the unnecessary creation of SPINStatistics objects.values - the statistics to addpublic List<SPINStatistics> getStatistics()
public boolean isRecording()
public boolean isRecordingNativeFunctions()
public boolean isRecordingSPINFunctions()
public void removeListener(SPINStatisticsListener listener)
public void reset()
public void notifyListeners()
public void setRecording(boolean value)
public void setRecordingNativeFunctions(boolean value)
public void setRecordingSPINFunctions(boolean value)
Copyright © 2017 TopQuadrant, Inc.. All rights reserved.