org.pricingnexus.tools
Class LogSender

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--org.pricingnexus.tools.LogSender
All Implemented Interfaces:
java.lang.Runnable

public class LogSender
extends java.lang.Thread

Title: XMLLogger Description: A little utility that receives xml formatted messages with a certain format and displays this information in a single window. Main purpose is to receive log messages from multiple sources and display them. $Header$


Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
LogSender(java.lang.String destination, int port, int window, java.lang.String name)
          Default constructor: just initializes the message store and launch the sender thread
 
Method Summary
 void close()
          Shuts down thread and closes resources
 void sendMessage(java.lang.String message)
          Call this method to add a new message to the message stored
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LogSender

public LogSender(java.lang.String destination,
                 int port,
                 int window,
                 java.lang.String name)
          throws java.net.UnknownHostException,
                 java.net.SocketException
Default constructor: just initializes the message store and launch the sender thread
Method Detail

sendMessage

public void sendMessage(java.lang.String message)
Call this method to add a new message to the message stored

close

public void close()
Shuts down thread and closes resources