Class OProfilerStub
java.lang.Object
com.orientechnologies.common.concur.resource.OSharedResourceAbstract
com.orientechnologies.common.profiler.OAbstractProfiler
com.orientechnologies.common.profiler.OProfilerStub
- All Implemented Interfaces:
OProfiler,OProfilerMXBean,OService,OOrientStartupListener
-
Nested Class Summary
Nested classes/interfaces inherited from class com.orientechnologies.common.profiler.OAbstractProfiler
OAbstractProfiler.OProfilerHookRuntime, OAbstractProfiler.OProfilerHookStatic, OAbstractProfiler.OProfilerHookValueNested classes/interfaces inherited from interface com.orientechnologies.common.profiler.OProfiler
OProfiler.METRIC_TYPE -
Field Summary
FieldsFields inherited from class com.orientechnologies.common.profiler.OAbstractProfiler
autoDumpTask, dictionary, hooks, listeners, recordingFrom, typesFields inherited from class com.orientechnologies.common.concur.resource.OSharedResourceAbstract
lock -
Constructor Summary
ConstructorsConstructorDescriptionOProfilerStub(boolean registerListener) OProfilerStub(OAbstractProfiler profiler) -
Method Summary
Modifier and TypeMethodDescriptionvoiddump()longgetCounter(String statName) String[]getHookValue(String iName) protected AtomicIntegerbooleanvoidresetRealtime(String iText) protected voidsetTip(String iMessage, AtomicInteger counter) voidshutdown()longbooleanvoidstartup()longstopChrono(String iName, String iDescription, long iStartTime) longstopChrono(String iName, String iDescription, long iStartTime, String iDictionary) longstopChrono(String iName, String iDescription, long iStartTime, String iDictionary, String payload) longstopChrono(String iName, String iDescription, long iStartTime, String iDictionary, String payload, String user) booleanvoidupdateCounter(String statName, String description, long plus, String metadata) protected voidupdateMetadata(String iName, String iDescription, OProfiler.METRIC_TYPE iType) Updates the metric metadata.Methods inherited from class com.orientechnologies.common.profiler.OAbstractProfiler
dump, dump, dumpEnvironment, getChronosAsString, getDatabaseMetric, getHookAsString, getMetadata, getName, getProcessMetric, getSystemMetric, getType, installMemoryChecker, isRecording, onStartup, registerHookValue, registerHookValue, registerListener, reportTip, setAutoDump, threadDump, unregisterHookValue, unregisterListener, updateCounterMethods inherited from class com.orientechnologies.common.concur.resource.OSharedResourceAbstract
acquireExclusiveLock, acquireSharedLock, releaseExclusiveLock, releaseSharedLockMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.orientechnologies.common.profiler.OProfiler
getContext
-
Field Details
-
counters
-
-
Constructor Details
-
OProfilerStub
public OProfilerStub() -
OProfilerStub
public OProfilerStub(boolean registerListener) -
OProfilerStub
-
-
Method Details
-
startup
public void startup()- Specified by:
startupin interfaceOService- Overrides:
startupin classOAbstractProfiler
-
shutdown
public void shutdown()- Specified by:
shutdownin interfaceOService- Overrides:
shutdownin classOAbstractProfiler
-
setTip
- Specified by:
setTipin classOAbstractProfiler
-
getTip
- Specified by:
getTipin classOAbstractProfiler
-
isEnterpriseEdition
public boolean isEnterpriseEdition() -
configure
-
startRecording
public boolean startRecording()- Specified by:
startRecordingin interfaceOProfiler- Specified by:
startRecordingin interfaceOProfilerMXBean- Overrides:
startRecordingin classOAbstractProfiler
-
stopRecording
public boolean stopRecording()- Specified by:
stopRecordingin interfaceOProfiler- Specified by:
stopRecordingin interfaceOProfilerMXBean- Overrides:
stopRecordingin classOAbstractProfiler
-
dump
- Specified by:
dumpin interfaceOProfiler- Specified by:
dumpin interfaceOProfilerMXBean- Overrides:
dumpin classOAbstractProfiler
-
updateCounter
-
getCounter
-
dumpCounters
- Specified by:
dumpCountersin interfaceOProfiler- Specified by:
dumpCountersin interfaceOProfilerMXBean- Overrides:
dumpCountersin classOAbstractProfiler
-
getChrono
- Specified by:
getChronoin interfaceOProfiler- Overrides:
getChronoin classOAbstractProfiler
-
startChrono
public long startChrono()- Specified by:
startChronoin interfaceOProfiler- Overrides:
startChronoin classOAbstractProfiler
-
stopChrono
- Specified by:
stopChronoin interfaceOProfiler- Overrides:
stopChronoin classOAbstractProfiler
-
stopChrono
- Specified by:
stopChronoin interfaceOProfiler- Overrides:
stopChronoin classOAbstractProfiler
-
stopChrono
-
stopChrono
-
dumpChronos
- Specified by:
dumpChronosin interfaceOProfiler- Specified by:
dumpChronosin interfaceOProfilerMXBean- Overrides:
dumpChronosin classOAbstractProfiler
-
getCountersAsString
- Specified by:
getCountersAsStringin interfaceOProfiler- Specified by:
getCountersAsStringin interfaceOProfilerMXBean- Overrides:
getCountersAsStringin classOAbstractProfiler
-
getChronos
-
getLastReset
- Specified by:
getLastResetin interfaceOProfiler- Specified by:
getLastResetin interfaceOProfilerMXBean- Overrides:
getLastResetin classOAbstractProfiler
-
metadataToJSON
- Specified by:
metadataToJSONin interfaceOProfiler- Specified by:
metadataToJSONin interfaceOProfilerMXBean- Overrides:
metadataToJSONin classOAbstractProfiler
-
getHookValue
-
toJSON
- Specified by:
toJSONin interfaceOProfiler- Overrides:
toJSONin classOAbstractProfiler
-
resetRealtime
-
getStatsAsJson
-
updateMetadata
Updates the metric metadata.- Overrides:
updateMetadatain classOAbstractProfiler
-