org.rhq.core.system
Class NetworkAdapterInfo

java.lang.Object
  extended by org.rhq.core.system.NetworkAdapterInfo

public class NetworkAdapterInfo
extends Object

Provides information on a network adapater.

Users of this object should expect possible null values for some of these fields, in the case when some of the values are unknown or undetectable on the platform. For example, on platforms without native support, the MAC address will not be detectable and, since it is unknown, will be null.


Nested Class Summary
static class NetworkAdapterInfo.OperationState
           
 
Constructor Summary
NetworkAdapterInfo(org.hyperic.sigar.NetInterfaceConfig a)
           
NetworkAdapterInfo(String name, String displayName, String description, String macAddress, String type, String operationalStatus, Boolean dhcpEnabled, List<InetAddress> dnsServers, List<InetAddress> unicastAddresses, List<InetAddress> multicastAddresses)
           
 
Method Summary
 String getAllFlags()
           
 String getDescription()
           
 String getDisplayName()
           
 List<InetAddress> getDnsServers()
           
 byte[] getMacAddressBytes()
           
 String getMacAddressString()
           
 List<InetAddress> getMulticastAddresses()
           
 String getName()
           
 NetworkAdapterInfo.OperationState getOperationalStatus()
           
 String getType()
           
 List<InetAddress> getUnicastAddresses()
           
 Boolean isDhcpEnabled()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NetworkAdapterInfo

public NetworkAdapterInfo(String name,
                          String displayName,
                          String description,
                          String macAddress,
                          String type,
                          String operationalStatus,
                          Boolean dhcpEnabled,
                          List<InetAddress> dnsServers,
                          List<InetAddress> unicastAddresses,
                          List<InetAddress> multicastAddresses)

NetworkAdapterInfo

public NetworkAdapterInfo(org.hyperic.sigar.NetInterfaceConfig a)
Method Detail

getName

public String getName()

getDisplayName

public String getDisplayName()

getDescription

public String getDescription()

getAllFlags

public String getAllFlags()

getMacAddressString

public String getMacAddressString()

getMacAddressBytes

public byte[] getMacAddressBytes()

getType

public String getType()

getOperationalStatus

public NetworkAdapterInfo.OperationState getOperationalStatus()

isDhcpEnabled

public Boolean isDhcpEnabled()

getDnsServers

public List<InetAddress> getDnsServers()

getUnicastAddresses

public List<InetAddress> getUnicastAddresses()

getMulticastAddresses

public List<InetAddress> getMulticastAddresses()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2008-2009 RHQ Project Advisory Board (Red Hat, Inc.). All Rights Reserved.