public class DtlsHealthLogger extends org.eclipse.californium.elements.util.CounterStatisticManager implements DtlsHealth
| Modifier and Type | Field and Description |
|---|---|
protected org.eclipse.californium.elements.util.SimpleCounterStatistic.AlignGroup |
align |
| Constructor and Description |
|---|
DtlsHealthLogger()
Create passive dtls health logger.
|
DtlsHealthLogger(String tag)
Create passive dtls health logger with logging tag.
|
DtlsHealthLogger(String tag,
boolean udp,
int interval,
ScheduledExecutorService executor)
Deprecated.
|
DtlsHealthLogger(String tag,
int interval,
ScheduledExecutorService executor)
Create active dtls health logger with logging tag.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dump() |
void |
dump(String tag,
int maxConnections,
int remainingCapacity,
int pendingWithoutVerify)
Dump health data.
|
protected void |
dump(String head,
StringBuilder log)
Dump additional health data.
|
void |
endHandshake(boolean success)
Report ended handshake.
|
boolean |
isEnabled()
Check, if collecting health data is enabled.
|
protected boolean |
isUsed()
Check, if health logger is used.
|
void |
receivingRecord(boolean drop)
Report receiving record
|
void |
sendingRecord(boolean drop)
Report sending record.
|
void |
startHandshake()
Report started handshake.
|
protected final org.eclipse.californium.elements.util.SimpleCounterStatistic.AlignGroup align
public DtlsHealthLogger()
public DtlsHealthLogger(String tag)
tag - logging tag@Deprecated public DtlsHealthLogger(String tag, boolean udp, int interval, ScheduledExecutorService executor)
DtlsHealthLogger(String, int, ScheduledExecutorService)
instead.public DtlsHealthLogger(String tag, int interval, ScheduledExecutorService executor)
public void dump()
dump in class org.eclipse.californium.elements.util.CounterStatisticManagerpublic void dump(String tag, int maxConnections, int remainingCapacity, int pendingWithoutVerify)
DtlsHealthdump in interface DtlsHealthtag - logging tagmaxConnections - maximum number of connectionsremainingCapacity - remaining capacity for connectionspendingWithoutVerify - pending handshakes without verificationprotected boolean isUsed()
true, if used and dump must be written, false,
otherwise.protected void dump(String head, StringBuilder log)
head - head for logging lineslog - logging linespublic boolean isEnabled()
DtlsHealthisEnabled in interface DtlsHealthisEnabled in class org.eclipse.californium.elements.util.CounterStatisticManagertrue, if health is enabled, false, otherwise.public void startHandshake()
DtlsHealthstartHandshake in interface DtlsHealthpublic void endHandshake(boolean success)
DtlsHealthendHandshake in interface DtlsHealthsuccess - true for successful handshake, false for
failed handshake.public void receivingRecord(boolean drop)
DtlsHealthreceivingRecord in interface DtlsHealthdrop - true, if record is dropped, false, if record
is received.public void sendingRecord(boolean drop)
DtlsHealthsendingRecord in interface DtlsHealthdrop - true, if record is dropped, false, if record
is to be sent.Copyright © 2023 Eclipse Foundation. All rights reserved.