public class MonitoringSocketImpl
extends java.net.SocketImpl
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ENCAPSULATED_SOCKET_IMPL |
Constructor and Description |
---|
MonitoringSocketImpl(MonitorRegistry registry) |
Modifier and Type | Method and Description |
---|---|
protected void |
accept(java.net.SocketImpl newSocket) |
protected int |
available() |
protected void |
bind(java.net.InetAddress address,
int port) |
protected void |
close() |
protected void |
connect(java.net.InetAddress address,
int port) |
protected void |
connect(java.net.SocketAddress remoteAddr,
int timeout) |
protected void |
connect(java.lang.String host,
int port) |
protected void |
create(boolean isStreaming) |
protected java.io.FileDescriptor |
getFileDescriptor() |
protected java.net.InetAddress |
getInetAddress() |
protected java.io.InputStream |
getInputStream() |
protected int |
getLocalPort() |
java.lang.String |
getMethod()
Returns the class and method name that asked for this socket impl to be
created.
|
java.lang.Object |
getOption(int optID) |
protected java.io.OutputStream |
getOutputStream() |
protected int |
getPort() |
boolean |
isHttp() |
protected void |
listen(int backlog) |
void |
readingDone() |
protected void |
sendUrgentData(int value) |
void |
setOption(int optID,
java.lang.Object val) |
protected void |
setPerformancePreferences(int connectionTime,
int latency,
int bandwidth) |
protected void |
shutdownInput() |
protected void |
shutdownOutput() |
protected boolean |
supportsUrgentData() |
public static final java.lang.String ENCAPSULATED_SOCKET_IMPL
public MonitoringSocketImpl(MonitorRegistry registry)
protected void create(boolean isStreaming) throws java.io.IOException
create
in class java.net.SocketImpl
java.io.IOException
protected void bind(java.net.InetAddress address, int port) throws java.io.IOException
bind
in class java.net.SocketImpl
java.io.IOException
protected void accept(java.net.SocketImpl newSocket) throws java.io.IOException
accept
in class java.net.SocketImpl
java.io.IOException
protected int available() throws java.io.IOException
available
in class java.net.SocketImpl
java.io.IOException
protected void connect(java.net.InetAddress address, int port) throws java.io.IOException
connect
in class java.net.SocketImpl
java.io.IOException
protected void connect(java.net.SocketAddress remoteAddr, int timeout) throws java.io.IOException
connect
in class java.net.SocketImpl
java.io.IOException
protected void connect(java.lang.String host, int port) throws java.io.IOException
connect
in class java.net.SocketImpl
java.io.IOException
protected void close() throws java.io.IOException
close
in class java.net.SocketImpl
java.io.IOException
public void readingDone()
protected java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in class java.net.SocketImpl
java.io.IOException
public java.lang.Object getOption(int optID) throws java.net.SocketException
java.net.SocketException
protected java.io.OutputStream getOutputStream() throws java.io.IOException
getOutputStream
in class java.net.SocketImpl
java.io.IOException
protected void listen(int backlog) throws java.io.IOException
listen
in class java.net.SocketImpl
java.io.IOException
protected void sendUrgentData(int value) throws java.io.IOException
sendUrgentData
in class java.net.SocketImpl
java.io.IOException
public void setOption(int optID, java.lang.Object val) throws java.net.SocketException
java.net.SocketException
protected java.io.FileDescriptor getFileDescriptor()
getFileDescriptor
in class java.net.SocketImpl
protected java.net.InetAddress getInetAddress()
getInetAddress
in class java.net.SocketImpl
protected int getLocalPort()
getLocalPort
in class java.net.SocketImpl
protected int getPort()
getPort
in class java.net.SocketImpl
protected void setPerformancePreferences(int connectionTime, int latency, int bandwidth)
setPerformancePreferences
in class java.net.SocketImpl
protected void shutdownInput() throws java.io.IOException
shutdownInput
in class java.net.SocketImpl
java.io.IOException
protected void shutdownOutput() throws java.io.IOException
shutdownOutput
in class java.net.SocketImpl
java.io.IOException
protected boolean supportsUrgentData()
supportsUrgentData
in class java.net.SocketImpl
public java.lang.String getMethod()
public boolean isHttp()