Class DhcpListener
java.lang.Object
ru.bitel.bgbilling.kernel.base.server.logger.BGLogger
ru.bitel.common.io.DatagramChannelListener
ru.bitel.bgbilling.kernel.network.processor.DatagramListener
ru.bitel.bgbilling.kernel.network.dhcp.DhcpListener
- All Implemented Interfaces:
Runnable,ru.bitel.bgbilling.kernel.application.server.CommandListener,ru.bitel.bgbilling.kernel.application.server.ExtendedLifecycle,ru.bitel.bgbilling.kernel.application.server.Lifecycle,ru.bitel.bgbilling.kernel.network.processor.ProcessorListener,ru.bitel.common.worker.ThreadContextFactory<ru.bitel.common.worker.ThreadContext>
public class DhcpListener
extends ru.bitel.bgbilling.kernel.network.processor.DatagramListener
implements ru.bitel.bgbilling.kernel.network.processor.ProcessorListener, ru.bitel.bgbilling.kernel.application.server.CommandListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ru.bitel.bgbilling.kernel.network.dhcp.datalog.hourly.DhcpHourlyDataLoggerprotected final DhcpProcessor<Idable> Fields inherited from class ru.bitel.bgbilling.kernel.network.processor.DatagramListener
maxQueueSize, rejectQueueSize, slow1QueueSize, slow2QueueSizeFields inherited from class ru.bitel.common.io.DatagramChannelListener
byteBufferCapacity, channel, directByteBuffer, host, inited, maxPacketSize, port, selector -
Constructor Summary
ConstructorsConstructorDescriptionDhcpListener(String host, int port, int byteBufferCapacity, DhcpProcessor<Idable> processor, ru.bitel.bgbilling.kernel.network.dhcp.datalog.hourly.DhcpHourlyDataLogger dataLogger, int threadCount, int maxQueueSize, Boolean fallbackPool) -
Method Summary
Modifier and TypeMethodDescriptionexecuteCommand(String cmd, String param) booleanfallback(SocketAddress clientAddress, long millis, ByteBuffer data, int overloadLevel) ru.bitel.bgbilling.kernel.network.processor.ProcessorRequest<?> newRequest(SocketAddress clientAddress, long millis, ByteBuffer data, int overloadLevel) ru.bitel.common.worker.ThreadContextMethods inherited from class ru.bitel.bgbilling.kernel.network.processor.DatagramListener
destroy, getActiveThreadCount, getCurrentThreadCount, getLastHourAverage, getLastMinuteCount, getLastTenMinutesAverage, getMaxQueueSize, getOverloadLevel, getQueueSize, getSlow1QueueSize, getSlow2QueueSize, getTaskCount, getThreadCount, init, onPacket, setMaxQueueSize, setThreadCount, start, stopMethods inherited from class ru.bitel.common.io.DatagramChannelListener
run, select, send, sendResponse, setReuseAddress, shutdownMethods inherited from class ru.bitel.bgbilling.kernel.base.server.logger.BGLogger
error, error, error, getLogger, logError, logError, warnMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ru.bitel.bgbilling.kernel.network.processor.ProcessorListener
send
-
Field Details
-
processor
-
dataLogger
protected final ru.bitel.bgbilling.kernel.network.dhcp.datalog.hourly.DhcpHourlyDataLogger dataLogger
-
-
Constructor Details
-
DhcpListener
@ConstructorProperties({"host","port","recvBufferSize","processor","dataLogger","threadCount","maxQueueSize","fallbackPool"}) public DhcpListener(String host, int port, int byteBufferCapacity, DhcpProcessor<Idable> processor, ru.bitel.bgbilling.kernel.network.dhcp.datalog.hourly.DhcpHourlyDataLogger dataLogger, int threadCount, int maxQueueSize, Boolean fallbackPool)
-
-
Method Details
-
newThreadContext
public ru.bitel.common.worker.ThreadContext newThreadContext()- Specified by:
newThreadContextin interfaceru.bitel.common.worker.ThreadContextFactory<ru.bitel.common.worker.ThreadContext>
-
newRequest
public ru.bitel.bgbilling.kernel.network.processor.ProcessorRequest<?> newRequest(SocketAddress clientAddress, long millis, ByteBuffer data, int overloadLevel) - Specified by:
newRequestin interfaceru.bitel.bgbilling.kernel.network.processor.ProcessorListener- Specified by:
newRequestin classru.bitel.bgbilling.kernel.network.processor.DatagramListener
-
getCommandsHelp
- Specified by:
getCommandsHelpin interfaceru.bitel.bgbilling.kernel.application.server.CommandListener
-
executeCommand
- Specified by:
executeCommandin interfaceru.bitel.bgbilling.kernel.application.server.CommandListener
-
fallback
public boolean fallback(SocketAddress clientAddress, long millis, ByteBuffer data, int overloadLevel) - Overrides:
fallbackin classru.bitel.bgbilling.kernel.network.processor.DatagramListener
-