|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.sdsc.inca.agent.SuiteTable
public class SuiteTable
Stores the suites currently stored at the reporter agent and provides methods for accessing them. Suites are stored in a directory under their name and will be persistent.
Constructor Summary | |
---|---|
SuiteTable(java.lang.String directory,
edu.sdsc.inca.util.ResourcesWrapper resources)
Create new suite table and read in any existing suites from file. |
Method Summary | |
---|---|
edu.sdsc.inca.dataModel.suite.SuiteDocument[] |
applyResourceChanges(edu.sdsc.inca.util.ResourcesWrapper newResources)
Traverses thru all of its suites and applies the new resources file to each suite. |
java.lang.String |
getDirectory()
Get the directory where the suite table stores the suites to disk. |
java.lang.String[] |
getNames()
Return the names of the suites currently being stored. |
edu.sdsc.inca.util.SuiteStagesWrapper |
getSuite(java.lang.String suiteName)
Return the contents of the named suite. |
edu.sdsc.inca.util.SuiteStagesWrapper |
getSuite(java.lang.String suiteName,
edu.sdsc.inca.util.ResourcesWrapper resources)
Return the contents of the named suite. |
boolean |
hasSuite(java.lang.String suiteName)
Returns true if the named suite is currently stored in the object. |
void |
putSuite(edu.sdsc.inca.util.SuiteStagesWrapper suiteStages)
Store the named suite contained in the suiteStages object. |
void |
remove(java.lang.String suiteName)
Delete the named suite from storage. |
void |
setDirectory(java.lang.String directory)
Set the directory where the suites can be stored to disk. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SuiteTable(java.lang.String directory, edu.sdsc.inca.util.ResourcesWrapper resources)
directory
- Path to the directory where suite files can be stored.resources
- The resource configuration information.Method Detail |
---|
public edu.sdsc.inca.dataModel.suite.SuiteDocument[] applyResourceChanges(edu.sdsc.inca.util.ResourcesWrapper newResources)
newResources
- The new resource configuration information.
public java.lang.String getDirectory()
public boolean hasSuite(java.lang.String suiteName)
suiteName
- The name of the suite we're looking for.
public edu.sdsc.inca.util.SuiteStagesWrapper getSuite(java.lang.String suiteName)
suiteName
- The name of the suite to be retrieved.
public edu.sdsc.inca.util.SuiteStagesWrapper getSuite(java.lang.String suiteName, edu.sdsc.inca.util.ResourcesWrapper resources) throws org.apache.xmlbeans.XmlException, java.io.IOException, edu.sdsc.inca.util.CrypterException, edu.sdsc.inca.ConfigurationException
suiteName
- The name of the suite to be retrieved.resources
- The resource configuration information to be applied
to new suites.
org.apache.xmlbeans.XmlException
java.io.IOException
edu.sdsc.inca.util.CrypterException
edu.sdsc.inca.ConfigurationException
public void putSuite(edu.sdsc.inca.util.SuiteStagesWrapper suiteStages) throws edu.sdsc.inca.util.CrypterException, java.io.IOException
suiteStages
- The suiteStages object which contains the expanded
suite.
edu.sdsc.inca.util.CrypterException
java.io.IOException
public void remove(java.lang.String suiteName)
suiteName
- The name of the suite to be deleted.public java.lang.String[] getNames()
public void setDirectory(java.lang.String directory)
directory
- A string containing the path to a writeable directory.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |