Branch: refs/heads/release/jon3.3.x Home: https://github.com/rhq-project/rhq Commit: 2c9d503ddf972fd4a66ebd07ac402d2bb31af769 https://github.com/rhq-project/rhq/commit/2c9d503ddf972fd4a66ebd07ac402d2bb3... Author: Jay Shaughnessy jshaughn@redhat.com Date: 2014-10-13 (Mon, 13 Oct 2014)
Changed paths: M modules/enterprise/server/jar/src/main/java/org/rhq/enterprise/server/cloud/instance/ServerManagerBean.java
Log Message: ----------- [1151441] JON server was unexpectedly stopped Only resolve the identity of the running server (i.e. the SERVER_NAME) one time and cache it as a static for ServerManagerBean. This is more efficient as the server name can not change at runtime, and actually should not change for a defined server, ever, in general. Moreover, for server where rhq.server.high-availability.name is not set, it prevents repeated calls to InetAddress.getLocalhost(), which can fail if there is a temporary DNS issue, and the localhost can not be resolved.
(cherry picked from commit 4e66a36bd3be3d4d670bf161121988f255fdbeeb) Signed-off-by: Jay Shaughnessy jshaughn@redhat.com
rhq-commits@lists.fedorahosted.org