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

Classes

class  ShutdownServlet
 

Public Member Functions

 SearchServer (int port, ThreadSafeInvertedIndex index, Processor processor, WorkQueue queue) throws IOException
 
void launch () throws Exception
 
String toString ()
 

Static Public Member Functions

static void changeTheme ()
 

Static Public Attributes

static String theme = "<html lang=\"en\" data-theme=\"light\">"
 
static final Path base = Path.of("src", "main", "resources", "template")
 

Detailed Description

Server for the Search Engine.

Author
Ravneet Singh Bhatia
Version
Spring 2024

Constructor & Destructor Documentation

◆ SearchServer()

edu.usfca.cs272.SearchServer.SearchServer ( int port,
ThreadSafeInvertedIndex index,
Processor processor,
WorkQueue queue ) throws IOException

Host the server on localhost.

Parameters
portthe port on which to host the server.
indexthe index to perform search on
processorthe processor to perform search on index.

Member Function Documentation

◆ changeTheme()

static void edu.usfca.cs272.SearchServer.changeTheme ( )
static

Changes the theme of the webpages.

◆ launch()

void edu.usfca.cs272.SearchServer.launch ( ) throws Exception

Launches the server.

Exceptions
Exceptionif the server cannot be started.

Member Data Documentation

◆ base

final Path edu.usfca.cs272.SearchServer.base = Path.of("src", "main", "resources", "template")
static

Base path for the resource templates.

◆ theme

String edu.usfca.cs272.SearchServer.theme = "<html lang=\"en\" data-theme=\"light\">"
static

The theme for the web pages. The default theme is light.


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