java.lang.AutoCloseable, java.io.CloseableDomainPeerServer, TcpPeerServer@Private
public interface PeerServer
extends java.io.Closeable
| Modifier and Type | Method | Description |
|---|---|---|
org.apache.hadoop.hdfs.net.Peer |
accept() |
Listens for a connection to be made to this server and accepts
it.
|
void |
close() |
Free the resources associated with this peer server.
|
java.lang.String |
getListeningString() |
|
int |
getReceiveBufferSize() |
Get the receive buffer size of the PeerServer.
|
void |
setReceiveBufferSize(int size) |
Set the receive buffer size of the PeerServer.
|
void setReceiveBufferSize(int size)
throws java.io.IOException
size - The receive buffer size.java.io.IOExceptionint getReceiveBufferSize()
throws java.io.IOException
java.io.IOExceptionorg.apache.hadoop.hdfs.net.Peer accept()
throws java.io.IOException,
java.net.SocketTimeoutException
java.io.IOException - if an I/O error occurs when waiting for a
connection.java.lang.SecurityException - if a security manager exists and its
checkAccept method doesn't allow the operation.java.net.SocketTimeoutException - if a timeout was previously set and
the timeout has been reached.java.lang.String getListeningString()
void close()
throws java.io.IOException
close in interface java.lang.AutoCloseableclose in interface java.io.Closeablejava.io.IOException - If there is an error closing the PeerServerCopyright © 2008–2025 Apache Software Foundation. All rights reserved.