'Represent one MongoDB server.'

def __init__(self, server_description, pool, monitor, topology_id=None, listeners=None, events=None):

    self._description = server_description
    self._pool = pool
    self._monitor = monitor
    self._topology_id = topology_id
    self._publish = ((listeners is not None) and listeners.enabled_for_server)
    self._listener = listeners
    self._events = None
    if self._publish:
        self._events = events()
