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, releaseSharedLock
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
configure, getChronos, getContext, getCounter, getHookValue, getStatsAsJson, isEnterpriseEdition, resetRealtime, stopChrono, stopChrono, updateCounter
getCounter, resetRealtime
protected 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 void onStartup()
onStartup
in interface OOrientStartupListener
public boolean startRecording()
startRecording
in interface OProfiler
startRecording
in interface OProfilerMXBean
public boolean stopRecording()
stopRecording
in interface OProfiler
stopRecording
in interface OProfilerMXBean
public boolean isRecording()
isRecording
in interface OProfiler
isRecording
in interface OProfilerMXBean
public void updateCounter(String iStatName, String iDescription, long iPlus)
updateCounter
in interface OProfiler
public String dump()
dump
in interface OProfiler
dump
in interface OProfilerMXBean
public void dump(PrintStream out)
public String dumpCounters()
dumpCounters
in interface OProfiler
dumpCounters
in interface OProfilerMXBean
public OProfilerEntry getChrono(String string)
public long startChrono()
startChrono
in interface OProfiler
public long stopChrono(String iName, String iDescription, long iStartTime)
stopChrono
in interface OProfiler
public long stopChrono(String iName, String iDescription, long iStartTime, String iDictionary)
stopChrono
in interface OProfiler
public String dumpChronos()
dumpChronos
in interface OProfiler
dumpChronos
in interface OProfilerMXBean
public String[] getCountersAsString()
getCountersAsString
in interface OProfiler
getCountersAsString
in interface OProfilerMXBean
public String[] getChronosAsString()
getChronosAsString
in interface OProfilerMXBean
public Date getLastReset()
getLastReset
in interface OProfiler
getLastReset
in interface OProfilerMXBean
public void setAutoDump(int iSeconds)
setAutoDump
in interface OProfiler
setAutoDump
in interface OProfilerMXBean
public String metadataToJSON()
metadataToJSON
in interface OProfiler
metadataToJSON
in interface OProfilerMXBean
public Map<String,OPair<String,OProfiler.METRIC_TYPE>> getMetadata()
getMetadata
in interface OProfiler
public String[] getHookAsString()
getHookAsString
in interface OProfiler
public void registerHookValue(String iName, String iDescription, OProfiler.METRIC_TYPE iType, OAbstractProfiler.OProfilerHookValue iHookValue)
registerHookValue
in interface OProfiler
public void registerHookValue(String iName, String iDescription, OProfiler.METRIC_TYPE iType, OAbstractProfiler.OProfilerHookValue iHookValue, String iMetadataName)
registerHookValue
in interface OProfiler
public void unregisterHookValue(String iName)
unregisterHookValue
in interface OProfiler
public String getSystemMetric(String iMetricName)
getSystemMetric
in interface OProfiler
getSystemMetric
in interface OProfilerMXBean
public String getProcessMetric(String iMetricName)
getProcessMetric
in interface OProfiler
getProcessMetric
in interface OProfilerMXBean
public String getDatabaseMetric(String iDatabaseName, String iMetricName)
getDatabaseMetric
in interface OProfiler
getDatabaseMetric
in interface OProfilerMXBean
protected void installMemoryChecker()
protected void updateMetadata(String iName, String iDescription, OProfiler.METRIC_TYPE iType)
public void registerListener(OProfilerListener listener)
registerListener
in interface OProfiler
public void unregisterListener(OProfilerListener listener)
unregisterListener
in interface OProfiler
public String threadDump()
threadDump
in interface OProfiler
public OProfiler.METRIC_TYPE getType(String k)
Copyright © 2009–2020 OrientDB. All rights reserved.