Package org.eso.ias.cdb.structuredtext
Class CdbTxtFiles
java.lang.Object
org.eso.ias.cdb.structuredtext.CdbTxtFiles
- All Implemented Interfaces:
CdbFiles
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The extension of configuration files of the clientsfinal String
The extension of file namesfinal TextFileType
The types of the files in the CDBfinal String
The name of the file containing all the templatesfinal String
The name of the file containing all the IASIOsfinal String
The name of the file containing all the templatesfinal String
The name of the file containing all the transfer functions -
Constructor Summary
ConstructorDescriptionCdbTxtFiles
(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:
getCdbFileType
in interfaceCdbFiles
- Returns:
- The type of files in the CDB
-
getIasFilePath
- Specified by:
getIasFilePath
in interfaceCdbFiles
- Returns:
- The file to store ias configuration
- Throws:
IOException
- In case of IO error getting the path- See Also:
-
getSuperivisorFilePath
- Specified by:
getSuperivisorFilePath
in 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:
getDasuFilePath
in 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:
getAsceFilePath
in 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:
getIasioFilePath
in 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:
getTFFilePath
in 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:
getTemplateFilePath
in 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:
getClientFilePath
in 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:
getPluginFilePath
in 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
-