VIBE v5.1.6
Search Engine
Loading...
Searching...
No Matches
edu.usfca.cs272.Driver Class Reference

Static Public Member Functions

static void main (String[] args)
 

Static Public Attributes

static final Path DEFAULT_INDEX = Path.of("index.json")
 
static final Path DEFAULT_COUNTS = Path.of("counts.json")
 
static final Path DEFAULT_RESULTS = Path.of("results.json")
 
static final int DEFAULT_THREADS = 5
 
static final int DEFAULT_CRAWL = 1
 
static final int DEFAULT_PORT = 8080
 
static final Logger log = LogManager.getLogger()
 

Detailed Description

Class responsible for running this project based on the provided command-line arguments. See the README for details.

Author
Ravneet Singh Bhatia
CS 272 Software Development (University of San Francisco)
Version
Spring 2024

Member Function Documentation

◆ main()

static void edu.usfca.cs272.Driver.main ( String[] args)
static

Initialized the classes necessary for the search engine. Uses the command line args as flags to decide which classes to use.

Parameters
argsflag/value pairs used to start this program

Member Data Documentation

◆ DEFAULT_COUNTS

final Path edu.usfca.cs272.Driver.DEFAULT_COUNTS = Path.of("counts.json")
static

Default path for output file for counts.

◆ DEFAULT_CRAWL

final int edu.usfca.cs272.Driver.DEFAULT_CRAWL = 1
static

The default number of webpages to crawl.

◆ DEFAULT_INDEX

final Path edu.usfca.cs272.Driver.DEFAULT_INDEX = Path.of("index.json")
static

Default path for output file for index.

◆ DEFAULT_PORT

final int edu.usfca.cs272.Driver.DEFAULT_PORT = 8080
static

The default port to host the server.

◆ DEFAULT_RESULTS

final Path edu.usfca.cs272.Driver.DEFAULT_RESULTS = Path.of("results.json")
static

Default path for output file for results.

◆ DEFAULT_THREADS

final int edu.usfca.cs272.Driver.DEFAULT_THREADS = 5
static

Default number of threads to be used when multithreading.

◆ log

final Logger edu.usfca.cs272.Driver.log = LogManager.getLogger()
static

The logger for this class.


The documentation for this class was generated from the following file: