public static class NetStat.BusyPort
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
NetStat.BusyPort.IPVersion
Enumerates the types of IP addresses supported.
|
static class |
NetStat.BusyPort.TcpState
TCP Connection states.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
commandLine()
Gets the long representation of the command.
|
java.net.InetSocketAddress |
localEndpoint()
Gets the local endpoint socket address.
|
long |
processId()
Gets the process id associated with this connection.
|
java.net.InetSocketAddress |
remoteEndpoint()
Gets the remote endpoint socket address.
|
java.lang.String |
shortCommand()
Gets the short representation of the command as provided
by the TCP connection information source.
|
NetStat.BusyPort.TcpState |
state()
Gets the state of this TCP connection.
|
java.lang.String |
toString() |
java.lang.String |
toString(java.lang.String fieldSeparator)
Produces a print-suitable string of this
BusyPort instance. |
public long processId()
public java.net.InetSocketAddress localEndpoint()
public java.net.InetSocketAddress remoteEndpoint()
localEndpoint()
is a listening port, the value returned uses a socket number of
zero and an IP address corresponding to a
wildcard address.public NetStat.BusyPort.TcpState state()
public java.lang.String shortCommand()
public java.lang.String commandLine()
nullpublic java.lang.String toString(java.lang.String fieldSeparator)
BusyPort instance. This method displays only
one of shortCommand or commandLine -- if commandLine is set, its value is
included; otherwise, the shortCommand value is used.fieldSeparator - the field separator to use; if null or empty, a single space is usedpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2022. All rights reserved.