Package org.qubership.profiler
Class Dumper
java.lang.Object
org.qubership.profiler.Dumper
- All Implemented Interfaces:
Closeable,AutoCloseable,org.qubership.profiler.agent.DumperConstants,IDumper
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final Stringorg.qubership.profiler.agent.LocalStatestatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from interface org.qubership.profiler.agent.DumperConstants
COMMAND_EXIT, COMMAND_FLUSH_LOG, COMMAND_GET_INFLIGHT_CALLS, COMMAND_GRACEFUL_SHUTDOWN, COMMAND_ROTATE_LOG, DATA_ENTER_FIELD, DATA_ENTER_RECORD, DATA_EXIT_FIELD, DATA_EXIT_RECORD, DATA_ID_MASK, DATA_TAG_FIELD, DATA_TAG_RECORD, DATA_TYPE_MASK, EVENT_EMPTY, EVENT_ENTER_RECORD, EVENT_EXIT_RECORD, EVENT_FINISH_RECORD, EVENT_TAG_RECORD, TAGS_CALL_ACTIVE, TAGS_HOTSPOTS, TAGS_JAVA_THREAD, TAGS_PARAMETERS, TAGS_ROOT -
Constructor Summary
ConstructorsConstructorDescriptionDumper(BlockingQueue<org.qubership.profiler.agent.LocalBuffer> dirtyBuffers, BlockingQueue<org.qubership.profiler.agent.LocalBuffer> emptyBuffers, ConcurrentMap<Thread, org.qubership.profiler.agent.LocalState> buffers, String dumpFolder, MetricsPluginImpl metricsPlugin) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEmptyBuffer(org.qubership.profiler.agent.LocalBuffer buffer) voidclose()voidconfigure(Map<String, org.qubership.profiler.agent.ParameterInfo> paramInfo, long logMaxAge, long logMaxSize, List<org.qubership.profiler.agent.MetricsConfiguration> metrics, List<org.qubership.profiler.agent.MetricsDescription> systemMetrics) voidvoiddumpLoop()voidvoidlonglonglonglonglonglongvoidboolean
-
Field Details
-
DUMP_ITERATION_METHOD_NAME
-
DUMP_ITERATION_METHOD_ID
public static final int DUMP_ITERATION_METHOD_ID -
PROFILER_TITLE
- See Also:
-
PARAM_REMOTE_DUMP_HOST
- See Also:
-
PARAM_REMOTE_DUMP_PORT
- See Also:
-
PARAM_REMOTE_DUMP_PORT_PLAIN
- See Also:
-
PARAM_REMOTE_DUMP_PORT_SSL
- See Also:
-
PARAM_FORCE_LOCAL_DUMP
- See Also:
-
PARAM_CLOUD_NAMESPACE
- See Also:
-
PARAM_MICROSERVICE_NAME
- See Also:
-
localState
public org.qubership.profiler.agent.LocalState localState
-
-
Constructor Details
-
Dumper
public Dumper(BlockingQueue<org.qubership.profiler.agent.LocalBuffer> dirtyBuffers, BlockingQueue<org.qubership.profiler.agent.LocalBuffer> emptyBuffers, ConcurrentMap<Thread, org.qubership.profiler.agent.LocalState> buffers, String dumpFolder, MetricsPluginImpl metricsPlugin)
-
-
Method Details
-
configure
-
isInitialized
public boolean isInitialized() -
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
initialize
- Specified by:
initializein interfaceIDumper- Throws:
IOException
-
addEmptyBuffer
public void addEmptyBuffer(org.qubership.profiler.agent.LocalBuffer buffer) -
dumpLoop
- Specified by:
dumpLoopin interfaceIDumper- Throws:
InterruptedExceptionIOException
-
dumpDictionary
- Throws:
IOException
-
dumpSuspendLog
- Throws:
IOException
-
getCurrentRoot
-
getRecordsWritten
public long getRecordsWritten() -
getUncompressedSize
public long getUncompressedSize() -
getCompressedSize
public long getCompressedSize() -
getDumpTime
public long getDumpTime() -
getDumperStartTime
public long getDumperStartTime() -
getArchiveSize
public long getArchiveSize() -
forceRescanDumpDir
public void forceRescanDumpDir() -
getDumperCallsExporter
-