public interface ArtifactStorage<T>
| Modifier and Type | Method and Description |
|---|---|
T |
get(java.lang.String id)
Retrieves the model for the given id.
|
java.lang.String |
getTagForId(java.lang.String id)
Returns the tag that is part of the ID.
|
java.lang.String |
put(T entity,
java.lang.String tag)
Adds a new entity and returns the automatically created id.
|
void |
putToReserved(java.lang.String id,
T entity)
Adds a new entity to an already reserved slot.
|
boolean |
remove(java.lang.String id)
Removes the model with the passed id and returns whether the id was present.
|
java.lang.String |
reserve(java.lang.String tag)
Reserves a slot in the storage.
|
java.lang.String reserve(java.lang.String tag)
tag - The tag of the entity.void putToReserved(java.lang.String id,
T entity)
id - The ID of the slot.entity - The entity to be stored.java.lang.String put(T entity, java.lang.String tag)
entity - The entity to be stored.tag - The tag of the entity.T get(java.lang.String id)
id - The id of the model.WorkloadModel.boolean remove(java.lang.String id)
id - The id to be removed.true, if the passed id was present and successfully removed.java.lang.String getTagForId(java.lang.String id)
id - The ID containing the tag.