Class RootCommand<T>

java.lang.Object
com.linecorp.centraldogma.server.command.RootCommand<T>
Type Parameters:
T - the result type of a Command
All Implemented Interfaces:
Command<T>
Direct Known Subclasses:
CreateProjectCommand, ForcePushCommand, PurgeProjectCommand, RemoveProjectCommand, UnremoveProjectCommand, UpdateServerStatusCommand

public abstract class RootCommand<T> extends Object
A super class of the Commands which perform operations without a project or a repository.
  • Method Details

    • executionPath

      public String executionPath()
      Description copied from interface: Command
      Returns the target that the command is supposed to affect, i.e. the project name for the commands affecting to the project, or the project and repository names for the commands affecting to the repository.
    • 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>
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

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