Class RootCommand<T>
java.lang.Object
com.linecorp.centraldogma.server.command.RootCommand<T>
- Type Parameters:
T
- the result type of aCommand
- All Implemented Interfaces:
Command<T>
- Direct Known Subclasses:
CreateProjectCommand
,ForcePushCommand
,PurgeProjectCommand
,RemoveProjectCommand
,UnremoveProjectCommand
,UpdateServerStatusCommand
A super class of the
Command
s which perform operations without a project or a repository.-
Method Summary
Modifier and TypeMethodDescriptionfinal Author
author()
Returns the author who initiated the command.boolean
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.int
hashCode()
final long
Returns the time when performing the command, in milliseconds.final String
toString()
final CommandType
type()
Returns theCommandType
of the command.
-
Method Details
-
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
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. -
equals
-
hashCode
public int hashCode() -
toString
-