|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.day.cq.rewriter.linkchecker.impl.LinkInfoStorageImpl
public class LinkInfoStorageImpl
Stores LinkInfo objects in the repository.
| Field Summary | |
|---|---|
protected Session |
readSession
The session to read the link infos from. |
protected String |
storageRootPath
path to the storage root node |
protected Session |
writeSession
The session to write the link infos from. |
| Constructor Summary | |
|---|---|
LinkInfoStorageImpl()
|
|
| Method Summary | |
|---|---|
protected void |
activate(org.osgi.service.component.ComponentContext context)
Activates the LinkChecker service. |
protected void |
deactivate(org.osgi.service.component.ComponentContext componentContext)
Deactivates the LinkChecker service. |
void |
deleteLinkInfo(LinkInfo info)
Removes link validity information from the repository. |
void |
deleteLinkInfo(String url)
Removes link validity information from the repository. |
LinkInfo |
getLinkInfo(String url)
Returns validity information for a specific link. |
String[] |
getLinks()
Returns a list of links about which validity information is stored in the repository. |
protected void |
init()
initializes the storge root |
void |
onEvent(EventIterator eventIterator)
|
void |
putLinkInfo(LinkInfo info)
Stores validity information about a link in the repository. |
void |
run()
write backs the modified entries. |
void |
sync()
Forces the storageg to flush it's caches to the repository. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String storageRootPath
protected Session readSession
protected Session writeSession
| Constructor Detail |
|---|
public LinkInfoStorageImpl()
| Method Detail |
|---|
protected void activate(org.osgi.service.component.ComponentContext context)
throws RepositoryException
context - The component context providing startup information
RepositoryException - if a repository error during activation occurs
protected void init()
throws RepositoryException
RepositoryException - if an error occursprotected void deactivate(org.osgi.service.component.ComponentContext componentContext)
componentContext - The component contextpublic String[] getLinks()
getLinks in interface LinkInfoStoragepublic LinkInfo getLinkInfo(String url)
getLinkInfo in interface LinkInfoStorageurl - link to retrieve the information for
public void putLinkInfo(LinkInfo info)
putLinkInfo in interface LinkInfoStorageinfo - The validity information to be storedpublic void deleteLinkInfo(LinkInfo info)
deleteLinkInfo in interface LinkInfoStorageinfo - The validity information to be removedpublic void deleteLinkInfo(String url)
deleteLinkInfo in interface LinkInfoStorageurl - The URL for which the validity information is to be removedpublic void sync()
sync in interface LinkInfoStoragepublic void run()
run in interface Runnablepublic void onEvent(EventIterator eventIterator)
onEvent in interface EventListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||