Class ForcePushCommand<T>

java.lang.Object
com.linecorp.centraldogma.server.command.RootCommand<T>
com.linecorp.centraldogma.server.command.ForcePushCommand<T>
All Implemented Interfaces:
Command<T>

public final class ForcePushCommand<T> extends RootCommand<T>
A Command which is used to force-push delegate even the server is in read-only mode. This command is useful for migrating the repository content during maintenance mode.
  • Method Details

    • delegate

      public Command<T> delegate()
      Returns the Command to be force-pushed.
    • equals

      public boolean equals(Object o)
    • hashCode

      public int hashCode()
    • type

      public final CommandType type()
      Description copied from interface: Command
      Returns the CommandType of the command.
      Specified by:
      type in interface Command<T>
    • timestamp

      public final long timestamp()
      Description copied from interface: Command
      Returns the time when performing the command, in milliseconds.
      Specified by:
      timestamp in interface Command<T>
    • author

      public final Author author()
      Description copied from interface: Command
      Returns the author who initiated the command.
      Specified by:
      author in interface Command<T>
    • toString

      public final String toString()
      Overrides:
      toString in class Object