public abstract class RepositoryWriter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected org.apache.log4j.Logger |
log |
protected java.lang.String |
mountPoint |
protected java.lang.String |
pathPrefix |
Constructor and Description |
---|
RepositoryWriter(java.lang.String pathPrefixIn,
java.lang.String mountPointIn)
Constructor takes in pathprefix and mountpoint
|
Modifier and Type | Method and Description |
---|---|
void |
deleteRepomdFiles(java.lang.String channelLabelToProcess,
boolean deleteDir)
Deletes repository cache files
|
abstract boolean |
isChannelRepodataStale(Channel channel) |
abstract void |
writeRepomdFiles(Channel channel) |
protected org.apache.log4j.Logger log
protected java.lang.String pathPrefix
protected java.lang.String mountPoint
public RepositoryWriter(java.lang.String pathPrefixIn, java.lang.String mountPointIn)
pathPrefixIn
- prefix to package pathmountPointIn
- mount point package residespublic abstract boolean isChannelRepodataStale(Channel channel)
channel
- channel infopublic abstract void writeRepomdFiles(Channel channel)
channel
- channelinfo for repomd file creationpublic void deleteRepomdFiles(java.lang.String channelLabelToProcess, boolean deleteDir)
channelLabelToProcess
- channel labeldeleteDir
- directory to delete