org.rhq.core.system
Class NetworkAdapterInfo
java.lang.Object
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
.
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)
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 RHQ Project Advisory Board (Red Hat, Inc. and Hyperic, Inc.). All Rights Reserved.