@Entity public class CommandEntity extends BaseEntity
Constructor and Description |
---|
CommandEntity()
Default Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addApplication(ApplicationEntity application)
Append an application to the list of applications this command uses.
|
boolean |
equals(java.lang.Object o) |
java.util.Optional<java.lang.Integer> |
getMemory()
Get the default memory for a job using this command.
|
int |
hashCode() |
void |
removeApplication(ApplicationEntity application)
Remove an application from this command.
|
void |
setApplications(java.util.List<ApplicationEntity> applications)
Sets the applications for this command.
|
protected void |
setClusters(java.util.Set<ClusterEntity> clusters)
Set the clusters this command is available on.
|
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
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 java.util.Optional<java.lang.Integer> getMemory()
public void setApplications(@Nullable java.util.List<ApplicationEntity> applications) throws GeniePreconditionException
applications
- The application that this command usesGeniePreconditionException
- if the list of applications contains duplicatespublic void addApplication(@NotNull ApplicationEntity application) throws GeniePreconditionException
application
- The application to add. Not null.GeniePreconditionException
- If the application is a duplicate of an existing applicationpublic void removeApplication(@NotNull ApplicationEntity application)
application
- The application to remove. Not null.protected void setClusters(@Nullable java.util.Set<ClusterEntity> clusters)
clusters
- the clusterspublic boolean equals(java.lang.Object o)
equals
in class AuditEntity
public int hashCode()
hashCode
in class AuditEntity