velosurf.util
Class MailNotifier

java.lang.Object
  extended by velosurf.util.MailNotifier
All Implemented Interfaces:
java.lang.Runnable

public class MailNotifier
extends java.lang.Object
implements java.lang.Runnable


Nested Class Summary
(package private)  class MailNotifier.Notification
           
 
Field Summary
private  java.lang.String host
           
private  java.util.LinkedList<MailNotifier.Notification> queue
           
private  java.lang.String recipient
           
private  boolean running
           
private  java.lang.String sender
           
 
Constructor Summary
MailNotifier(java.lang.String host, java.lang.String sender, java.lang.String recipient)
           
 
Method Summary
 void run()
           
 void sendNotification(java.lang.String subject, java.lang.String body)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

host

private java.lang.String host

sender

private java.lang.String sender

recipient

private java.lang.String recipient

queue

private java.util.LinkedList<MailNotifier.Notification> queue

running

private boolean running
Constructor Detail

MailNotifier

public MailNotifier(java.lang.String host,
                    java.lang.String sender,
                    java.lang.String recipient)
Method Detail

start

public void start()

stop

public void stop()

sendNotification

public void sendNotification(java.lang.String subject,
                             java.lang.String body)

run

public void run()
Specified by:
run in interface java.lang.Runnable


~ooOoo~