java.lang.Object
net.i2p.router.JobImpl
net.i2p.router.client.ReportAbuseJob
All Implemented Interfaces:
Job

class ReportAbuseJobextends JobImpl
Async job to send an abuse message to the client.
  • Field Details

    • _log

      private final Log _log
      Log for this job.
    • _runner

      private final ClientConnectionRunner _runner
      Client connection to send the abuse report to.
    • _dest

      private final Destination _dest
      Destination being reported for abuse.
    • _reason

      private final String _reason
      Description of the abuse reason.
    • _severity

      private final int _severity
      Severity level of the abuse report.
  • Constructor Details

    • ReportAbuseJob

      public ReportAbuseJob(RouterContext context, ClientConnectionRunner runner, Destination dest, String reason, int severity)
      Create abuse report.
      Parameters:
      context - the router context, whose log manager supplies this job's logger
      runner - the client connection the report will be sent to
      dest - the destination being reported, used to look up the session to report to
      reason - the human-readable description of the abuse
      severity - the numeric abuse severity level to report, 0-255
  • Method Details

    • getName

      public String getName()
      Return the name.
      Returns:
      the descriptive name of the task
    • runJob

      public void runJob()
      Execute the job.