[Spacewalk-list] monitoring repo cache rebuild date

Josh.Mullis at cox.com Josh.Mullis at cox.com
Wed Oct 12 15:19:22 UTC 2011


Verify much indeed.
Thanks Mirek!



-----Original Message-----
From: spacewalk-list-bounces at redhat.com [mailto:spacewalk-list-bounces at redhat.com] On Behalf Of Miroslav Suchy
Sent: Tuesday, October 11, 2011 2:58 PM
To: spacewalk-list at redhat.com
Subject: Re: [Spacewalk-list] monitoring repo cache rebuild date

Dne 11.10.2011 17:47, Josh.Mullis at cox.com napsal(a):
> Does anyone know which database table contains the "last repo build" date?
>

Good start is browsing through documentation:
http://spacewalk.redhat.com/documentation/schema-doc/

But it does not seem to get result in this case.

Looking at jsp it is stored in variable repo_last_build.
struts-config.xml then point me to:
code/src/com/redhat/rhn/frontend/action/channel/ChannelDetailsAction.java
where is this variable bind to value of 
ChannelManager.getRepoLastBuild(chan)

and getRepoLastBuild is defined as (abbreviated):
File theFile = new File(mountPoint + File.separator + pathPrefix +
                 File.separator + channel.getLabel() + File.separator +
                 "repomd.xml");
Date fileModifiedDateIn = new Date(theFile.lastModified());
return 
LocalizationService.getInstance().formatCustomDate(fileModifiedDateIn);

So back to your question. This value is not taken from database. It is 
read as modification time from repomd.xml file.

I hope it will help you.

Mirek Suchy

_______________________________________________
Spacewalk-list mailing list
Spacewalk-list at redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list




More information about the Spacewalk-list mailing list