(a) If the complainant does not appear at the district court when summoned, the person complained of may be discharged unless good cause to the contrary be shown.
(b) If both parties appear, the district court shall hear the proofs and allegations transmitted by the judge of the Superior Court and such other evidence as the parties may produce and may either discharge the defendant, or require an undertaking to keep the peace for a time not exceeding a year, in an amount not exceeding two thousand dollars.
(c) The sureties in an undertaking to keep the peace are entitled to the rights and authority of bail, as provided in Rule 46 of the Federal Rules of Criminal Procedure, and may be exonerated from their undertaking in the manner prescribed therein.
(d) An undertaking to keep the peace shall be taken and deemed to be an undertaking to be of good behavior, and cannot be required except as provided in this chapter.