me.moocar.logbackgelf.util
Class InternetUtils

java.lang.Object
  extended by me.moocar.logbackgelf.util.InternetUtils

public class InternetUtils
extends Object


Method Summary
static InetAddress getInetAddress(String hostName)
          Gets the Inet address for the graylog2ServerHost and gives a specialised error message if an exception is thrown
static String getLocalHostName()
          Retrieves the localhost's hostname, or if unavailable, the ip address
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getLocalHostName

public static String getLocalHostName()
                               throws SocketException,
                                      UnknownHostException
Retrieves the localhost's hostname, or if unavailable, the ip address

Throws:
SocketException
UnknownHostException

getInetAddress

public static InetAddress getInetAddress(String hostName)
Gets the Inet address for the graylog2ServerHost and gives a specialised error message if an exception is thrown

Returns:
The Inet address for graylog2ServerHost


Copyright © 2011-2014. All Rights Reserved.