protected void createPropertyProviders(Resource.Type type) {
List<PropertyProvider> providers = new LinkedList<PropertyProvider>();
if (type.equals(Resource.Type.Component)) {
providers.add(new JMXPropertyProvider(
SCOMMetricHelper.getJMXPropertyIds(type),
urlStreamProvider,
this,
PropertyHelper.getPropertyId("ServiceComponentInfo", "cluster_name"),
null,
PropertyHelper.getPropertyId("ServiceComponentInfo", "component_name"),
PropertyHelper.getPropertyId("ServiceComponentInfo", "state"),
Collections.singleton("STARTED")));
providers.add(new SQLPropertyProvider(
SCOMMetricHelper.getSqlServerPropertyIds(type),
this,
PropertyHelper.getPropertyId("ServiceComponentInfo", "cluster_name"),
null,
PropertyHelper.getPropertyId("ServiceComponentInfo", "component_name"),
connectionFactory));
} else if (type.equals(Resource.Type.HostComponent)) {
providers.add(new JMXPropertyProvider(
SCOMMetricHelper.getJMXPropertyIds(type),
urlStreamProvider,
this,
PropertyHelper.getPropertyId("HostRoles", "cluster_name"),
PropertyHelper.getPropertyId("HostRoles", "host_name"),