|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcometa.combine.Combiner
public abstract class Combiner
This is an abstract class that defines the methods that must be implemented by every combination method class. Such classes are referenced by the element
refin the method's metadata.
Constructor Summary | |
---|---|
Combiner()
It creates a new instance of |
Method Summary | |
---|---|
abstract CombProc |
combineMetadata(Method method,
CombProc combProc)
This method must be implemented by all subclasses. |
java.lang.String |
convertEntities(java.lang.String input)
It converts the html entities (used to stored special characters in the XML database) to normal characters. |
java.lang.String |
executeCommand(java.lang.String command)
This method is used to run a shell command in a UNIX environment. |
java.lang.String |
getCurrentTimestamp()
It returns the current time, in milliseconds. |
java.lang.String |
getWorkingDirectory()
It returns the working directory string. |
void |
persist(java.lang.String dir)
This method must be called at the end of every |
void |
postProcessing()
The subclasses that extend this class must implement in |
java.lang.String |
reverseString(java.lang.String inputString)
This method reverses a given input string. |
void |
setWorkingDirectory(java.lang.String workingDirectory)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Combiner()
Combiner.
Method Detail |
---|
public java.lang.String executeCommand(java.lang.String command) throws java.io.IOException
command
- The command to execute.
java.io.IOException
- Throws an exception if something went wrong (usually, if the UNIX program could not be executed).public java.lang.String getCurrentTimestamp()
public java.lang.String convertEntities(java.lang.String input)
input
- A string.
public java.lang.String reverseString(java.lang.String inputString)
inputString
- The string to be reversed.
public void postProcessing()
postProcessingthe actions to be exectued at the end of the data combination phase.
public void persist(java.lang.String dir)
combineMetadatamethod. It serializes a copy of the current class, in order to save the information needed for the post processing.
dir
- The directory to which the file has to be written.public abstract CombProc combineMetadata(Method method, CombProc combProc)
super.setWorkingDirectory(dir);!
method
- The method according to which the metadata has to be combined.combProc
- The procedure containing the operations to be executed on the real data.
public java.lang.String getWorkingDirectory()
public void setWorkingDirectory(java.lang.String workingDirectory)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |