Package org.eso.ias.cdb.structuredtext
Class CdbTxtFiles
java.lang.Object
org.eso.ias.cdb.structuredtext.CdbTxtFiles
- All Implemented Interfaces:
CdbFiles
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe extension of configuration files of the clientsfinal StringThe extension of file namesfinal TextFileTypeThe types of the files in the CDBfinal StringThe name of the file containing all the templatesfinal StringThe name of the file containing all the IASIOsfinal StringThe name of the file containing all the templatesfinal StringThe name of the file containing all the transfer functions -
Constructor Summary
ConstructorsConstructorDescriptionCdbTxtFiles(File parentFolder, TextFileType fType) ConstructorCdbTxtFiles(String parentFolder, TextFileType fType) ConstructorCdbTxtFiles(Path parentFolder, TextFileType fType) Constructor -
Method Summary
Modifier and TypeMethodDescriptiongetAsceFilePath(String asceID) getClientFilePath(String clientID) getDasuFilePath(String dasuID) getIasioFilePath(String iasioID) getPluginFilePath(String clientID) getSuperivisorFilePath(String supervisorID) getTemplateFilePath(String templateID) getTFFilePath(String tfID)
-
Field Details
-
fileExtension
The extension of file names -
filesType
The types of the files in the CDB -
confFileExtension
The extension of configuration files of the clients- See Also:
-
iasFileName
The name of the file containing all the templates -
templatesFileName
The name of the file containing all the templates -
iasiosFileName
The name of the file containing all the IASIOs -
transferFunsFileName
The name of the file containing all the transfer functions
-
-
Constructor Details
-
CdbTxtFiles
Constructor- Parameters:
parentFolder- The stringified path of the parent folder of the CDBfType- The type of the text files- Throws:
IOException- If the passed folder i snot valid
-
CdbTxtFiles
Constructor- Parameters:
parentFolder- The path of the parent folder of the CDBfType- The type of the text files- Throws:
IOException- If the passed folder is not valid
-
CdbTxtFiles
Constructor- Parameters:
parentFolder- The file pointing to the parent folder of the CDBfType- The type of the text files- Throws:
IOException- If the passed folder is not valid
-
-
Method Details
-
getCdbFileType
- Specified by:
getCdbFileTypein interfaceCdbFiles- Returns:
- The type of files in the CDB
-
getIasFilePath
- Specified by:
getIasFilePathin interfaceCdbFiles- Returns:
- The file to store ias configuration
- Throws:
IOException- In case of IO error getting the path- See Also:
-
getSuperivisorFilePath
- Specified by:
getSuperivisorFilePathin interfaceCdbFiles- Parameters:
supervisorID- The ID of the supervisor- Returns:
- The path for the configuration of the supervisor with the passed ID
- Throws:
IOException- In case of IO error getting the path
-
getDasuFilePath
- Specified by:
getDasuFilePathin interfaceCdbFiles- Parameters:
dasuID- The ID of the DASU- Returns:
- The path for the configuration of the DASU with the passed ID
- Throws:
IOException- In case of IO error getting the path
-
getAsceFilePath
- Specified by:
getAsceFilePathin interfaceCdbFiles- Parameters:
asceID- The ID of the ASCE- Returns:
- The path for the configuration of the ASCE with the passed ID
- Throws:
IOException- In case of IO error getting the path
-
getIasioFilePath
- Specified by:
getIasioFilePathin interfaceCdbFiles- Parameters:
iasioID- The ID of the IASIO- Returns:
- The path for the configuration of the IASIO with the passed ID
- Throws:
IOException- In case of IO error getting the path
-
getTFFilePath
- Specified by:
getTFFilePathin interfaceCdbFiles- Parameters:
tfID- The ID of the transfer function- Returns:
- The path for the configuration of the TF with the passed ID
- Throws:
IOException- In case of IO error getting the path
-
getTemplateFilePath
- Specified by:
getTemplateFilePathin interfaceCdbFiles- Parameters:
templateID- The ID of the template- Returns:
- The path for the configuration of the template with the passed ID
- Throws:
IOException- In case of IO error getting the path
-
getClientFilePath
- Specified by:
getClientFilePathin interfaceCdbFiles- Parameters:
clientID- The identifier of the client- Returns:
- The path for the configuration of the client with the passed ID
- Throws:
IOException- In case of IO error getting the path
-
getPluginFilePath
- Specified by:
getPluginFilePathin interfaceCdbFiles- Parameters:
clientID- The identifier of the plugin- Returns:
- The path for the configuration of the plugin with the passed ID
- Throws:
IOException- In case of IO error getting the path
-