ecchronos icon indicating copy to clipboard operation
ecchronos copied to clipboard

Expose AgentJMXConnectionProvider on Connection and Application Module

Open VictorCavichioli opened this issue 8 months ago • 0 comments

Story Description: Based on class com.ericsson.bss.cassandra.ecchronos.application.DefaultJmxConnectionProvider, create in the same package a new class called DatacenterJmxConnectionProvider, this class must have a method to declare node status and populate the data on nodes_sync table, based on the configuration in connection.jmx.datacenterAware.datacenters.

Based on class com.ericsson.bss.cassandra.ecchronos.connection.impl.LocalJmxConnectionProvider create a new class called AgentJmxConnectionProvider, which will be returned on BeanConfigurator.java as JmxConnection when datacenterAware.enabled is true and the provider is DatacenterJmxConnectionProvider.

Based on that, changes is required on class BeanConfigurator.java for the new AgentConnection, and the JmxConnection.java should be modified to reflect the new provider.

Acceptance Criteria:

  • [ ] DatacenterJmxConnectionProvider class designed as described;
  • [ ] AgentJmxConnectionProvider class designed as described;
  • [ ] BeanConfigurator modified to use new JmxConnection;
  • [ ] JmxConnection.java modified to reflect new provider;
  • [ ] Introduce tests for the configuration and for the Connections.

Definition of Done:

Code designed as proposed, test cases passing and approved by maintainers.

Notes:

Depends on #675 and #672 Related with #652

VictorCavichioli avatar Jun 17 '24 15:06 VictorCavichioli