public abstract class AbstractFaxJobMonitor extends Object implements FaxJobMonitor
Constructor and Description |
---|
AbstractFaxJobMonitor()
This is the class constructor.
|
Modifier and Type | Method and Description |
---|---|
protected String |
getConfigurationValue(String key)
Returns the value from the monitor configuration based on the provided configuration key.
|
protected Logger |
getLogger()
Returns the internal logger.
|
void |
initialize(Map<String,String> configuration,
Logger logger)
This function initializes the fax job monitor.
This method is called by the FaxClientSpiFactory. |
protected abstract void |
initializeImpl()
This function initializes the fax job monitor.
|
void |
monitorFaxJob(FaxClientSpi faxClientSpi,
FaxJob faxJob)
This function starts monitoring the requested fax job.
|
abstract void |
monitorFaxJobImpl(FaxClientSpi faxClientSpi,
FaxJob faxJob)
This function starts monitoring the requested fax job.
|
void |
stopMonitoringAllFaxJobs(FaxClientSpi faxClientSpi)
This function will stop the monitoring of all fax jobs registered by the provided fax client SPI.
Other fax jobs registered by other SPIs will keep on being monitored. |
abstract void |
stopMonitoringAllFaxJobsImpl(FaxClientSpi faxClientSpi)
This function will stop the monitoring of all fax jobs registered by the provided fax client SPI.
Other fax jobs registered by other SPIs will keep on being monitored. |
public AbstractFaxJobMonitor()
public void initialize(Map<String,String> configuration, Logger logger)
initialize
in interface FaxJobMonitor
configuration
- The fax job monitor configurationlogger
- The internal loggerprotected final Logger getLogger()
protected final String getConfigurationValue(String key)
key
- The configuration keypublic void monitorFaxJob(FaxClientSpi faxClientSpi, FaxJob faxJob)
monitorFaxJob
in interface FaxJobMonitor
faxClientSpi
- The fax client SPIfaxJob
- The fax job to monitorpublic void stopMonitoringAllFaxJobs(FaxClientSpi faxClientSpi)
stopMonitoringAllFaxJobs
in interface FaxJobMonitor
faxClientSpi
- The fax client SPIprotected abstract void initializeImpl()
public abstract void monitorFaxJobImpl(FaxClientSpi faxClientSpi, FaxJob faxJob)
faxClientSpi
- The fax client SPIfaxJob
- The fax job to monitorpublic abstract void stopMonitoringAllFaxJobsImpl(FaxClientSpi faxClientSpi)
faxClientSpi
- The fax client SPICopyright © 2009–2020 fax4j. All rights reserved.