org.apache.mina.example.udp
Class MemoryMonitor

java.lang.Object
  extended by org.apache.mina.example.udp.MemoryMonitor

public class MemoryMonitor
extends java.lang.Object

The class that will accept and process clients in order to properly track the memory usage.

Author:
Apache MINA Project

Field Summary
protected static java.awt.Dimension PANEL_SIZE
           
static int PORT
           
 
Constructor Summary
MemoryMonitor()
           
 
Method Summary
protected  void addClient(java.net.SocketAddress clientAddr)
           
protected  boolean containsClient(java.net.SocketAddress clientAddr)
           
static void main(java.lang.String[] args)
           
protected  void recvUpdate(java.net.SocketAddress clientAddr, long update)
           
protected  void removeClient(java.net.SocketAddress clientAddr)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PORT

public static final int PORT
See Also:
Constant Field Values

PANEL_SIZE

protected static final java.awt.Dimension PANEL_SIZE
Constructor Detail

MemoryMonitor

public MemoryMonitor()
              throws java.io.IOException
Throws:
java.io.IOException
Method Detail

recvUpdate

protected void recvUpdate(java.net.SocketAddress clientAddr,
                          long update)

addClient

protected void addClient(java.net.SocketAddress clientAddr)

containsClient

protected boolean containsClient(java.net.SocketAddress clientAddr)

removeClient

protected void removeClient(java.net.SocketAddress clientAddr)

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2004-2011 Apache MINA Project. All Rights Reserved.