Class UpdateServerStatusCommand
java.lang.Object
com.linecorp.centraldogma.server.command.RootCommand<Void>
com.linecorp.centraldogma.server.command.UpdateServerStatusCommand
A
Command
which is used to update the status of all servers in the cluster.-
Constructor Summary
ConstructorDescriptionUpdateServerStatusCommand
(Long timestamp, Author author, ServerStatus serverStatus) Creates a new instance with the specified properties. -
Method Summary
Modifier and TypeMethodDescriptionfinal Author
author()
Returns the author who initiated the command.boolean
int
hashCode()
Returns the status of the server.final long
Returns the time when performing the command, in milliseconds.final String
toString()
final CommandType
type()
Returns theCommandType
of the command.Methods inherited from class com.linecorp.centraldogma.server.command.RootCommand
executionPath
-
Constructor Details
-
UpdateServerStatusCommand
public UpdateServerStatusCommand(@Nullable Long timestamp, @Nullable Author author, ServerStatus serverStatus) Creates a new instance with the specified properties.
-
-
Method Details
-
serverStatus
Returns the status of the server. -
equals
-
hashCode
public int hashCode() -
type
Description copied from interface:Command
Returns theCommandType
of the command. -
timestamp
public final long timestamp()Description copied from interface:Command
Returns the time when performing the command, in milliseconds. -
author
Description copied from interface:Command
Returns the author who initiated the command. -
toString
-