Class DhcpListenerWorker<D extends Idable>
java.lang.Object
ru.bitel.common.worker.WorkerTask<C>
ru.bitel.bgbilling.kernel.network.processor.ProcessorRequest<DhcpListenerWorkerContext>
ru.bitel.bgbilling.kernel.network.dhcp.DhcpListenerWorker<D>
- All Implemented Interfaces:
Runnable
public class DhcpListenerWorker<D extends Idable>
extends ru.bitel.bgbilling.kernel.network.processor.ProcessorRequest<DhcpListenerWorkerContext>
-
Nested Class Summary
Nested classes/interfaces inherited from class ru.bitel.common.worker.WorkerTask
ru.bitel.common.worker.WorkerTask.BlockingExecutionHandler
-
Field Summary
Modifier and TypeFieldDescriptionint
protected static final InetAddress
protected static final InetSocketAddress
long
protected D
int
int
protected DhcpPacket
protected DhcpPacket
Fields inherited from class ru.bitel.bgbilling.kernel.network.processor.ProcessorRequest
clientAddress, data, millis
Fields inherited from class ru.bitel.common.worker.WorkerTask
context
-
Constructor Summary
ConstructorDescriptionDhcpListenerWorker
(ru.bitel.bgbilling.kernel.network.processor.DatagramListener listener, DhcpProcessor<D> processor, SocketAddress clientAddress, long millis, ByteBuffer data, int overloadLevel) -
Method Summary
Modifier and TypeMethodDescriptionint
0-9 текущая загруженность пула, >=10 - второй пулboolean
Было ли соединение начато/остановлено при обработке данногоrequest
.protected void
runImpl()
void
setConnectionModified
(boolean connectionModified) Было ли соединение начато/остановлено при обработке данногоrequest
.void
void
setResponse
(DhcpPacket response) Methods inherited from class ru.bitel.bgbilling.kernel.network.processor.ProcessorRequest
send
Methods inherited from class ru.bitel.common.worker.WorkerTask
newBlockingFixedThreadPool, newFixedThreadPool, newFixedThreadPool, newScheduledThreadPool, run, runSync, runSync, setContext
-
Field Details
-
interfaceId
public int interfaceId -
circuitId
-
connectionId
public long connectionId -
relayDeviceId
public int relayDeviceId -
agentDeviceId
public int agentDeviceId -
device
-
request
-
response
-
broadcastAddress
-
broadcastAddress68
-
-
Constructor Details
-
DhcpListenerWorker
public DhcpListenerWorker(ru.bitel.bgbilling.kernel.network.processor.DatagramListener listener, DhcpProcessor<D> processor, SocketAddress clientAddress, long millis, ByteBuffer data, int overloadLevel)
-
-
Method Details
-
getOverloadLevel
public int getOverloadLevel()0-9 текущая загруженность пула, >=10 - второй пул- Returns:
-
runImpl
protected void runImpl()- Specified by:
runImpl
in classru.bitel.common.worker.WorkerTask<DhcpListenerWorkerContext>
-
setDevice
-
getDevice
-
setResponse
-
isConnectionModified
public boolean isConnectionModified()Было ли соединение начато/остановлено при обработке данногоrequest
. -
setConnectionModified
public void setConnectionModified(boolean connectionModified) Было ли соединение начато/остановлено при обработке данногоrequest
. -
getRequest
-