fr.dyade.aaa.agent
Class UDPNetwork.NetServerIn
java.lang.Object
fr.dyade.aaa.common.Daemon
fr.dyade.aaa.agent.UDPNetwork.NetServerIn
- All Implemented Interfaces:
- java.lang.Runnable
- Enclosing class:
- UDPNetwork
final class UDPNetwork.NetServerIn
- extends Daemon
Field Summary |
(package private) byte[] |
buf
|
(package private) java.net.DatagramPacket |
packet
|
Constructor Summary |
protected |
UDPNetwork.NetServerIn(java.lang.String name,
org.objectweb.util.monolog.api.Logger logmon)
|
Method Summary |
private void |
cleanServerInfo(UDPNetwork.ServerInfo srvInfo,
int bootstamp)
Cleans a server information about packets. |
protected void |
close()
Releases any resources attached to this daemon. |
void |
run()
|
protected void |
shutdown()
Interrupts a thread that waits for long periods. |
Methods inherited from class fr.dyade.aaa.common.Daemon |
finish, getName, interrupt, isCurrentThread, isRunning, setDaemon, setName, setPriority, setThreadGroup, start, stop, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
buf
final byte[] buf
packet
final java.net.DatagramPacket packet
UDPNetwork.NetServerIn
protected UDPNetwork.NetServerIn(java.lang.String name,
org.objectweb.util.monolog.api.Logger logmon)
throws java.io.IOException
- Throws:
java.io.IOException
close
protected void close()
- Description copied from class:
Daemon
- Releases any resources attached to this daemon. Be careful, its method
should be called more than one time.
- Specified by:
close
in class Daemon
shutdown
protected void shutdown()
- Description copied from class:
Daemon
- Interrupts a thread that waits for long periods. In some cases, we must
use application specific tricks. For example, if a thread is waiting on
a known socket, we have to close the socket to cause the thread to return
immediately. Unfortunately, there really isn't any technique that works
in general.
- Specified by:
shutdown
in class Daemon
run
public void run()
cleanServerInfo
private void cleanServerInfo(UDPNetwork.ServerInfo srvInfo,
int bootstamp)
throws java.io.IOException,
java.lang.Exception
- Cleans a server information about packets. Restarts datagram packets numbering from
beginning. Cleans expired messages.
- Parameters:
srvInfo
- the server information.bootstamp
- the boot timestamp for the given server.
- Throws:
java.io.IOException
java.lang.Exception
Copyright © 2010 ScalAgent D.T.. All Rights Reserved.