@Entity public class CommandEntity extends BaseEntity
Constructor and Description |
---|
CommandEntity()
Default Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addApplication(@NotNull 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(@NotNull 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 |
setExecutable(@NotEmpty java.util.List<java.lang.String> executable)
Set the executable and any default arguments for this command.
|
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, getUser, getVersion
getUniqueId
getCreated, getUpdated
getId
public void setExecutable(@NotEmpty @NotEmpty java.util.List<java.lang.String> executable)
executable
- The executable and default arguments which can't be blank and there must be at least onepublic 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 @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 @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 BaseEntity
public int hashCode()
hashCode
in class BaseEntity