Package crawlercommons.urlfrontier
Interface Urlfrontier.StatsOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Urlfrontier.Stats,Urlfrontier.Stats.Builder
- Enclosing class:
- Urlfrontier
public static interface Urlfrontier.StatsOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsCounts(String key) custom countsDeprecated.intcustom countscustom countslonggetCountsOrDefault(String key, long defaultValue) custom countslonggetCountsOrThrow(String key) custom countscrawl IDcom.google.protobuf.ByteStringcrawl IDintnumber of URLs currently in flightlongnumber of active queues in the frontierlonggetSize()number of active URLs in queuesMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getSize
long getSize()number of active URLs in queues
uint64 size = 1;- Returns:
- The size.
-
getInProcess
int getInProcess()number of URLs currently in flight
uint32 inProcess = 2;- Returns:
- The inProcess.
-
getCountsCount
int getCountsCount()custom counts
map<string, uint64> counts = 3; -
containsCounts
custom counts
map<string, uint64> counts = 3; -
getCounts
Deprecated.UsegetCountsMap()instead. -
getCountsMap
custom counts
map<string, uint64> counts = 3; -
getCountsOrDefault
custom counts
map<string, uint64> counts = 3; -
getCountsOrThrow
custom counts
map<string, uint64> counts = 3; -
getNumberOfQueues
long getNumberOfQueues()number of active queues in the frontier
uint64 numberOfQueues = 4;- Returns:
- The numberOfQueues.
-
getCrawlID
String getCrawlID()crawl ID
string crawlID = 5;- Returns:
- The crawlID.
-
getCrawlIDBytes
com.google.protobuf.ByteString getCrawlIDBytes()crawl ID
string crawlID = 5;- Returns:
- The bytes for crawlID.
-