Package org.lockss.repository
Interface RepositoryNodeVersion
- All Known Subinterfaces:
RepositoryNode
public interface RepositoryNodeVersion
RepositoryNodeVersion represents a specific version of content at a
node.
-
Method Summary
Modifier and TypeMethodDescriptionlongReturns the content of this content versionReturn aRepositoryNodeContentsobject which accesses the content in the cache and its properties.intReturns the version number of this version.booleanReturns true if this version exists.
-
Method Details
-
getVersion
int getVersion()Returns the version number of this version.- Returns:
- the current version
-
hasContent
boolean hasContent()Returns true if this version exists. For the current version, this is equivalent toRepositoryNode.hasContent() -
getContentSize
long getContentSize()Returns the content of this content version- Returns:
- size
- Throws:
OldLockssRepository.RepositoryStateException
-
getNodeContents
RepositoryNode.RepositoryNodeContents getNodeContents()Return aRepositoryNodeContentsobject which accesses the content in the cache and its properties. Throws if called on a content-less or inactive node.- Returns:
- an
RepositoryNode.RepositoryNodeContentsobject from which the contents of the cache can be read. - Throws:
OldLockssRepository.RepositoryStateException
-