org.opennms.netmgt.provision.server
Class SimpleUDPServer

java.lang.Object
  extended by org.opennms.netmgt.provision.server.SimpleUDPServer

public class SimpleUDPServer
extends Object


Nested Class Summary
static interface SimpleUDPServer.Exchange
           
static interface SimpleUDPServer.RequestMatcher
           
static class SimpleUDPServer.SimpleServerExchange
           
 
Constructor Summary
SimpleUDPServer()
           
 
Method Summary
protected  void addRequestResponse(DatagramPacket request, byte[] response)
           
protected  boolean attemptConversation(DatagramSocket socket)
           
 InetAddress getInetAddress()
           
 int getPort()
           
 Runnable getRunnable()
           
 int getTimeout()
           
 void onInit()
           
protected  SimpleUDPServer.RequestMatcher recievedPacket(DatagramPacket request)
           
 void setInetAddress(InetAddress testInetAddress)
           
 void setPort(int port)
           
 void setTimeout(int timeout)
           
 void startServer()
           
 void stopServer()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleUDPServer

public SimpleUDPServer()
Method Detail

onInit

public void onInit()

startServer

public void startServer()
                 throws Exception
Throws:
Exception

stopServer

public void stopServer()
                throws IOException
Throws:
IOException

getRunnable

public Runnable getRunnable()
                     throws Exception
Throws:
Exception

setPort

public void setPort(int port)

getPort

public int getPort()

setTimeout

public void setTimeout(int timeout)

getTimeout

public int getTimeout()

attemptConversation

protected boolean attemptConversation(DatagramSocket socket)
                               throws IOException
Throws:
IOException

addRequestResponse

protected void addRequestResponse(DatagramPacket request,
                                  byte[] response)

recievedPacket

protected SimpleUDPServer.RequestMatcher recievedPacket(DatagramPacket request)

setInetAddress

public void setInetAddress(InetAddress testInetAddress)

getInetAddress

public InetAddress getInetAddress()


Copyright © 2009. All Rights Reserved.