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
SigarExceptionpublic long getLocalPort()
Supported Platforms: Linux, FreeBSD, Solaris, Win32.
System equivalent commands:
netstatpublic java.lang.String getLocalAddress()
Supported Platforms: Linux, FreeBSD, Solaris, Win32.
System equivalent commands:
netstatpublic long getRemotePort()
Supported Platforms: Linux, FreeBSD, Solaris, Win32.
System equivalent commands:
netstatpublic java.lang.String getRemoteAddress()
Supported Platforms: Linux, FreeBSD, Solaris, Win32.
System equivalent commands:
netstatpublic int getType()
Supported Platforms: Linux, FreeBSD, Solaris, Win32.
System equivalent commands:
netstatpublic int getState()
Supported Platforms: Linux, FreeBSD, Solaris, Win32.
System equivalent commands:
netstatpublic long getSendQueue()
Supported Platforms: Linux, FreeBSD, Solaris.
System equivalent commands:
netstatpublic long getReceiveQueue()
Supported Platforms: Linux, FreeBSD, Solaris.
System equivalent commands:
netstatpublic 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.ObjectCopyright ? 2004-2011 Hyperic. All Rights Reserved.