Index

A C G I L M O P R S T 
All Classes and Interfaces|All Packages|Constant Field Values

A

ApplicationConfig - Class in org.lavajuno.mirrorlog.config
ApplicationConfig loads and stores the program configuration, and provides functionality for retrieving configuration values.
ApplicationConfig(String) - Constructor for class org.lavajuno.mirrorlog.config.ApplicationConfig
Instantiates an ApplicationConfig.

C

cleanupLogs(String, int) - Method in class org.lavajuno.mirrorlog.io.LogFile
Cleans up old logs
close() - Method in class org.lavajuno.mirrorlog.io.LogFile
Flushes output buffers and closes the file.
CONFIG_FILE_PATH - Static variable in class org.lavajuno.mirrorlog.main.LogMap
The path to the program's configuration file

G

getAllowedAddresses() - Method in class org.lavajuno.mirrorlog.config.ApplicationConfig
The list of allowed IP addresses
getComponentPad() - Method in class org.lavajuno.mirrorlog.config.ApplicationConfig
The length that component names should be padded to
getFileDuration() - Method in class org.lavajuno.mirrorlog.config.ApplicationConfig
The amount of time to be logged in each file
getFileHistory() - Method in class org.lavajuno.mirrorlog.config.ApplicationConfig
The number of old log files to keep
getLogToFile() - Method in class org.lavajuno.mirrorlog.config.ApplicationConfig
Whether the program should log to files as well as the console
getPort() - Method in class org.lavajuno.mirrorlog.config.ApplicationConfig
The port the server listens on
getThreads() - Method in class org.lavajuno.mirrorlog.config.ApplicationConfig
The number of simultaneous connections the server will handle
getTimeout() - Method in class org.lavajuno.mirrorlog.config.ApplicationConfig
The socket timeout for inactive clients

I

interrupt() - Method in class org.lavajuno.mirrorlog.server.ServerController
 
interrupt() - Method in class org.lavajuno.mirrorlog.server.ServerThread
 
IO_SHUTDOWN_TIMEOUT - Static variable in class org.lavajuno.mirrorlog.main.LogMap
How long ServerController should wait for OutputController to shut down (ms)
isExpired() - Method in class org.lavajuno.mirrorlog.io.LogFile
Checks if this LogFile is expired.
isRestricted() - Method in class org.lavajuno.mirrorlog.config.ApplicationConfig
Whether access is restricted to certain IP addresses

L

LOG_DATE_FORMAT - Static variable in class org.lavajuno.mirrorlog.main.LogMap
The date and time format of log events.
LogEvent - Class in org.lavajuno.mirrorlog.io
LogEvent stores a single log event and provides functionality to convert it to a string to be printed to the console or a file.
LogEvent(String, int, String, ApplicationConfig) - Constructor for class org.lavajuno.mirrorlog.io.LogEvent
Instantiates a LogEvent.
LogFile - Class in org.lavajuno.mirrorlog.io
LogFile handles creating, writing to, and deleting log files for OutputController.
LogFile(ApplicationConfig) - Constructor for class org.lavajuno.mirrorlog.io.LogFile
Instantiates a LogFile.
LogMap - Class in org.lavajuno.mirrorlog.main
The purpose of LogMap is to eliminate the presence of magic numbers in the program.
LogMap() - Constructor for class org.lavajuno.mirrorlog.main.LogMap
 

M

main(String[]) - Static method in class org.lavajuno.mirrorlog.main.MirrorLogApplication
Starts MirrorLog.
MirrorLogApplication - Class in org.lavajuno.mirrorlog.main
MirrorLogApplication handles startup of the server.
MirrorLogApplication() - Constructor for class org.lavajuno.mirrorlog.main.MirrorLogApplication
 

O

org.lavajuno.mirrorlog.config - package org.lavajuno.mirrorlog.config
 
org.lavajuno.mirrorlog.io - package org.lavajuno.mirrorlog.io
 
org.lavajuno.mirrorlog.main - package org.lavajuno.mirrorlog.main
 
org.lavajuno.mirrorlog.server - package org.lavajuno.mirrorlog.server
 
OutputController - Class in org.lavajuno.mirrorlog.io
OutputController queues log entries from multiple ServerThreads and handles printing them to the console as well as writing them to files.
OutputController(ApplicationConfig) - Constructor for class org.lavajuno.mirrorlog.io.OutputController
Instantiates an OutputController.

P

print(LogEvent) - Method in class org.lavajuno.mirrorlog.io.LogFile
Prints a log event to the file.

R

run() - Method in class org.lavajuno.mirrorlog.io.OutputController
OutputController's thread.
run() - Method in class org.lavajuno.mirrorlog.server.ServerController
 
run() - Method in class org.lavajuno.mirrorlog.server.ServerThread
 

S

ServerController - Class in org.lavajuno.mirrorlog.server
ServerController accepts incoming connections and assigns them to ServerThreads in the thread pool.
ServerController() - Constructor for class org.lavajuno.mirrorlog.server.ServerController
Instantiates a ServerController.
ServerThread - Class in org.lavajuno.mirrorlog.server
ServerThread serves a single client and queues events for the OutputController to process.
ServerThread(Socket, OutputController, ApplicationConfig) - Constructor for class org.lavajuno.mirrorlog.server.ServerThread
Instantiates a ServerThread.
SEVERITY_ERROR - Static variable in class org.lavajuno.mirrorlog.main.LogMap
 
SEVERITY_ERROR_PRETTY - Static variable in class org.lavajuno.mirrorlog.main.LogMap
Color and header of messages with severity 2
SEVERITY_FATAL - Static variable in class org.lavajuno.mirrorlog.main.LogMap
 
SEVERITY_FATAL_PRETTY - Static variable in class org.lavajuno.mirrorlog.main.LogMap
Color and header of messages with severity 3
SEVERITY_INFO - Static variable in class org.lavajuno.mirrorlog.main.LogMap
 
SEVERITY_INFO_PRETTY - Static variable in class org.lavajuno.mirrorlog.main.LogMap
Color and header of messages with severity 0
SEVERITY_WARN - Static variable in class org.lavajuno.mirrorlog.main.LogMap
 
SEVERITY_WARN_PRETTY - Static variable in class org.lavajuno.mirrorlog.main.LogMap
Color and header of messages with severity 1
submitEvent(String, int, String) - Method in class org.lavajuno.mirrorlog.io.OutputController
Submits an event to be logged

T

toPrettyString() - Method in class org.lavajuno.mirrorlog.io.LogEvent
Like toString, but with colored status indicators.
toString() - Method in class org.lavajuno.mirrorlog.config.ApplicationConfig
 
toString() - Method in class org.lavajuno.mirrorlog.io.LogEvent
 
A C G I L M O P R S T 
All Classes and Interfaces|All Packages|Constant Field Values