org.pricingnexus.tools
Class LogSenderStatic

java.lang.Object
  |
  +--org.pricingnexus.tools.LogSenderStatic

public final class LogSenderStatic
extends java.lang.Object

Firstly: This is a dirty & cheap hack, it should be improved in the future,-)) Second (what it does): It's a kind of static version of the LogSender object. The "problem" (we'll call it feature furthermore...) with the other logger class is that it creates two threads which takes some time. While testing all the static data gathering stuff I realized that hundred and thousand times objects get created which always crate a logger object - each time with all the threads. This takes a considerable amount of time.
This class can be used in the very specific case that a object probably sends out only one or two messages **AND** will disappear after only a short time.
$Header$


Constructor Summary
LogSenderStatic()
           
 
Method Summary
static void LogSenderStatic()
           
static void send(java.lang.String logHost, int logPort, int window, java.lang.String procName, java.lang.String messageText)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogSenderStatic

public LogSenderStatic()
Method Detail

LogSenderStatic

public static void LogSenderStatic()

send

public static void send(java.lang.String logHost,
                        int logPort,
                        int window,
                        java.lang.String procName,
                        java.lang.String messageText)