Source code for zlogging.enum.Cluster
# -*- coding: utf-8 -*-
# pylint: disable=line-too-long
"""Namespace: ``Cluster``."""
from zlogging._compat import enum
[docs]@enum.unique
class NodeType(enum.IntFlag):
"""Enum: ``Cluster::NodeType``.
Types of nodes that are allowed to participate in the cluster configuration.
See Also:
`base/frameworks/cluster/main.zeek <https://docs.zeek.org/en/stable/scripts/base/frameworks/cluster/main.zeek.html#type-Cluster::NodeType>`__
"""
_ignore_ = 'NodeType _'
NodeType = vars()
#: A dummy node type indicating the local node is not operating
#: within a cluster.
NONE = enum.auto()
#: A node type which is allowed to view/manipulate the configuration
#: of other nodes in the cluster.
CONTROL = enum.auto()
#: A node type responsible for log management.
LOGGER = enum.auto()
#: A node type responsible for policy management.
MANAGER = enum.auto()
#: A node type for relaying worker node communication and synchronizing
#: worker node state.
PROXY = enum.auto()
#: The node type doing all the actual traffic analysis.
WORKER = enum.auto()
#: A node acting as a traffic recorder using the
#: Time Machine
#: software.
TIME_MACHINE = enum.auto()