mam.internetworking
Class SocketSender

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--mam.internetworking.SocketSender

public class SocketSender
extends Thread


Field Summary
 private final static intDEFAULT_DESTINATION_PORT
           
 (package private) static CategoryLog
           
 private InetAddressm_destinationAddress
           
 private intm_destinationPort
           
 private URLm_destinationUrl
           
 private Collectionm_listeners
           
 private RoutableMessagem_message
           

Fields inherited from class java.lang.Thread
MIN_PRIORITY, NORM_PRIORITY, MAX_PRIORITY

Constructor Summary
SocketSender(URL destinationUrl, InetAddress destinationAddress, int destinationPort, RoutableMessage message)
           

Method Summary
 voidaddListener(SocketSenderListener listener)
           
 protected voidfireEvent(SocketSenderEvent event)
           
 voidrun()
           

Methods inherited from class java.lang.Thread
currentThread, yield, sleep, sleep, start, stop, stop, interrupt, interrupted, isInterrupted, destroy, isAlive, suspend, resume, setPriority, getPriority, setName, getName, getThreadGroup, activeCount, enumerate, countStackFrames, join, join, join, dumpStack, setDaemon, isDaemon, checkAccess, toString, getContextClassLoader, setContextClassLoader

Methods inherited from class java.lang.Object
getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize

Field Detail

DEFAULT_DESTINATION_PORT

private final static int DEFAULT_DESTINATION_PORT

Log

static Category Log

m_destinationAddress

private InetAddress m_destinationAddress

m_destinationPort

private int m_destinationPort

m_destinationUrl

private URL m_destinationUrl

m_listeners

private Collection m_listeners

m_message

private RoutableMessage m_message
Constructor Detail

SocketSender

public SocketSender(URL destinationUrl, InetAddress destinationAddress, int destinationPort, RoutableMessage message)
Method Detail

addListener

public void addListener(SocketSenderListener listener)

fireEvent

protected void fireEvent(SocketSenderEvent event)

run

public void run()