protected class STATE_SOCK.StateProviderAcceptor
extends java.lang.Object
implements java.lang.Runnable
Modifier and Type | Field and Description |
---|---|
protected IpAddress |
address |
protected java.util.concurrent.ExecutorService |
pool |
protected boolean |
running |
protected java.net.ServerSocket |
serverSocket |
Constructor and Description |
---|
StateProviderAcceptor(java.util.concurrent.ExecutorService pool,
java.net.ServerSocket stateServingSocket) |
Modifier and Type | Method and Description |
---|---|
IpAddress |
getServerSocketAddress() |
boolean |
isRunning() |
protected void |
process(java.net.Socket socket) |
void |
run() |
void |
stop() |
protected final java.util.concurrent.ExecutorService pool
protected final java.net.ServerSocket serverSocket
protected final IpAddress address
protected volatile boolean running
public StateProviderAcceptor(java.util.concurrent.ExecutorService pool, java.net.ServerSocket stateServingSocket)
public IpAddress getServerSocketAddress()
public boolean isRunning()
public void run()
run
in interface java.lang.Runnable
protected void process(java.net.Socket socket)
public void stop()
Copyright © 1998-2020 Red Hat. All Rights Reserved.