com.esf.util.net.service
Interface INetworkUtilityService

All Known Implementing Classes:
Interface

public interface INetworkUtilityService

Utilities to check the status of a network link


Field Summary
static java.lang.String SERVICE_NAME
          service name of this interface for the bundle activator (com.esf.util.net.service)
 
Method Summary
 java.lang.String getIpAddress(java.lang.String ifaceName)
          gets the IP address for a specified interface.
 java.lang.String getMacAddress(java.lang.String ifaceName)
          gets the MAC address for a specified interface.
 boolean isLinkUp(java.lang.String ifaceName)
          checks to see if a valid link is present
 boolean isUp(java.lang.String ifaceName)
          checks to see if an interface is 'up'
 

Field Detail

SERVICE_NAME

public static final java.lang.String SERVICE_NAME
service name of this interface for the bundle activator (com.esf.util.net.service)

Method Detail

isUp

public boolean isUp(java.lang.String ifaceName)
checks to see if an interface is 'up'

Parameters:
ifaceName - the interface to check
Returns:
true if the interface is up, otherwise false

getIpAddress

public java.lang.String getIpAddress(java.lang.String ifaceName)
gets the IP address for a specified interface. In order for this to return a valid response the interface must be up

Parameters:
ifaceName - the interface to get the IP address of
Returns:
a String representing the IP address of the specified interface. null is returned if the interface is not up

isLinkUp

public boolean isLinkUp(java.lang.String ifaceName)
checks to see if a valid link is present

Parameters:
ifaceName - the interface to check
Returns:
true if a link is present, otherwise false

getMacAddress

public java.lang.String getMacAddress(java.lang.String ifaceName)
gets the MAC address for a specified interface. In order for this to return a valid response the interface must be up

Parameters:
ifaceName - the interface to get the MAC address of
Returns:
a String representing the MAC address of the specified interface. null is returned if the interface is not up


Copyright © 2009 Eurotech Inc. All rights reserved.