public class ResolveUrls extends Object
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
ResolveUrls(String urlsFile)
Create a new ResolveUrls with a file from the local file system.
|
ResolveUrls(String urlsFile,
int numThreads)
Create a new ResolveUrls with a urls file and a number of threads for the
Thread pool.
|
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args)
Runs the resolve urls tool.
|
void |
resolveUrls()
Creates a thread pool for resolving urls.
|
public ResolveUrls(String urlsFile)
urlsFile
- The local urls file, one url per line.public ResolveUrls(String urlsFile, int numThreads)
urlsFile
- The local urls file, one url per line.numThreads
- The number of threads used to resolve urls in parallel.public void resolveUrls()
public static void main(String[] args)
Copyright © 2014 The Apache Software Foundation