/**
* Update the screen display information using this instance of GSA Client.
*/
private void updateGsaInfo() {
try {
GsaEntry crawlUrlEntry = gsaClient.getEntry(Terms.FEED_CONFIG, Terms.ENTRY_CRAWL_URLS);
String startUrl = crawlUrlEntry.getGsaContent(Terms.PROPERTY_START_URLS);
if (startUrl == null) {
startUrl = "";
}
contentStartUrl.text.setText(startUrl);
String crawlUrl = crawlUrlEntry.getGsaContent(Terms.PROPERTY_FOLLOW_URLS);
if (crawlUrl == null) {
crawlUrl = "";
}
contentCrawlUrl.text.setText(crawlUrl);
String doNotCrawlUrl = crawlUrlEntry.getGsaContent(Terms.PROPERTY_DO_NOT_CRAWL_URLS);
if (doNotCrawlUrl == null) {
doNotCrawlUrl = "";
}
contentDoNotCrawl.text.setText(doNotCrawlUrl);
GsaEntry freshnessTuningEntry = gsaClient.getEntry(Terms.FEED_CONFIG,
Terms.ENTRY_FRESHNESS);
String crawlFrequentlyUrl = freshnessTuningEntry.getGsaContent(Terms.PROPERTY_FREQUENT_URLS);
if (crawlFrequentlyUrl == null) {
crawlFrequentlyUrl = "";
}
contentCrawlFrequently.text.setText(crawlFrequentlyUrl);
String crawlInfrequentlyUrl =
freshnessTuningEntry.getGsaContent(Terms.PROPERTY_ARCHIVE_URLS);
if (crawlInfrequentlyUrl == null) {
crawlInfrequentlyUrl = "";
}
contentCrawlInfrequently.text.setText(crawlInfrequentlyUrl);
String forceRecrawlUrl = freshnessTuningEntry.getGsaContent(Terms.PROPERTY_FORCE_URLS);
if (forceRecrawlUrl == null) {
forceRecrawlUrl = "";
}
contentForceRecrawl.text.setText(forceRecrawlUrl);
GsaEntry eventEntry = gsaClient.getEntry(Terms.FEED_LOGS,
Terms.ENTRY_EVENT_LOG);
contentEventLog.text.setText(eventEntry.getGsaContent(Terms.PROPERTY_LOG_CONTENT));
} catch (ServiceException ex) {
logger.severe(ex.getMessage());
JOptionPane.showMessageDialog(null, ex.getMessage());
} catch (IOException ex) {
logger.severe(ex.getMessage());