gnu.hylafax.util
Class Notifier
java.lang.Object
|
+--gnu.hylafax.job.BasicSendNotifier
|
+--gnu.hylafax.job.SendAndReceiveNotifier
|
+--gnu.hylafax.util.Notifier
All Implemented Interfaces: ReceiveNotifier , SendNotifier
public class Notifier extends SendAndReceiveNotifier
This class implements a callback program as supplied in the notify script with
the HylaFAX distribution. The following command line options are
supported.
-f queue file name
-r reason code
-t time spent on this job
-n ETA of next attempt if is 'requeued'
-c The Java class name of the gnu.hylafax.job.Listener to notify
-j The HylaFAX JOBID
Refer to the notify man page (from the HylaFAX distribution) for
more information.
This program depends on the gnu.getopt package for command line parsing.
gnu.getopt (java-getopt) can be found at
http://www.urbanophile.com/arenn/
Version: $Id: Notifier.java,v 1.2 2005/06/02 03:37:21 sjardine Exp $
Author: $Author: sjardine $
Method Summary
static void
main (java.lang.String[] arguments)
static void
notifyReceiveListeners (java.lang.Class klass,
java.lang.String file,
java.lang.String modem,
java.lang.String commid,
java.lang.String message,
java.lang.String cidnumber,
java.lang.String cidname)
static void
notifySendListeners (java.lang.Class klass,
long jobid,
java.lang.String file,
java.lang.String reason,
java.lang.String time,
java.lang.String nextAttempt)
static void
usage (java.io.PrintStream out)
prints program usage
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
OP_SEND
public static final boolean OP_SEND
OP_RECEIVE
public static final boolean OP_RECEIVE
KEY_PROPERTIES
public static final java.lang.String KEY_PROPERTIES
Notifier
public Notifier ()
main
public static void main (java.lang.String[] arguments)
throws java.lang.ClassNotFoundException,
java.lang.InstantiationException,
java.lang.IllegalAccessException,
java.io.FileNotFoundException,
java.io.IOException
notifySendListeners
public static void notifySendListeners (java.lang.Class klass,
long jobid,
java.lang.String file,
java.lang.String reason,
java.lang.String time,
java.lang.String nextAttempt)
throws java.lang.ClassNotFoundException,
java.lang.InstantiationException,
java.lang.IllegalAccessException
notifyReceiveListeners
public static void notifyReceiveListeners (java.lang.Class klass,
java.lang.String file,
java.lang.String modem,
java.lang.String commid,
java.lang.String message,
java.lang.String cidnumber,
java.lang.String cidname)
throws java.lang.ClassNotFoundException,
java.lang.InstantiationException,
java.lang.IllegalAccessException
usage
public static void usage (java.io.PrintStream out)
prints program usage