org.bakelite.fax
Class LogWatcher

java.lang.Object
  extended by org.bakelite.fax.LogWatcher
All Implemented Interfaces:
java.lang.Runnable

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

Watchs log at specified url to notify about fax sending result.

Author:
cchantep

Nested Class Summary
static interface LogWatcher.LogWatchCallback
          Log watch callback.
 
Constructor Summary
LogWatcher(java.lang.String path, LogWatcher.LogWatchCallback callback)
          Bulk constructor.
 
Method Summary
static void main(java.lang.String[] args)
          For test of standalone purposes.
 void run()
          Watching.
 void stop()
          Stops watching.
 void watch()
          Watchs log at url with given callback.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogWatcher

public LogWatcher(java.lang.String path,
                  LogWatcher.LogWatchCallback callback)
Bulk constructor.

Parameters:
path - Log path
callback - Watch callback
Method Detail

main

public static void main(java.lang.String[] args)
For test of standalone purposes.


watch

public void watch()
Watchs log at url with given callback.


stop

public void stop()
Stops watching.


run

public void run()
Watching.

Specified by:
run in interface java.lang.Runnable


Copyright © 2008. All Rights Reserved.