diff --git a/dist/camel-xml2dsl-0.0.10.tar.gz b/dist/camel-xml2dsl-0.0.10.tar.gz deleted file mode 100644 index e8cada6..0000000 Binary files a/dist/camel-xml2dsl-0.0.10.tar.gz and /dev/null differ diff --git a/dist/camel_xml2dsl-0.0.10-py3-none-any.whl b/dist/camel_xml2dsl-0.0.10-py3-none-any.whl deleted file mode 100644 index cc7493f..0000000 Binary files a/dist/camel_xml2dsl-0.0.10-py3-none-any.whl and /dev/null differ diff --git a/setup.cfg b/setup.cfg index be3e2d9..69fab87 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = camel-xml2dsl -version = 0.0.10 +version = 0.0.11 author = Jorge Castro author_email = jorgecastro05@hotmail.com description = xml definition to dsl definition routes diff --git a/src/camel_xml2dsl.egg-info/PKG-INFO b/src/camel_xml2dsl.egg-info/PKG-INFO index 37cbd64..1353f8e 100644 --- a/src/camel_xml2dsl.egg-info/PKG-INFO +++ b/src/camel_xml2dsl.egg-info/PKG-INFO @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: camel-xml2dsl -Version: 0.0.10 +Version: 0.0.11 Summary: xml definition to dsl definition routes Home-page: https://github.com/jorgecastro05/script-aro.git Author: Jorge Castro diff --git a/src/xml2dsl/xml2dsl.py b/src/xml2dsl/xml2dsl.py index 638d956..3cc6f32 100755 --- a/src/xml2dsl/xml2dsl.py +++ b/src/xml2dsl/xml2dsl.py @@ -284,19 +284,20 @@ def delay_def(self, node): def threadPoolProfile_def(self, node): profileDef = '\nThreadPoolProfile profile = new ThreadPoolProfile();' if 'defaultProfile' in node.attrib: - profileDef += '\nprofile.setDefaultProfile(true);' + profileDef += '\nprofile.setDefaultProfile('+ node.attrib['defaultProfile']+');' if 'id' in node.attrib: - profileDef += '\nprofile.setId("threadPoolCrw15");' + profileDef += '\nprofile.setId("'+ node.attrib['id']+'");' if 'keepAliveTime' in node.attrib: - profileDef += '\nprofile.setKeepAliveTime(25L);' + profileDef += '\nprofile.setKeepAliveTime('+ node.attrib['keepAliveTime']+'L);' if 'maxPoolSize' in node.attrib: - profileDef += '\nprofile.setMaxPoolSize(15);' + profileDef += '\nprofile.setMaxPoolSize('+ node.attrib['maxPoolSize'] +');' if 'maxQueueSize' in node.attrib: - profileDef += '\nprofile.setMaxQueueSize(250);' + profileDef += '\nprofile.setMaxQueueSize('+ node.attrib['maxQueueSize']+');' if 'poolSize' in node.attrib: - profileDef += '\nprofile.setPoolSize(5);' + profileDef += '\nprofile.setPoolSize('+ node.attrib['poolSize']+');' if 'rejectedPolicy' in node.attrib: - profileDef += '\nprofile.setRejectedPolicy(ThreadPoolRejectedPolicy.Abort);' + if node.attrib['rejectedPolicy'] == 'Abort': + profileDef += '\nprofile.setRejectedPolicy(ThreadPoolRejectedPolicy.Abort);' return profileDef if __name__ == "__main__":