com.neeve.emx
Class EmxNwLnkInetAddr

java.lang.Object
  extended by com.neeve.emx.EmxNwLnkInetAddr

public final class EmxNwLnkInetAddr
extends Object

Represents the address portion of a descriptor config string as an inet addr.

This class interprets the address portion of the config string in a Neeve network link descriptor as an inet address i.e. it parese the address as a string of the form host:port.

Threading:
This class is safe for concurrent access by multiple threads.

Field Summary
 String host
           
 int port
           
 
Method Summary
static EmxNwLnkInetAddr parse(String addr)
          Parse an inet addr string into its components.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

host

public final String host

port

public final int port
Method Detail

parse

public static EmxNwLnkInetAddr parse(String addr)
                              throws IllegalArgumentException
Parse an inet addr string into its components.

Parameters:
addr - The inet addr string.
Throws:
IllegalArgumentException - Thrown in case the addr string string is not of the format host:post


Copyright © 2015 Neeve Research, LLC. All Rights Reserved.