public class UpdateErrataCacheCommand extends BaseTransactionCommand
| Constructor and Description |
|---|
UpdateErrataCacheCommand()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
updateErrataCache(java.lang.Long orgId)
Updates the errata cache for orgs which have a server count less than
the threshold as defined by the configuration setting
errata_cache_compute_threshold |
void |
updateErrataCacheForChannel(java.lang.Long cid)
Updates the errata cache for all the servers in the given channel.
|
void |
updateErrataCacheForErrata(java.lang.Long cid,
java.lang.Long eid)
Updates the needed cache for particular packages within a channel
This isn't a full regeneration, only the changes are handled
|
void |
updateErrataCacheForErrata(java.lang.Long cid,
java.lang.Long eid,
java.util.List<java.lang.Long> pids)
Updates the needed cache for particular packages within a channel
This isn't a full regeneration, only the changes are handled
|
void |
updateErrataCacheForServer(java.lang.Long serverId,
boolean commit)
Updates the errata cache for the given server.
|
handleTransactionpublic void updateErrataCache(java.lang.Long orgId)
errata_cache_compute_thresholdorgId - Org whose errata cache needs updating.public void updateErrataCacheForServer(java.lang.Long serverId,
boolean commit)
serverId - Server id which needs to get updated.commit - commit the database transaction when completepublic void updateErrataCacheForErrata(java.lang.Long cid,
java.lang.Long eid)
cid - the channel affectedeid - the erratum idpublic void updateErrataCacheForErrata(java.lang.Long cid,
java.lang.Long eid,
java.util.List<java.lang.Long> pids)
cid - the channel affectedeid - the erratum idpids - the List of package ids that will be consideredpublic void updateErrataCacheForChannel(java.lang.Long cid)
cid - Channel id whose servers need their cache updated.