Package org.qubership.profiler.client
Class DefaultCollectorClient
java.lang.Object
org.qubership.profiler.client.DefaultCollectorClient
- All Implemented Interfaces:
AutoCloseable,org.qubership.profiler.agent.DumperCollectorClient
public class DefaultCollectorClient
extends Object
implements org.qubership.profiler.agent.DumperCollectorClient
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefaultCollectorClient(String host, int port, boolean ssl, String cloudNamespace, String microserviceName, String podName) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()org.qubership.profiler.agent.DumperRemoteControlledStreamcreateRollingChunk(String streamName, int requestedRollingSequenceId, boolean resetRequired) voidflush()longbooleanisOnline()protected voidvoidrequestAckFlush(boolean doFlush) booleanvalidateWriteDataAcks(boolean sync) void
-
Field Details
-
BLOCKING_WRITE_TIMEOUT
public static final long BLOCKING_WRITE_TIMEOUT- See Also:
-
ENV_NC_DIAGNOSTIC_FOLDER
- See Also:
-
ENV_KEYSTORE_FILE_PATH
- See Also:
-
ENV_KEYSTORE_PASSWORD
- See Also:
-
TLS_KEYSTORE_PATH
- See Also:
-
TLS_KEYSTORE_PASSWORD
- See Also:
-
NUM_RETRY_ATTEMPTS
public static final int NUM_RETRY_ATTEMPTS- See Also:
-
PAUSE_BETWEEN_RETRIES_MILLIS
public static final int PAUSE_BETWEEN_RETRIES_MILLIS- See Also:
-
-
Constructor Details
-
DefaultCollectorClient
-
-
Method Details
-
reportPodName
protected void reportPodName() -
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceorg.qubership.profiler.agent.DumperCollectorClient- Throws:
IOException
-
createRollingChunk
public org.qubership.profiler.agent.DumperRemoteControlledStream createRollingChunk(String streamName, int requestedRollingSequenceId, boolean resetRequired) throws IOException - Specified by:
createRollingChunkin interfaceorg.qubership.profiler.agent.DumperCollectorClient- Throws:
IOException
-
write
- Specified by:
writein interfaceorg.qubership.profiler.agent.DumperCollectorClient- Throws:
IOException
-
validateWriteDataAcks
- Specified by:
validateWriteDataAcksin interfaceorg.qubership.profiler.agent.DumperCollectorClient- Parameters:
sync- - whether to wait for all the acks- Returns:
- true if no acks are pending
- Throws:
IOException
-
requestAckFlush
- Specified by:
requestAckFlushin interfaceorg.qubership.profiler.agent.DumperCollectorClient- Throws:
IOException
-
isOnline
public boolean isOnline()- Specified by:
isOnlinein interfaceorg.qubership.profiler.agent.DumperCollectorClient
-
flush
- Specified by:
flushin interfaceorg.qubership.profiler.agent.DumperCollectorClient- Throws:
IOException
-
getPodName
- Specified by:
getPodNamein interfaceorg.qubership.profiler.agent.DumperCollectorClient
-
getVersion
public long getVersion()
-