java.lang.Object
net.i2p.router.web.ConfigServiceHandler.UpdateWrapperOrRekeyTask
All Implemented Interfaces:
Runnable
Enclosing class:
ConfigServiceHandler

private static class ConfigServiceHandler.UpdateWrapperOrRekeyTaskextends Object implements Runnable
Rekey and/or tell the wrapper we are stopping.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final Log
    Logger for the restart task.
    private final boolean
    True to change the router identity as well.
    private final boolean
    True to tell the wrapper service as well.
    private static final int
    Hash code identifying this task class.
    private static final int
    Time allowed for the restart to finish, longer on ARM.
  • Constructor Summary

    Constructors
    Constructor
    Description
    UpdateWrapperOrRekeyTask(boolean rekey, boolean tellWrapper)
    Builds the restart task.
  • Method Summary

    All Methods
    Modifier and Type
    Method
    Description
    boolean
    Make them all look the same since the hooks are stored in a set and we don't want dups.
    int
    Make them all look the same since the hooks are stored in a set and we don't want dups.
    void
    run()
     

    Methods inherited from class Object

    clone, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • _rekey

      private final boolean _rekey
      True to change the router identity as well.
    • _tellWrapper

      private final boolean _tellWrapper
      True to tell the wrapper service as well.
    • _log

      private final Log _log
      Logger for the restart task.
    • HASHCODE

      private static final int HASHCODE
      Hash code identifying this task class.
      See Also:
    • WAIT

      private static final int WAIT
      Time allowed for the restart to finish, longer on ARM.
  • Constructor Details

    • UpdateWrapperOrRekeyTask

      public UpdateWrapperOrRekeyTask(boolean rekey, boolean tellWrapper)
      Builds the restart task.
      Parameters:
      rekey - true to change the router identity as well
      tellWrapper - true to tell the wrapper service as well
  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable
    • hashCode

      public int hashCode()
      Make them all look the same since the hooks are stored in a set and we don't want dups.
      Overrides:
      hashCode in class Object
      Returns:
      whether h code is present
    • equals

      public boolean equals(Object o)
      Make them all look the same since the hooks are stored in a set and we don't want dups.
      Overrides:
      equals in class Object