Class ObserveStatisticLogger
java.lang.Object
org.eclipse.californium.elements.util.CounterStatisticManager
org.eclipse.californium.core.observe.ObserveStatisticLogger
- All Implemented Interfaces:
ObserveHealth
public class ObserveStatisticLogger
extends org.eclipse.californium.elements.util.CounterStatisticManager
implements ObserveHealth
Observe health implementation using counter and logging for result.
- Since:
- 3.6
-
Field Summary
Fields inherited from class org.eclipse.californium.elements.util.CounterStatisticManager
align, tag
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dump()
boolean
void
Report a received cancel-observe request.void
Report a received observe request.void
Report a received reject for a notification.void
setObserveEndpoints
(int observeEndpoints) Report current number of observing endpoints.void
setObserveRelations
(int observeRelations) Report current number of observe relations.Methods inherited from class org.eclipse.californium.elements.util.CounterStatisticManager
add, add, addByKey, get, getByKey, getCounter, getCounterByKey, getKeys, getLastTransferTime, getTag, removeByKey, removeByKey, reset, start, stop, transferCounter
-
Constructor Details
-
ObserveStatisticLogger
Create health logger.- Parameters:
tag
- logging tag
-
-
Method Details
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in classorg.eclipse.californium.elements.util.CounterStatisticManager
-
dump
public void dump()- Specified by:
dump
in classorg.eclipse.californium.elements.util.CounterStatisticManager
-
setObserveRelations
public void setObserveRelations(int observeRelations) Description copied from interface:ObserveHealth
Report current number of observe relations.- Specified by:
setObserveRelations
in interfaceObserveHealth
- Parameters:
observeRelations
- current number of observe relations
-
setObserveEndpoints
public void setObserveEndpoints(int observeEndpoints) Description copied from interface:ObserveHealth
Report current number of observing endpoints.- Specified by:
setObserveEndpoints
in interfaceObserveHealth
- Parameters:
observeEndpoints
- current number of observing endpoints
-
receivingObserveRequest
public void receivingObserveRequest()Description copied from interface:ObserveHealth
Report a received observe request.- Specified by:
receivingObserveRequest
in interfaceObserveHealth
-
receivingCancelRequest
public void receivingCancelRequest()Description copied from interface:ObserveHealth
Report a received cancel-observe request.- Specified by:
receivingCancelRequest
in interfaceObserveHealth
-
receivingReject
public void receivingReject()Description copied from interface:ObserveHealth
Report a received reject for a notification.- Specified by:
receivingReject
in interfaceObserveHealth
-