Class UpdateServerStatusCommand

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

public final class UpdateServerStatusCommand extends RootCommand<T>
A Command which is used to update the status of all servers in the cluster.
  • Constructor Details

    • UpdateServerStatusCommand

      public UpdateServerStatusCommand(@Nullable Long timestamp, @Nullable Author author, ServerStatus serverStatus)
      Creates a new instance with the specified properties.
  • Method Details

    • serverStatus

      public ServerStatus serverStatus()
      Returns the status of the server.
    • 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