Class NodeAttributesProvider

java.lang.Object
com.atlassian.jira.plugin.cluster.monitoring.internal.NodeAttributesProvider

@Component @Conditional(IsClusteredCondition.class) public class NodeAttributesProvider extends Object
Generates customNodeAttributes for the node.
Since:
v8.9
  • Constructor Details

    • NodeAttributesProvider

      public NodeAttributesProvider(ClusteredCache clusteredCache, ClusterManager clusterManager, com.atlassian.sal.api.message.I18nResolver i18nResolver)
  • Method Details

    • getCustomNodeAttributes

      public List<com.atlassian.cluster.monitoring.spi.model.NodeInformation.CustomNodeAttribute> getCustomNodeAttributes(Node node)
      Generates customNodeAttributes for a node, consisting of NodeState and AppState. It may be the case that a node is no longer active, but ClusteredCache still contains an AppState that has not expired yet. Because of this, an AppState is only appended if NodeState is ACTIVE.
      Parameters:
      node - the node
      Returns:
      see above