public class SFlowTelemetryAdapter extends AbstractScriptedCollectionAdapter
bundleContext
adapterConfig, logParsingTimer, packetsPerLogHistogram
Constructor and Description |
---|
SFlowTelemetryAdapter(AdapterDefinition adapterConfig,
com.codahale.metrics.MetricRegistry metricRegistry) |
Modifier and Type | Method and Description |
---|---|
java.util.stream.Stream<CollectionSetWithAgent> |
handleCollectionMessage(TelemetryMessageLogEntry message,
TelemetryMessageLog messageLog)
Build a collection set from the given message.
|
void |
setCollectionAgentFactory(CollectionAgentFactory collectionAgentFactory) |
void |
setInterfaceToNodeCache(InterfaceToNodeCache interfaceToNodeCache) |
destroy, getCollectionBuilder, getScript, setScript
getThresholdingService, handleMessage, setBundleContext, setFilterDao, setPersisterFactory, setThresholdingService
handleMessageLog
public SFlowTelemetryAdapter(AdapterDefinition adapterConfig, com.codahale.metrics.MetricRegistry metricRegistry)
public java.util.stream.Stream<CollectionSetWithAgent> handleCollectionMessage(TelemetryMessageLogEntry message, TelemetryMessageLog messageLog)
AbstractCollectionAdapter
handleCollectionMessage
in class AbstractCollectionAdapter
message
- 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)
Copyright © 2021. All rights reserved.