public class RemoteScrapingSessionHandlerManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static org.apache.log4j.Logger |
log
Used for logging.
|
Constructor and Description |
---|
RemoteScrapingSessionHandlerManager()
Constructs a new manager.
|
Modifier and Type | Method and Description |
---|---|
int |
getNumRemoteScrapingSessionHandlers()
Returns the number of handlers currently being managed.
|
void |
insertRemoteScrapingSessionHandler(java.net.Socket socket)
Generates and inserts a
RemoteScrapingSessionHandler into the manager for the given socket. |
void |
removeRemoteScrapingSessionHandler(RemoteScrapingSessionHandler handler)
Removes an HTTP
RemoteScrapingSessionHandler from the manager. |
public RemoteScrapingSessionHandlerManager()
public void insertRemoteScrapingSessionHandler(java.net.Socket socket)
RemoteScrapingSessionHandler
into the manager for the given socket.socket
- The socket the RemoteScrapingSessionHandler
is to use.public void removeRemoteScrapingSessionHandler(@NotNull RemoteScrapingSessionHandler handler)
RemoteScrapingSessionHandler
from the manager.handler
- The RemoteScrapingSessionHandler
to be removed.public int getNumRemoteScrapingSessionHandlers()