|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.admin.objects.MMScriptsContainer
public class MMScriptsContainer
Constructor Summary | |
---|---|
MMScriptsContainer()
|
Method Summary | |
---|---|
void |
addFile(java.lang.String fileName,
byte[] fileContents)
Add file contents by name. |
java.util.Collection |
getFileNames()
Get the file names of all scripts in this container. |
void |
saveAllToDirectory(java.lang.String directoryLocation,
AdminOptions options)
Save all of the scripts contained to the specified local directory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MMScriptsContainer()
Method Detail |
---|
public java.util.Collection getFileNames()
ScriptsContainer
getFileNames
in interface ScriptsContainer
Collection
of String
file names of all scripts in this container. This
collection may be empty if an error has occured.ScriptsContainer.getFileNames()
public void saveAllToDirectory(java.lang.String directoryLocation, AdminOptions options) throws AdminException
ScriptsContainer
saveAllToDirectory
in interface ScriptsContainer
directoryLocation
- the directory location to save
the contained scripts. Must be accessable from where
this code is running.options
- Specify whether to AdminOptions.OnConflict.OVERWRITE
or AdminOptions.OnConflict.EXCEPTION
(default) when script files
exist in the directoryLocation
.
AdminException
- if there's an error saving the files.ScriptsContainer.saveAllToDirectory(java.lang.String, AdminOptions)
public void addFile(java.lang.String fileName, byte[] fileContents) throws AdminComponentException
fileName
- - requiredfileContents
- - required
AdminComponentException
- if one of the required args are null or empty.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |