@Test void getPreviousJustifiedEpochValue_shouldSupplyValueWhenStoreIsPresent() { beaconChainMetrics.onSlot(NODE_SLOT_VALUE); assertThat(metricsSystem.getGauge(BEACON, "previous_justified_epoch").getValue()) .isEqualTo(randomState.getPrevious_justified_checkpoint().getEpoch().longValue()); }
@Override public void onSlot(final UInt64 slot) { recentChainData.getBestState().ifPresent(this::updateMetrics); }
BeaconChainMetrics implements SlotEventsChannel { @Override public void onSlot(final UInt64 slot) { recentChainData.getBestState().ifPresent(this::updateMetrics); } }
BeaconChainMetrics implements SlotEventsChannel { @Override public void onSlot(final UInt64 slot) { recentChainData.getBestState().ifPresent(this::updateMetrics); } BeaconChainMetrics(
      final RecentChainData recentChainData,
      final NodeSlot nodeSlot,
      final MetricsSystem metricsSystem,
      final Eth2Network p2pNetwork); }
BeaconChainMetrics implements SlotEventsChannel { @Override public void onSlot(final UInt64 slot) { recentChainData.getBestState().ifPresent(this::updateMetrics); } BeaconChainMetrics(
      final RecentChainData recentChainData,
      final NodeSlot nodeSlot,
      final MetricsSystem metricsSystem,
      final Eth2Network p2pNetwork); @Override void onSlot(final UInt64 slot); }
BeaconChainMetrics implements SlotEventsChannel { @Override public void onSlot(final UInt64 slot) { recentChainData.getBestState().ifPresent(this::updateMetrics); } BeaconChainMetrics(
      final RecentChainData recentChainData,
      final NodeSlot nodeSlot,
      final MetricsSystem metricsSystem,
      final Eth2Network p2pNetwork); @Override void onSlot(final UInt64 slot);  }