|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--uk.org.ogsadai.client.toolkit.activity.RequestComponent
|
+--uk.org.ogsadai.client.toolkit.activity.Activity
|
+--uk.org.ogsadai.client.toolkit.activity.indexedfiles.AddAndIndexFile
This activity adds a flat file to a file system data resource and indexes it. Please ensure that the following values are set before the activity is performed:
| Constructor Summary | |
AddAndIndexFile()
Default constructor. |
|
AddAndIndexFile(java.lang.String filename,
java.lang.String dirname)
Constructs the activity. |
|
| Method Summary | |
protected java.lang.String |
generateXML()
Generates the XML representing the activity. |
java.lang.String |
getDirectory()
Gets the directory where the new file will be placed. |
java.lang.String[] |
getFields()
Return the indexed fields. |
java.lang.String |
getFilename()
Gets the name of the new file. |
java.lang.String |
getFiletype()
Gets the type of flat file that is being indexed. |
java.lang.String |
getIndex()
Return the directory where the index will be placed. |
void |
setFields(java.lang.String[] fields)
Set the indexed fields. |
void |
setFile(java.lang.String filename,
java.lang.String directory)
Sets the name of the new file within the data resource. |
void |
setFiletype(java.lang.String filetype)
Sets the type of the flat file. |
void |
setIndex(java.lang.String index)
Sets the directory where the index will be placed. |
void |
setInput(ActivityOutput input)
Sets the input stream of this activity. |
| Methods inherited from class uk.org.ogsadai.client.toolkit.activity.Activity |
addInput, addOutput, addOutputs, getDataResourceID, getDataServiceStub, getInputParameters, getOutputParameters, getOutputs, replaceSpecialCharacters, setDataResourceID, setDataServiceStub, setInput |
| Methods inherited from class uk.org.ogsadai.client.toolkit.activity.RequestComponent |
getName |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AddAndIndexFile()
public AddAndIndexFile(java.lang.String filename,
java.lang.String dirname)
filename - the name of the file that is added to the file systemdirname - the directed where the new file will be placed| Method Detail |
public void setFile(java.lang.String filename,
java.lang.String directory)
filename - the name of the new filepublic void setFiletype(java.lang.String filetype)
filetype - a String, one of the flat file
types that the service supports.public java.lang.String getFiletype()
public java.lang.String getFilename()
public java.lang.String getDirectory()
public void setInput(ActivityOutput input)
input - an ActivityOutput from another activity,
for example a delivery activity
java.lang.IllegalArgumentException - if the argument is nullpublic java.lang.String getIndex()
public void setIndex(java.lang.String index)
index - The index directory, relative to the root of the file system
data resource.public void setFields(java.lang.String[] fields)
fields - an array of String, names of the fields that will
be indexedpublic java.lang.String[] getFields()
protected java.lang.String generateXML()
RequestComponent
generateXML in class Activity
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||