java.io.Closeable, java.lang.AutoCloseable, PeerServer@Private public class DomainPeerServer extends java.lang.Object implements PeerServer
| Constructor | Description |
|---|---|
DomainPeerServer(java.lang.String path,
int port) |
| 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 |
getBindPath() |
|
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.
|
java.lang.String |
toString() |
public DomainPeerServer(java.lang.String path,
int port)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getBindPath()
public void setReceiveBufferSize(int size)
throws java.io.IOException
PeerServersetReceiveBufferSize in interface PeerServersize - The receive buffer size.java.io.IOExceptionpublic int getReceiveBufferSize()
throws java.io.IOException
PeerServergetReceiveBufferSize in interface PeerServerjava.io.IOExceptionpublic org.apache.hadoop.hdfs.net.Peer accept()
throws java.io.IOException,
java.net.SocketTimeoutException
PeerServeraccept in interface PeerServerjava.io.IOException - if an I/O error occurs when waiting for a
connection.java.net.SocketTimeoutException - if a timeout was previously set and
the timeout has been reached.public java.lang.String getListeningString()
getListeningString in interface PeerServerpublic void close()
throws java.io.IOException
PeerServerclose in interface java.lang.AutoCloseableclose in interface java.io.Closeableclose in interface PeerServerjava.io.IOException - If there is an error closing the PeerServerpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2008–2025 Apache Software Foundation. All rights reserved.