public final class AdvancedNetworkStats extends Object
ProtocolType
for a single direction of network traffic (inbound or outbound).
Stores number of bytes sent or received per ProtocolType
depending on whether it is
for inbound or outbound traffic. Works only when Advanced Networking is enabled and
EndpointConfig
is added for the ProtocolType
in question.
Constructor and Description |
---|
AdvancedNetworkStats() |
Modifier and Type | Method and Description |
---|---|
long |
getBytesTransceivedForProtocol(ProtocolType protocolType) |
void |
registerMetrics(MetricsRegistry metricsRegistry,
String prefix)
Dynamically registers probes for each protocol type.
|
void |
setBytesTransceivedForProtocol(ProtocolType protocolType,
long bytes) |
String |
toString() |
public void setBytesTransceivedForProtocol(ProtocolType protocolType, long bytes)
public long getBytesTransceivedForProtocol(ProtocolType protocolType)
public void registerMetrics(MetricsRegistry metricsRegistry, String prefix)
metricsRegistry
- MetricsRegistry
instance to register the probes onprefix
- prefix for the probe names to be registeredCopyright © 2020 Hazelcast, Inc.. All Rights Reserved.