|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.jthomas.mailfaces.PiconDB
Interface to the PICON Database(s).
Operation:
The PiconDB constructor will create a PiconDBServer object for each PIconDBServer statement in the Opt file. It will also allocate a queue for search requests. The MailFaces main routine will create a thread for the Picondb object and issue the picondbobj.start(). The run method will be given control. It will take requests from the queue (in the form of mailmsgs) and issue a search command for the appropriate image to each of the PiconDBServer Objects. Based on Steve Kinzler's Picon Archive
Picons Archive
Constructor Summary | |
PiconDB()
PiconDB() - PiconDB constructor. |
Method Summary | |
boolean |
checkDeferList(java.lang.String imageurl,
java.lang.String host)
This will check the URL returned from the PICONDB server against the List of "PiconDefer" items specified by the user. |
boolean |
checkIgnoreList(java.lang.String imageurl,
java.lang.String host)
This will check the URL returned from the PICONDB server against the List of "PiconIgnore" items specified by the user. |
int |
getCount()
getCount is a Class method that will return the count of PiconDB objects. |
PiconDBServer[] |
getList()
getList will return the list of PiconDBServer objects. |
static void |
main(java.lang.String[] args)
|
void |
queuePut(java.lang.Object obj)
queuePut will place an object in the PiconDB work queue. |
void |
refreshOptions()
Method: refreshOptions() |
boolean |
resolvePiconDB(Mailmsg mailmsg,
boolean usecache,
boolean domainonly)
resolvePiconDB() will handle issueing the search request to one or more PiconDBServers. |
void |
run()
run() will get control when the Thread is started |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PiconDB()
This will create a PiconDBServer object for each PIconDB statement that it finds in the Options file. The singleton PiconDB object will be created by MailFaces during initialization
Method Detail |
public void queuePut(java.lang.Object obj)
public void refreshOptions()
public PiconDBServer[] getList()
public int getCount()
public void run()
run
in interface java.lang.Runnable
public boolean resolvePiconDB(Mailmsg mailmsg, boolean usecache, boolean domainonly)
public boolean checkDeferList(java.lang.String imageurl, java.lang.String host)
public boolean checkIgnoreList(java.lang.String imageurl, java.lang.String host)
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |