Record Class RegistryStatus
java.lang.Object
java.lang.Record
org.j7m.middleware.api.RegistryStatus
- Record Components:
recordCount- number of non-expired registry recordspeerCount- number of known registry peersmulticastListenerRunning- whether multicast discovery listener is activemulticastAdapterType- multicast adapter typemulticastEndpoint- safe multicast endpoint summarymulticastMessagesSent- multicast messages sentmulticastMessagesReceived- multicast messages receivedactiveDiscoveryQuestions- active in-flight discovery questionspeerGraphSize- known peer graph sizebootstrapHintCount- configured bootstrap hint countcontactedBootstrapPeerCount- contacted bootstrap peer countlookupCacheSize- cached lookup/list entry countmetrics- public discovery and statistics counterspeerIds- known peer idsrecentDiscoveryEvents- recent discovery event summariesrecentHpDecisions- recent HP selection summaries
public record RegistryStatus(int recordCount, int peerCount, boolean multicastListenerRunning, String multicastAdapterType, String multicastEndpoint, long multicastMessagesSent, long multicastMessagesReceived, int activeDiscoveryQuestions, int peerGraphSize, int bootstrapHintCount, int contactedBootstrapPeerCount, int lookupCacheSize, Map<String,Long> metrics, List<String> peerIds, List<String> recentDiscoveryEvents, List<String> recentHpDecisions)
extends Record
Immutable summary of the registry visible to a runtime.
-
Constructor Summary
ConstructorsConstructorDescriptionRegistryStatus(int recordCount, int peerCount) Creates a compatibility status with Phase 1 summary fields.RegistryStatus(int recordCount, int peerCount, boolean multicastListenerRunning, String multicastAdapterType, String multicastEndpoint, long multicastMessagesSent, long multicastMessagesReceived, int activeDiscoveryQuestions, int peerGraphSize, int bootstrapHintCount, int contactedBootstrapPeerCount, int lookupCacheSize, Map<String, Long> metrics, List<String> peerIds, List<String> recentDiscoveryEvents, List<String> recentHpDecisions) Creates immutable status collections. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theactiveDiscoveryQuestionsrecord component.intReturns the value of thebootstrapHintCountrecord component.intReturns the value of thecontactedBootstrapPeerCountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of thelookupCacheSizerecord component.metrics()Returns the value of themetricsrecord component.Returns the value of themulticastAdapterTyperecord component.Returns the value of themulticastEndpointrecord component.booleanReturns the value of themulticastListenerRunningrecord component.longReturns the value of themulticastMessagesReceivedrecord component.longReturns the value of themulticastMessagesSentrecord component.intReturns the value of thepeerCountrecord component.intReturns the value of thepeerGraphSizerecord component.peerIds()Returns the value of thepeerIdsrecord component.Returns the value of therecentDiscoveryEventsrecord component.Returns the value of therecentHpDecisionsrecord component.intReturns the value of therecordCountrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RegistryStatus
public RegistryStatus(int recordCount, int peerCount, boolean multicastListenerRunning, String multicastAdapterType, String multicastEndpoint, long multicastMessagesSent, long multicastMessagesReceived, int activeDiscoveryQuestions, int peerGraphSize, int bootstrapHintCount, int contactedBootstrapPeerCount, int lookupCacheSize, Map<String, Long> metrics, List<String> peerIds, List<String> recentDiscoveryEvents, List<String> recentHpDecisions) Creates immutable status collections. -
RegistryStatus
public RegistryStatus(int recordCount, int peerCount) Creates a compatibility status with Phase 1 summary fields.- Parameters:
recordCount- active record countpeerCount- known peer count
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
recordCount
public int recordCount()Returns the value of therecordCountrecord component.- Returns:
- the value of the
recordCountrecord component
-
peerCount
-
multicastListenerRunning
public boolean multicastListenerRunning()Returns the value of themulticastListenerRunningrecord component.- Returns:
- the value of the
multicastListenerRunningrecord component
-
multicastAdapterType
Returns the value of themulticastAdapterTyperecord component.- Returns:
- the value of the
multicastAdapterTyperecord component
-
multicastEndpoint
Returns the value of themulticastEndpointrecord component.- Returns:
- the value of the
multicastEndpointrecord component
-
multicastMessagesSent
public long multicastMessagesSent()Returns the value of themulticastMessagesSentrecord component.- Returns:
- the value of the
multicastMessagesSentrecord component
-
multicastMessagesReceived
public long multicastMessagesReceived()Returns the value of themulticastMessagesReceivedrecord component.- Returns:
- the value of the
multicastMessagesReceivedrecord component
-
activeDiscoveryQuestions
public int activeDiscoveryQuestions()Returns the value of theactiveDiscoveryQuestionsrecord component.- Returns:
- the value of the
activeDiscoveryQuestionsrecord component
-
peerGraphSize
public int peerGraphSize()Returns the value of thepeerGraphSizerecord component.- Returns:
- the value of the
peerGraphSizerecord component
-
bootstrapHintCount
public int bootstrapHintCount()Returns the value of thebootstrapHintCountrecord component.- Returns:
- the value of the
bootstrapHintCountrecord component
-
contactedBootstrapPeerCount
public int contactedBootstrapPeerCount()Returns the value of thecontactedBootstrapPeerCountrecord component.- Returns:
- the value of the
contactedBootstrapPeerCountrecord component
-
lookupCacheSize
public int lookupCacheSize()Returns the value of thelookupCacheSizerecord component.- Returns:
- the value of the
lookupCacheSizerecord component
-
metrics
-
peerIds
-
recentDiscoveryEvents
Returns the value of therecentDiscoveryEventsrecord component.- Returns:
- the value of the
recentDiscoveryEventsrecord component
-
recentHpDecisions
Returns the value of therecentHpDecisionsrecord component.- Returns:
- the value of the
recentHpDecisionsrecord component
-