Class TemplateKey
java.lang.Object
org.graylog.plugins.netflow.codecs.TemplateKey
The unique key for template flow ids, which is exporter source address and its obversation id (source ID)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
long
int
int
hashCode()
static TemplateKey
idForExporter
(SocketAddress remoteAddress, long sourceId) A key usable for identifying netflow exporters, when the template id is irrelevant.toString()
-
Constructor Details
-
TemplateKey
-
-
Method Details
-
idForExporter
A key usable for identifying netflow exporters, when the template id is irrelevant. This is used for grouping buffered packets by their exporter, because template ids are only unique across remote address and source id.- Parameters:
remoteAddress
- the exporters addresssourceId
- the observation id- Returns:
- object for use as cache key
-
equals
-
getRemoteAddress
-
getSourceId
public long getSourceId() -
getTemplateId
public int getTemplateId() -
hashCode
public int hashCode() -
toString
-