public class QothEventProv extends java.lang.Object implements TvEventProv, java.lang.Runnable, eventweb.servutil.RegInit, Debuggable
Provides a quotation that is different for each hour.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String[] |
DEP_LIST
Class dependencies
|
protected java.util.List<TvEventListener> |
listeners
Objects to provide events to
|
static java.lang.String |
VERSION
Class version
|
IF_VERSIONIF_VERSION| Constructor and Description |
|---|
QothEventProv()
Create a new QothEventProv instance
Note: init() must be invoked to start the provider |
| Modifier and Type | Method and Description |
|---|---|
void |
addTvListener(TvEventListener listener)
Register a listener.
|
protected void |
finalize()
Perform instance cleanup at termination.
|
TvList |
getCurrentQuote()
Provide quote of the hour service
|
void |
init(eventweb.servutil.SrvcRegistry registry,
TvList params)
Initialize the provider
|
boolean |
isDebugging()
Get debug state.
|
protected boolean |
processQuoteFile(java.lang.String filePath) |
void |
quiesce()
Stop accepting new requests and release resources
|
void |
removeTvListener(TvEventListener listener)
De-Register a listener
|
void |
run()
Main execution thread
|
void |
setDebugging(boolean debug)
Set or clear debugging
|
public static final java.lang.String VERSION
public static final java.lang.String[] DEP_LIST
protected java.util.List<TvEventListener> listeners
public QothEventProv()
public void setDebugging(boolean debug)
setDebugging in interface Debuggabledebug - If true, debugging is turned on,
otherwise, debugging is turned off.public boolean isDebugging()
isDebugging in interface Debuggablepublic void init(eventweb.servutil.SrvcRegistry registry,
TvList params)
init in interface eventweb.servutil.RegInitregistry - The service registryparams - Initialization parameterspublic void addTvListener(TvEventListener listener)
addTvListener in interface TvEventSrcpublic void removeTvListener(TvEventListener listener)
removeTvListener in interface TvEventSrcpublic TvList getCurrentQuote()
public void run()
run in interface java.lang.Runnablepublic void quiesce()
protected boolean processQuoteFile(java.lang.String filePath)
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwable