public class TagEngine extends Object implements Serializable
Modifier and Type | Method and Description |
---|---|
void |
add(String runId,
String[] tags)
Adds a set of tags for a run id to the tag engine.
|
static TagEngine |
getInstance()
Obtains the singleton instance of the tag engine.
|
void |
removeRun(String runId)
Removes a run from the tag engine.
|
void |
save()
Serializes the tag engine to file.
|
Set<String> |
search(String tags)
Searches the tag engine for runs matching the given tags.
|
Set<String> |
search(String[] tags)
Searches the tag engine for runs matching the given tags given
an array of tags.
|
public static TagEngine getInstance() throws IOException, ClassNotFoundException
IOException
- Error reading tag informationClassNotFoundException
- Error creating the singletonpublic void save()
public Set<String> search(String tags)
tags
- The tag in question, '/' seperated from sub-tagspublic Set<String> search(String[] tags)
tags
- The tags in question, '/' seperated from sub-tagspublic void removeRun(String runId)
runId
- The id of the runpublic void add(String runId, String[] tags)
runId
- The runIdtags
- The list of tags to add