public class BmpTelemetryAdapter extends AbstractCollectionAdapter
bundleContext
adapterConfig, logParsingTimer, packetsPerLogHistogram
Constructor and Description |
---|
BmpTelemetryAdapter(AdapterDefinition adapterConfig,
com.codahale.metrics.MetricRegistry metricRegistry,
NodeDao nodeDao,
org.springframework.transaction.support.TransactionTemplate transactionTemplate) |
Modifier and Type | Method and Description |
---|---|
String |
getMetaDataNodeLookup() |
java.util.stream.Stream<CollectionSetWithAgent> |
handleCollectionMessage(TelemetryMessageLogEntry messageLogEntry,
TelemetryMessageLog messageLog)
Build a collection set from the given message.
|
void |
setCollectionAgentFactory(CollectionAgentFactory collectionAgentFactory) |
void |
setInterfaceToNodeCache(InterfaceToNodeCache interfaceToNodeCache) |
void |
setMetaDataNodeLookup(String metaDataNodeLookup) |
getThresholdingService, handleMessage, setBundleContext, setFilterDao, setPersisterFactory, setThresholdingService
destroy, handleMessageLog
public BmpTelemetryAdapter(AdapterDefinition adapterConfig, com.codahale.metrics.MetricRegistry metricRegistry, NodeDao nodeDao, org.springframework.transaction.support.TransactionTemplate transactionTemplate)
public java.util.stream.Stream<CollectionSetWithAgent> handleCollectionMessage(TelemetryMessageLogEntry messageLogEntry, TelemetryMessageLog messageLog)
AbstractCollectionAdapter
handleCollectionMessage
in class AbstractCollectionAdapter
messageLogEntry
- message to be converted into a collection setmessageLog
- message log to which the message belongsCollectionSetWithAgent
or an empty value if nothing
should be persistedpublic void setCollectionAgentFactory(CollectionAgentFactory collectionAgentFactory)
public void setInterfaceToNodeCache(InterfaceToNodeCache interfaceToNodeCache)
public String getMetaDataNodeLookup()
public void setMetaDataNodeLookup(String metaDataNodeLookup)
Copyright © 2021. All rights reserved.