com.esf.util.net
Class Interface

java.lang.Object
  extended bycom.esf.util.net.Interface
All Implemented Interfaces:
INetworkUtilityService

public class Interface
extends java.lang.Object
implements INetworkUtilityService


Field Summary
 
Fields inherited from interface com.esf.util.net.service.INetworkUtilityService
SERVICE_NAME
 
Constructor Summary
Interface()
           
 
Method Summary
 void bind(IEsfLoggerService esfLoggerService, IBootstrapService bootstrapService)
           
 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'
 void unbind()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Interface

public Interface()
Method Detail

bind

public void bind(IEsfLoggerService esfLoggerService,
                 IBootstrapService bootstrapService)

unbind

public void unbind()

isUp

public boolean isUp(java.lang.String ifaceName)
Description copied from interface: INetworkUtilityService
checks to see if an interface is 'up'

Specified by:
isUp in interface INetworkUtilityService
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)
Description copied from interface: INetworkUtilityService
gets the IP address for a specified interface. In order for this to return a valid response the interface must be up

Specified by:
getIpAddress in interface INetworkUtilityService
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)
Description copied from interface: INetworkUtilityService
checks to see if a valid link is present

Specified by:
isLinkUp in interface INetworkUtilityService
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)
Description copied from interface: INetworkUtilityService
gets the MAC address for a specified interface. In order for this to return a valid response the interface must be up

Specified by:
getMacAddress in interface INetworkUtilityService
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.