de.flapdoodle.embedmongo.runtime
Class Network

java.lang.Object
  extended by de.flapdoodle.embedmongo.runtime.Network

public class Network
extends Object


Field Summary
static int IP_LENGTH
           
 
Method Summary
static int getFreeServerPort()
           
static int getFreeServerPort(InetAddress hostAdress)
           
static InetAddress getLocalHost()
           
static boolean localhostIsIPv6()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IP_LENGTH

public static final int IP_LENGTH
See Also:
Constant Field Values
Method Detail

localhostIsIPv6

public static boolean localhostIsIPv6()
                               throws UnknownHostException
Throws:
UnknownHostException

getLocalHost

public static InetAddress getLocalHost()
                                throws UnknownHostException
Throws:
UnknownHostException

getFreeServerPort

public static int getFreeServerPort()
                             throws IOException
Throws:
IOException

getFreeServerPort

public static int getFreeServerPort(InetAddress hostAdress)
                             throws IOException
Throws:
IOException


Copyright © 2012. All Rights Reserved.