Package org.lockss.repository
Interface OldLockssRepository
- All Superinterfaces:
org.lockss.app.LockssAuManager,org.lockss.app.LockssManager
- All Known Subinterfaces:
LockssRepository
- All Known Implementing Classes:
OldLockssRepositoryImpl
public interface OldLockssRepository
extends org.lockss.app.LockssAuManager
LockssRepository is used to organize the urls being cached.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classThrown when an unexpected error is encountered while caching.Nested classes/interfaces inherited from interface org.lockss.app.LockssAuManager
org.lockss.app.LockssAuManager.Factory -
Method Summary
Modifier and TypeMethodDescriptioncreateNewNode(String url) Creates a newRepositoryNodefor the purposes of writing a new leaf to the cache.voiddeactivateNode(String url) Deactivate the node.voiddeleteNode(String url) Delete the node.Returns aRepositoryNodewhich represents the url in question.voidTraverses the node hierarchy and tests internal state consistency for each node.Methods inherited from interface org.lockss.app.LockssAuManager
setAuConfigMethods inherited from interface org.lockss.app.LockssManager
getApp, initService, isInited, isStarted, serviceStarted, startService, stopService
-
Method Details
-
getNode
Returns aRepositoryNodewhich represents the url in question. This only returns urls which exist in the cache (null otherwise).- Parameters:
url- the desired url- Returns:
- an entry for the url
- Throws:
MalformedURLException
-
createNewNode
Creates a newRepositoryNodefor the purposes of writing a new leaf to the cache. This is used to add new leaves, though it still returns the leaf if it already exists.- Parameters:
url- the url to be cached- Returns:
- an entry for the url
- Throws:
MalformedURLException
-
deactivateNode
Deactivate the node.- Parameters:
url- the url to be deactivated- Throws:
MalformedURLException
-
deleteNode
Delete the node.- Parameters:
url- the url to be deleted- Throws:
MalformedURLException
-
nodeConsistencyCheck
void nodeConsistencyCheck()Traverses the node hierarchy and tests internal state consistency for each node. Corrects and logs any correctable errors it encounters.
-