
public abstract class OAbstractProfiler extends OSharedResourceAbstract implements OProfiler, OOrientStartupListener, OProfilerMXBean
| Modifier and Type | Class and Description |
|---|---|
class |
OAbstractProfiler.OProfilerHookRuntime |
class |
OAbstractProfiler.OProfilerHookStatic |
static interface |
OAbstractProfiler.OProfilerHookValue |
OProfiler.METRIC_TYPE| Modifier and Type | Field and Description |
|---|---|
protected TimerTask |
autoDumpTask |
protected ConcurrentHashMap<String,String> |
dictionary |
protected Map<String,OAbstractProfiler.OProfilerHookRuntime> |
hooks |
protected List<OProfilerListener> |
listeners |
protected long |
recordingFrom |
protected ConcurrentHashMap<String,OProfiler.METRIC_TYPE> |
types |
lock| Constructor and Description |
|---|
OAbstractProfiler() |
OAbstractProfiler(boolean registerListener) |
OAbstractProfiler(OAbstractProfiler profiler) |
acquireExclusiveLock, acquireSharedLock, releaseExclusiveLock, releaseSharedLockclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconfigure, getChronos, getCounter, getHookValue, getStatsAsJson, resetRealtime, stopChrono, stopChrono, updateCountergetCounter, resetRealtimeprotected final Map<String,OAbstractProfiler.OProfilerHookRuntime> hooks
protected final ConcurrentHashMap<String,String> dictionary
protected final ConcurrentHashMap<String,OProfiler.METRIC_TYPE> types
protected long recordingFrom
protected TimerTask autoDumpTask
protected List<OProfilerListener> listeners
public OAbstractProfiler()
public OAbstractProfiler(boolean registerListener)
public OAbstractProfiler(OAbstractProfiler profiler)
protected abstract void setTip(String iMessage, AtomicInteger counter)
protected abstract AtomicInteger getTip(String iMessage)
public abstract boolean isEnterpriseEdition()
isEnterpriseEdition in interface OProfilerpublic void onStartup()
onStartup in interface OOrientStartupListenerpublic boolean startRecording()
startRecording in interface OProfilerstartRecording in interface OProfilerMXBeanpublic boolean stopRecording()
stopRecording in interface OProfilerstopRecording in interface OProfilerMXBeanpublic boolean isRecording()
isRecording in interface OProfilerisRecording in interface OProfilerMXBeanpublic void updateCounter(String iStatName, String iDescription, long iPlus)
updateCounter in interface OProfilerpublic String dump()
dump in interface OProfilerdump in interface OProfilerMXBeanpublic void dump(PrintStream out)
public String dumpCounters()
dumpCounters in interface OProfilerdumpCounters in interface OProfilerMXBeanpublic OProfilerEntry getChrono(String string)
public long startChrono()
startChrono in interface OProfilerpublic long stopChrono(String iName, String iDescription, long iStartTime)
stopChrono in interface OProfilerpublic long stopChrono(String iName, String iDescription, long iStartTime, String iDictionary)
stopChrono in interface OProfilerpublic String dumpChronos()
dumpChronos in interface OProfilerdumpChronos in interface OProfilerMXBeanpublic String[] getCountersAsString()
getCountersAsString in interface OProfilergetCountersAsString in interface OProfilerMXBeanpublic String[] getChronosAsString()
getChronosAsString in interface OProfilerMXBeanpublic Date getLastReset()
getLastReset in interface OProfilergetLastReset in interface OProfilerMXBeanpublic void setAutoDump(int iSeconds)
setAutoDump in interface OProfilersetAutoDump in interface OProfilerMXBeanpublic String metadataToJSON()
metadataToJSON in interface OProfilermetadataToJSON in interface OProfilerMXBeanpublic Map<String,OPair<String,OProfiler.METRIC_TYPE>> getMetadata()
getMetadata in interface OProfilerpublic String[] getHookAsString()
getHookAsString in interface OProfilerpublic void registerHookValue(String iName, String iDescription, OProfiler.METRIC_TYPE iType, OAbstractProfiler.OProfilerHookValue iHookValue)
registerHookValue in interface OProfilerpublic void registerHookValue(String iName, String iDescription, OProfiler.METRIC_TYPE iType, OAbstractProfiler.OProfilerHookValue iHookValue, String iMetadataName)
registerHookValue in interface OProfilerpublic void unregisterHookValue(String iName)
unregisterHookValue in interface OProfilerpublic String getSystemMetric(String iMetricName)
getSystemMetric in interface OProfilergetSystemMetric in interface OProfilerMXBeanpublic String getProcessMetric(String iMetricName)
getProcessMetric in interface OProfilergetProcessMetric in interface OProfilerMXBeanpublic String getDatabaseMetric(String iDatabaseName, String iMetricName)
getDatabaseMetric in interface OProfilergetDatabaseMetric in interface OProfilerMXBeanprotected void installMemoryChecker()
protected void updateMetadata(String iName, String iDescription, OProfiler.METRIC_TYPE iType)
public void registerListener(OProfilerListener listener)
registerListener in interface OProfilerpublic void unregisterListener(OProfilerListener listener)
unregisterListener in interface OProfilerpublic String threadDump()
threadDump in interface OProfilerpublic OProfiler.METRIC_TYPE getType(String k)
Copyright © 2009–2025 OrientDB. All rights reserved.