Package org.apache.solr.util
Class SocketProxy
java.lang.Object
org.apache.solr.util.SocketProxy
Kindly borrowed the idea and base implementation from the ActiveMQ project; useful for blocking
traffic on a specified port.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()intintgetUrl()voidgoOn()voidbooleanvoidvoidpause()voidreopen()voidsetAcceptBacklog(int acceptBacklog) voidsetPauseAtStart(boolean pauseAtStart) voidsetReceiveBufferSize(int receiveBufferSize) voidtoString()booleanwaitUntilClosed(long timeoutSeconds)
-
Field Details
-
ACCEPT_TIMEOUT_MILLIS
public static final int ACCEPT_TIMEOUT_MILLIS- See Also:
-
PUMP_SOCKET_TIMEOUT_MS
public static final int PUMP_SOCKET_TIMEOUT_MS- See Also:
-
connections
-
-
Constructor Details
-
Method Details
-
open
- Throws:
Exception
-
toString
-
setReceiveBufferSize
public void setReceiveBufferSize(int receiveBufferSize) -
setTarget
-
getListenPort
public int getListenPort() -
getUrl
-
close
public void close() -
halfClose
public void halfClose() -
waitUntilClosed
- Throws:
InterruptedException
-
reopen
public void reopen() -
pause
public void pause() -
goOn
public void goOn() -
isPauseAtStart
public boolean isPauseAtStart() -
setPauseAtStart
public void setPauseAtStart(boolean pauseAtStart) -
getAcceptBacklog
public int getAcceptBacklog() -
setAcceptBacklog
public void setAcceptBacklog(int acceptBacklog)
-