@Entity public class ClusterEntity extends BaseEntity implements ClusterCommandsProjection
Constructor and Description |
---|
ClusterEntity()
Default Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addCommand(CommandEntity command)
Add a new command to this cluster.
|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
void |
removeAllCommands()
Remove all the commands from this application.
|
void |
removeCommand(CommandEntity command)
Remove a command from this cluster.
|
void |
setCommands(java.util.List<CommandEntity> commands)
Sets the commands for this cluster.
|
void |
setConfigs(java.util.Set<FileEntity> configs)
Set all the files associated as configuration files for this cluster.
|
void |
setDependencies(java.util.Set<FileEntity> dependencies)
Set all the files associated as dependency files for this cluster.
|
void |
setTags(java.util.Set<TagEntity> tags)
Set all the tags associated to this cluster.
|
getDescription, getMetadata, getSetupFile, setDescription, setMetadata, setSetupFile
getCreated, getUpdated, onCreateBaseEntity, onUpdateBaseEntity
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getCommands
getName, getUniqueId, getUser, getVersion
getCreated, getUpdated
getId
public void setConfigs(@Nullable java.util.Set<FileEntity> configs)
configs
- The configuration files to setpublic void setDependencies(@Nullable java.util.Set<FileEntity> dependencies)
dependencies
- The dependency files to setpublic void setTags(@Nullable java.util.Set<TagEntity> tags)
tags
- The dependency tags to setpublic void setCommands(@Nullable java.util.List<CommandEntity> commands) throws GeniePreconditionException
commands
- The commands that this cluster supportsGeniePreconditionException
- If the commands are already added to the listpublic void addCommand(@NotNull CommandEntity command) throws GeniePreconditionException
command
- The command to add. Not null.GeniePreconditionException
- If the command is a duplicate of an existing commandpublic void removeCommand(@NotNull CommandEntity command)
command
- The command to remove. Not null.public void removeAllCommands()
public boolean equals(java.lang.Object o)
equals
in class AuditEntity
public int hashCode()
hashCode
in class AuditEntity