Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improves performance of testing the jboss server connection
* Testing the connection of both teiid and its parent jboss server is a very frequent occurrence and as such needs to do as little as possible. The current implementation generates at least 2 thread runnables to return the jboss server name, which is never used. It is also slow, taking on average 1.5 - 3 seconds, with the possibility of using much needed memory / threads and other resources. Given the frequency of the operation, this is incredibly wasteful. * Scales back the connection test to determine the availability of the jboss management port on the jboss host. Each connection has a timeout of a second so a failure is returned quickly. Should this become as issue in the future then this timeout could be included as a preference. The socket is always closed and nulled to ensure it is garbage collected.
- Loading branch information
Paul Richardson
committed
Jul 29, 2013
1 parent
cc36fed
commit ef7c747
Showing
2 changed files
with
30 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters