
Google Search Appliance: Administrative API Developer’s Guide: Java 15
Host Load Schedule
Retrieve and update host load schedule information from the search appliance using the
hostLoad
entry of the
config
feed.
Retrieving the Host Load Schedule
Retrieve information about the host load schedule from a search appliance as follows:
// Send the request and print the response
myEntry = myClient.getEntry("config", "hostLoad");
System.out.println("defaultHostLoad: " +
myEntry.getGsaContent("defaultHostLoad"));
System.out.println("exceptionHostLoad: " +
myEntry.getGsaContent("exceptionHostLoad"));
System.out.println("maxURLs: " + myEntry.getGsaContent("maxURLs"));
Property Description
defaultHostLoad
The default web server host load, a float value. This value measures the
relative load on the search appliance based on the number of connections
that a search appliance can handle. You can set the
defaultHostLoad
to a
decimal value starting at
0
, where
0
indicates to not crawl the content from
the number of URL patterns that you specify. Any decimal value of
1
or
more sets the average number of connections per minute. A decimal value
under
1
sets the percentage of time during which the search appliance
opens connections. For more information, see the online help for Content
Sources > Web Crawl > Host Load Schedule.
exceptionHostLoad
Exceptions to the default web server host load are listed as multiple lines of
text where each line is in the format:
hostName startTime endTime loadFactor
Where:
•
hostName
is a URL or asterisk (
*
) to represents all hosts. If a
hostName
line contains multiple load data values, separate the host line into
multiple lines with each line containing one load data value, without
overlap.
•
startTime
and
endTime
are integer value between
0
and
23
(
0
= 12
midnight,
23
= 11 pm).
•
loadFactor
is a float value. See
defaultHostLoad
for an explanation
of the
loadFactor
value.
maxURLs
Maximum number of URLs to crawl, an integer value.
Komentarze do niniejszej Instrukcji