public class NetConnection
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
NetConnection() |
Modifier and Type | Method and Description |
---|---|
void |
gather(Sigar sigar) |
java.lang.String |
getLocalAddress()
Get the local_address.
|
long |
getLocalPort()
Get the local_port.
|
long |
getReceiveQueue()
Get the receive_queue.
|
java.lang.String |
getRemoteAddress()
Get the remote_address.
|
long |
getRemotePort()
Get the remote_port.
|
long |
getSendQueue()
Get the send_queue.
|
int |
getState()
Get the state.
|
java.lang.String |
getStateString() |
static java.lang.String |
getStateString(int state) |
int |
getType()
Get the type.
|
java.lang.String |
getTypeString() |
java.util.Map |
toMap() |
java.lang.String |
toString() |
public void gather(Sigar sigar) throws SigarException
SigarException
public long getLocalPort()
Supported Platforms: Linux, FreeBSD, Solaris, Win32.
System equivalent commands:
netstat
public java.lang.String getLocalAddress()
Supported Platforms: Linux, FreeBSD, Solaris, Win32.
System equivalent commands:
netstat
public long getRemotePort()
Supported Platforms: Linux, FreeBSD, Solaris, Win32.
System equivalent commands:
netstat
public java.lang.String getRemoteAddress()
Supported Platforms: Linux, FreeBSD, Solaris, Win32.
System equivalent commands:
netstat
public int getType()
Supported Platforms: Linux, FreeBSD, Solaris, Win32.
System equivalent commands:
netstat
public int getState()
Supported Platforms: Linux, FreeBSD, Solaris, Win32.
System equivalent commands:
netstat
public long getSendQueue()
Supported Platforms: Linux, FreeBSD, Solaris.
System equivalent commands:
netstat
public long getReceiveQueue()
Supported Platforms: Linux, FreeBSD, Solaris.
System equivalent commands:
netstat
public java.lang.String getTypeString()
public static java.lang.String getStateString(int state)
public java.lang.String getStateString()
public java.util.Map toMap()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright ? 2004-2011 Hyperic. All Rights Reserved.