mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
plugin: Add component enums for pluggable cluster backends
This commit is contained in:
parent
349d88153f
commit
35eadf0ceb
2 changed files with 18 additions and 9 deletions
|
@ -39,6 +39,12 @@ void Component::Describe(ODesc* d) const {
|
|||
|
||||
case component::SESSION_ADAPTER: d->Add("Session Adapter"); break;
|
||||
|
||||
case component::CLUSTER_BACKEND: d->Add("Cluster Backend"); break;
|
||||
|
||||
case component::EVENT_SERIALIZER: d->Add("Event Serializer"); break;
|
||||
|
||||
case component::LOG_SERIALIZER: d->Add("Log Serializer"); break;
|
||||
|
||||
default:
|
||||
reporter->InternalWarning("unknown component type in plugin::Component::Describe");
|
||||
d->Add("<unknown component type>");
|
||||
|
|
|
@ -21,15 +21,18 @@ namespace component {
|
|||
* Component types.
|
||||
*/
|
||||
enum Type {
|
||||
READER, /// An input reader (not currently used).
|
||||
WRITER, /// A logging writer (not currently used).
|
||||
ANALYZER, /// A protocol analyzer.
|
||||
PACKET_ANALYZER, /// A packet analyzer.
|
||||
FILE_ANALYZER, /// A file analyzer.
|
||||
IOSOURCE, /// An I/O source, excluding packet sources.
|
||||
PKTSRC, /// A packet source.
|
||||
PKTDUMPER, /// A packet dumper.
|
||||
SESSION_ADAPTER, /// A session adapter analyzer.
|
||||
READER, /// An input reader (not currently used).
|
||||
WRITER, /// A logging writer (not currently used).
|
||||
ANALYZER, /// A protocol analyzer.
|
||||
PACKET_ANALYZER, /// A packet analyzer.
|
||||
FILE_ANALYZER, /// A file analyzer.
|
||||
IOSOURCE, /// An I/O source, excluding packet sources.
|
||||
PKTSRC, /// A packet source.
|
||||
PKTDUMPER, /// A packet dumper.
|
||||
SESSION_ADAPTER, /// A session adapter analyzer.
|
||||
CLUSTER_BACKEND, /// A cluster backend.
|
||||
EVENT_SERIALIZER, /// A serializer for events, used by cluster backends.
|
||||
LOG_SERIALIZER, /// A serializer for log batches, used by cluster backends.
|
||||
};
|
||||
|
||||
} // namespace component
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue