Package org.opennms.netmgt.collectd
Class SnmpCollectionSetToCollectionSetDTOConverter
- java.lang.Object
-
- org.opennms.netmgt.collectd.SnmpCollectionSetToCollectionSetDTOConverter
-
public class SnmpCollectionSetToCollectionSetDTOConverter extends java.lang.Object
Converts a
SnmpCollectionSet
toCollectionSetDTO
. This is an immediate step in order to refactor the SnmpCollector to use theCollectionSetBuilder
.Usage:
new SnmpCollectionSetToCollectionSetDTOConverter().withParameters(params).convert(collectionSet)
-
-
Constructor Summary
Constructors Constructor Description SnmpCollectionSetToCollectionSetDTOConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addResourceToBuilder(CollectionSetBuilder builder, CollectionResource collectionResource)
CollectionSetDTO
convert(SnmpCollectionSet collectionSet)
SnmpCollectionSetToCollectionSetDTOConverter
withParameters(ServiceParameters params)
-
-
-
Method Detail
-
withParameters
public SnmpCollectionSetToCollectionSetDTOConverter withParameters(ServiceParameters params)
-
convert
public CollectionSetDTO convert(SnmpCollectionSet collectionSet)
-
addResourceToBuilder
public void addResourceToBuilder(CollectionSetBuilder builder, CollectionResource collectionResource)
-
-