public class OProfilerStub extends OAbstractProfiler
OAbstractProfiler.OProfilerHookRuntime, OAbstractProfiler.OProfilerHookStatic, OAbstractProfiler.OProfilerHookValue
OProfiler.METRIC_TYPE
Modifier and Type | Field and Description |
---|---|
protected ConcurrentMap<String,Long> |
counters |
autoDumpTask, dictionary, hooks, listeners, recordingFrom, types
lock
Constructor and Description |
---|
OProfilerStub() |
OProfilerStub(boolean registerListener) |
OProfilerStub(OAbstractProfiler profiler) |
Modifier and Type | Method and Description |
---|---|
void |
configure(String iConfiguration) |
String |
dump() |
String |
dumpChronos() |
String |
dumpCounters() |
OProfilerEntry |
getChrono(String string) |
List<String> |
getChronos() |
long |
getCounter(String statName) |
String[] |
getCountersAsString() |
Object |
getHookValue(String iName) |
Date |
getLastReset() |
String |
getStatsAsJson() |
protected AtomicInteger |
getTip(String iMessage) |
boolean |
isEnterpriseEdition() |
String |
metadataToJSON() |
void |
resetRealtime(String iText) |
protected void |
setTip(String iMessage,
AtomicInteger counter) |
void |
shutdown() |
long |
startChrono() |
boolean |
startRecording() |
void |
startup() |
long |
stopChrono(String iName,
String iDescription,
long iStartTime) |
long |
stopChrono(String iName,
String iDescription,
long iStartTime,
String iDictionary) |
long |
stopChrono(String iName,
String iDescription,
long iStartTime,
String iDictionary,
String payload) |
long |
stopChrono(String iName,
String iDescription,
long iStartTime,
String iDictionary,
String payload,
String user) |
boolean |
stopRecording() |
String |
toJSON(String command,
String iPar1) |
void |
updateCounter(String statName,
String description,
long plus,
String metadata) |
protected void |
updateMetadata(String iName,
String iDescription,
OProfiler.METRIC_TYPE iType)
Updates the metric metadata.
|
dump, dump, dumpEnvironment, getChronosAsString, getDatabaseMetric, getHookAsString, getMetadata, getName, getProcessMetric, getSystemMetric, getType, installMemoryChecker, isRecording, onStartup, registerHookValue, registerHookValue, registerListener, reportTip, setAutoDump, threadDump, unregisterHookValue, unregisterListener, updateCounter
acquireExclusiveLock, acquireSharedLock, releaseExclusiveLock, releaseSharedLock
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContext
protected ConcurrentMap<String,Long> counters
public OProfilerStub()
public OProfilerStub(boolean registerListener)
public OProfilerStub(OAbstractProfiler profiler)
public void startup()
startup
in interface OService
startup
in class OAbstractProfiler
public void shutdown()
shutdown
in interface OService
shutdown
in class OAbstractProfiler
protected void setTip(String iMessage, AtomicInteger counter)
setTip
in class OAbstractProfiler
protected AtomicInteger getTip(String iMessage)
getTip
in class OAbstractProfiler
public boolean isEnterpriseEdition()
public void configure(String iConfiguration)
public boolean startRecording()
startRecording
in interface OProfiler
startRecording
in interface OProfilerMXBean
startRecording
in class OAbstractProfiler
public boolean stopRecording()
stopRecording
in interface OProfiler
stopRecording
in interface OProfilerMXBean
stopRecording
in class OAbstractProfiler
public String dump()
dump
in interface OProfiler
dump
in interface OProfilerMXBean
dump
in class OAbstractProfiler
public void updateCounter(String statName, String description, long plus, String metadata)
public long getCounter(String statName)
public String dumpCounters()
dumpCounters
in interface OProfiler
dumpCounters
in interface OProfilerMXBean
dumpCounters
in class OAbstractProfiler
public OProfilerEntry getChrono(String string)
getChrono
in interface OProfiler
getChrono
in class OAbstractProfiler
public long startChrono()
startChrono
in interface OProfiler
startChrono
in class OAbstractProfiler
public long stopChrono(String iName, String iDescription, long iStartTime)
stopChrono
in interface OProfiler
stopChrono
in class OAbstractProfiler
public long stopChrono(String iName, String iDescription, long iStartTime, String iDictionary)
stopChrono
in interface OProfiler
stopChrono
in class OAbstractProfiler
public long stopChrono(String iName, String iDescription, long iStartTime, String iDictionary, String payload)
public long stopChrono(String iName, String iDescription, long iStartTime, String iDictionary, String payload, String user)
public String dumpChronos()
dumpChronos
in interface OProfiler
dumpChronos
in interface OProfilerMXBean
dumpChronos
in class OAbstractProfiler
public String[] getCountersAsString()
getCountersAsString
in interface OProfiler
getCountersAsString
in interface OProfilerMXBean
getCountersAsString
in class OAbstractProfiler
public Date getLastReset()
getLastReset
in interface OProfiler
getLastReset
in interface OProfilerMXBean
getLastReset
in class OAbstractProfiler
public String metadataToJSON()
metadataToJSON
in interface OProfiler
metadataToJSON
in interface OProfilerMXBean
metadataToJSON
in class OAbstractProfiler
public String toJSON(String command, String iPar1)
toJSON
in interface OProfiler
toJSON
in class OAbstractProfiler
public void resetRealtime(String iText)
public String getStatsAsJson()
protected void updateMetadata(String iName, String iDescription, OProfiler.METRIC_TYPE iType)
updateMetadata
in class OAbstractProfiler
Copyright © 2009–2020 OrientDB. All rights reserved.