|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.faban.harness.webclient.TagEngine
public class TagEngine
This class maintains the tags to runs mapping.
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static TagEngine getInstance()
throws IOException,
ClassNotFoundException
IOException - Error reading tag information
ClassNotFoundException - Error creating the singletonpublic void save()
public Set<String> search(String tags)
tags - The tag in question, '/' seperated from sub-tags
public Set<String> search(String[] tags)
tags - The tags in question, '/' seperated from sub-tags
public void removeRun(String runId)
runId - The id of the run
public void add(String runId,
String[] tags)
runId - The runIdtags - The list of tags to add
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||