|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nhindirect.config.processor.impl.DefaultBundleCacheUpdateProcessorImpl
public class DefaultBundleCacheUpdateProcessorImpl
Camel based implementation of the BundleCacheUpdateProcessor interface.
This implementation can be triggered on a regular interval to check if a bundle needs to be refreshed. The implementation iterates through the entire list of configured trust bundles in the system checking each bundle's last refresh time. If a bundles refresh interval has not been exceeded since its last update, then it will not checked for updates.
| Field Summary | |
|---|---|
protected org.nhindirect.config.store.dao.TrustBundleDao |
dao
The trust bundle dao |
protected BundleRefreshProcessor |
refreshProcessor
The bundle refresh processor. |
| Constructor Summary | |
|---|---|
DefaultBundleCacheUpdateProcessorImpl()
Default constructor |
|
| Method Summary | |
|---|---|
void |
setDao(org.nhindirect.config.store.dao.TrustBundleDao dao)
Sets the trust bundle dao used to get the last refresh date/time. |
void |
setRefreshProcessor(BundleRefreshProcessor refreshProcessor)
Sets the BundleRefreshProcessor used to refresh a bundle the bundle's refresh interval
has been exceeded. |
void |
updateBundleCache()
Updates all anchors within each bundle in the system based on the bundles's refresh interval. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.nhindirect.config.store.dao.TrustBundleDao dao
protected BundleRefreshProcessor refreshProcessor
| Constructor Detail |
|---|
public DefaultBundleCacheUpdateProcessorImpl()
| Method Detail |
|---|
public void setDao(org.nhindirect.config.store.dao.TrustBundleDao dao)
dao - public void setRefreshProcessor(BundleRefreshProcessor refreshProcessor)
BundleRefreshProcessor used to refresh a bundle the bundle's refresh interval
has been exceeded.
refreshProcessor - The BundleRefreshProcessor.@Handler public void updateBundleCache()
updateBundleCache in interface BundleCacheUpdateProcessor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||