Toolkit naming conventions
Toolkit names typically include a distinctive characteristic or common theme for all operators included in the toolkit.
Use the info.xml file to specify the name of the toolkit.
Follow these naming conventions for toolkit names:
- Use lowercase letters.
- Use a dot-separated sequence of characters, for example, com.teracloud.streams.db.
- Precede the name of the toolkit with the reverse domain name used by the organization that authors it, for example, com.teracloud.streams.db. This practice helps avoiding name clashes among different toolkits.
- Use the toolkit name as the name of the root directory where the toolkit is located.
Consider this toolkit information model that is included as a part of a database toolkit.
01: <toolkitInfoModel 02: xmlns="http://www.ibm.com/xmlns/prod/streams/spl/toolkitInfo" 03: xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 04: xsi:schemaLocation="http://www.ibm.com/xmlns/prod/streams/spl/toolkitInfo toolkitInfoModel.xsd"> 05: 06: <identity> 07: <name>com.teracloud.streams.db</name> 08: <description>Database Adapters Toolkit</description> 09: <version>1.0.0</version> 10: <requiredProductVersion>2.0</requiredProductVersion> 11: </identity> 12: <dependencies/> 13: </toolkitInfoModel>
The name of the toolkit (specified with the tag <name>) is com.teracloud.streams.db (line 7). The prefix com.teracloud.streams is common to all toolkits distributed with Teracloud® Streams, and the name db indicates that all operators in this toolkit are related to accessing databases.