| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.jetspeed.daemon.impl.FeedDaemon
A daemon that parses out Jetspeed content sources. It also handles multiple updating Feeds within PortletFactory. When it encounters any RSS feeds that are remote it will pull them locally into the JetspeedDiskCache class via the bulkdownloader class.
The major goals of this Daemon are:
| Field Summary | |
| static java.lang.String | TEMP_DIRECTORY | 
| static java.lang.String | TEMP_FILE_KEY | 
| Fields inherited from interface org.apache.jetspeed.daemon.Daemon | 
| RESULT_FAILED, RESULT_PROCESSING, RESULT_SUCCESS, RESULT_UNKNOWN, STATUS_NOT_PROCESSED, STATUS_NOT_STARTED, STATUS_PROCESSED, STATUS_PROCESSING, STATUS_STARTED, STATUS_UNKNOWN | 
| Constructor Summary | |
| FeedDaemon() | |
| Method Summary | |
| static int | getCount()Get the feed count. | 
|  DaemonConfig | getDaemonConfig()Require that Daemons have a getter for the DaemonConfig | 
|  DaemonEntry | getDaemonEntry()Get the entry for this daemon. | 
| static java.io.Reader | getEntries(java.lang.String url)Get the PML for the given URL | 
| static Feed[] | getFeeds()Get the feeds that are available to Jetspeed | 
|  java.lang.String | getMessage()Provided so that a Daemon can provide a message to users. | 
|  int | getResult()Get the result of this daemons processing. | 
|  int | getStatus()Return the status for this Daemon | 
|  void | init(DaemonConfig config,
     DaemonEntry entry)Init this Daemon from the DaemonFactory | 
|  void | run() | 
|  void | setResult(int result)Force the result of this Daemon | 
|  void | setStatus(int status)Set the status for this Daemon | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
public static final java.lang.String TEMP_FILE_KEY
public static java.lang.String TEMP_DIRECTORY
| Constructor Detail | 
public FeedDaemon()
| Method Detail | 
public static int getCount()
public static Feed[] getFeeds()
public void run()
run in interface java.lang.Runnable
public static final java.io.Reader getEntries(java.lang.String url)
                                       throws java.lang.Exception
java.lang.Exception
public void init(DaemonConfig config,
                 DaemonEntry entry)
init in interface Daemonpublic DaemonConfig getDaemonConfig()
Daemon
getDaemonConfig in interface Daemonpublic DaemonEntry getDaemonEntry()
Daemon
getDaemonEntry in interface Daemonpublic int getStatus()
getStatus in interface DaemonDaemon.STATUS_NOT_PROCESSED, 
Daemon.STATUS_PROCESSED, 
Daemon.STATUS_PROCESSINGpublic void setStatus(int status)
setStatus in interface DaemonDaemon.STATUS_NOT_PROCESSED, 
Daemon.STATUS_PROCESSED, 
Daemon.STATUS_PROCESSINGpublic int getResult()
DaemonGet the result of this daemons processing. All Daemon implementations are responsible for defining this.
The default for this should be RESULT_UNKNOWN. This usually means that this daemon has never been called for processing.
getResult in interface DaemonDaemon.getResult()public void setResult(int result)
Daemon
setResult in interface DaemonDaemon.setResult(int result)public java.lang.String getMessage()
Daemon
getMessage in interface DaemonDaemon.getMessage()| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||