add attr_writer :recv_endpoint, :pub_endpoint, :mongodb_host, :mongodb_port