org.perf.log.utils
Class RuntimeEnvHelper

java.lang.Object
  extended by org.perf.log.utils.RuntimeEnvHelper

public class RuntimeEnvHelper
extends java.lang.Object

Singleton helper class to acquire hostname, ip and JVM name


Method Summary
 java.lang.String getCloneName()
          method to return the current cloneName / instance of the server (JVM)
 java.lang.String getHostAndIP()
           
 java.lang.String getHostName()
          Returns the hostname for the local server
static RuntimeEnvHelper getInstance()
          Returns the singleton instance of the class
 java.lang.String getIpAddress()
          Returns the IP Address for the local server
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getHostAndIP

public java.lang.String getHostAndIP()

getHostName

public java.lang.String getHostName()
Returns the hostname for the local server

Returns:

getIpAddress

public java.lang.String getIpAddress()
Returns the IP Address for the local server

Returns:

getInstance

public static RuntimeEnvHelper getInstance()
Returns the singleton instance of the class

Returns:

getCloneName

public java.lang.String getCloneName()
method to return the current cloneName / instance of the server (JVM)

Returns:
cloneName for the current instance