B C D E F G I L M O P R S

B

buildIndex - Variable in class org.log4jfugue.Music
 
buildMusicString(String) - Method in class org.log4jfugue.SoundBuilder
 

C

close() - Method in class org.log4jfugue.PretendPlayer
 
counts - Variable in class org.log4jfugue.Music
 

D

dataGetter - Variable in class org.log4jfugue.SoundBuilder
 

E

Experiments - Class in org.log4jfugue
The main application of the system, ie a sample client application, TODO: finish the suite of JUnit tests, add a simple application to play the file created by the PretendPlayer, create a data flow diagram for the package, make the File DataGetter be able to replay at different speeds, make sure that the pretend player works with the Rhythm player.
Experiments() - Constructor for class org.log4jfugue.Experiments
 

F

FileDataGetter - Class in org.log4jfugue
Gets data to process from an existing file.
FileDataGetter() - Constructor for class org.log4jfugue.FileDataGetter
 

G

getInstrumentIndex(String) - Method in class org.log4jfugue.Music
 
getInstrumentList() - Method in class org.log4jfugue.MessageReceiver
Let other classes, like the RhythmSoundBuilder get our list of instruments
getInstrumentName() - Method in class org.log4jfugue.InstrumentVoice
basic accessor
getInstrumentVoice(int) - Method in class org.log4jfugue.Music
Get a full instrument definition given the instrument number
getPlayCount(int) - Method in class org.log4jfugue.Music
get the count for a particular instrument out of the right accumulator
getSearchString() - Method in class org.log4jfugue.InstrumentVoice
basic accessor
getVoiceNumber() - Method in class org.log4jfugue.InstrumentVoice
basic accessor

I

incrementInstrumentCount(String) - Method in class org.log4jfugue.Music
Used by the Message Receiver, this is the way to increment the count of an instrument when its associated search string is found
InstrumentVoice - Class in org.log4jfugue
Represents an instrument, which voice to play it in, and which log message causes the instrument to be played
InstrumentVoice() - Constructor for class org.log4jfugue.InstrumentVoice
 
InstrumentVoice(int, String, String) - Constructor for class org.log4jfugue.InstrumentVoice
create a fully defined Instrument

L

L4JFSocketNode - Class in org.log4jfugue.socketAppender
This class is based on the log4j class SocketNode and would have just extended it but the key member variables were defined as package private and so were not accessible to derived classes.
L4JFSocketNode(Socket, LoggerRepository, PipedWriter) - Constructor for class org.log4jfugue.socketAppender.L4JFSocketNode
 
Log4jAppenderDataGetter - Class in org.log4jfugue
Thinking about how to do this.
Log4jAppenderDataGetter() - Constructor for class org.log4jfugue.Log4jAppenderDataGetter
 
LogMaker - Class in org.log4jfugue
 
LogMaker() - Constructor for class org.log4jfugue.LogMaker
 
LogStats - Class in org.log4jfugue
A statistics app using the Log4JFugue framework It builds up the time based counts for various strings but then outputs a csv file instead of music strings
LogStats() - Constructor for class org.log4jfugue.LogStats
 

M

main(String[]) - Static method in class org.log4jfugue.Experiments
 
main(String[]) - Static method in class org.log4jfugue.LogMaker
 
main(String[]) - Static method in class org.log4jfugue.LogStats
 
main(String[]) - Static method in class org.log4jfugue.MyMusicApp
 
main(String[]) - Static method in class org.log4jfugue.socketAppender.SimpleSocketServer
 
MAX_MIDI_VOICES - Static variable in class org.log4jfugue.Music
 
MessageReceiver - Class in org.log4jfugue
Listens for log messages to process.
MessageReceiver() - Constructor for class org.log4jfugue.MessageReceiver
 
Music - Class in org.log4jfugue
This is the central repository of knowledge about the system.
Music() - Constructor for class org.log4jfugue.Music
 
music - Variable in class org.log4jfugue.SoundBuilder
 
MyMusicApp - Class in org.log4jfugue
The main application of the system, ie a sample client application, TODO: finish the suite of JUnit tests, add a simple application to play the file created by the PretendPlayer, create a data flow diagram for the package, make the File DataGetter be able to replay at different speeds, make sure that the pretend player works with the Rhythm player.
MyMusicApp() - Constructor for class org.log4jfugue.MyMusicApp
 

O

org.log4jfugue - package org.log4jfugue

Log4Jfugue converts your application log messages into music.  The conversion is controlled by modifying the spring-log4jfugue.xml file.  The messageReceiver bean defines a set of properties where the key is the name of an instrument and the value is a string to search for in the incoming stream of log messages.  When a matching message is found the count for the associated instrument is incremented and the next measure of music includes that note.

Instruments can be either chromatic or achromatic.

Log messages can be processed in real-time by defining the standard Log4j SocketAppender in the program to be monitored, or old log files can be re-played.

org.log4jfugue.socketAppender - package org.log4jfugue.socketAppender

Subpackage to hold classes supportting remote socket based logging


P

play(Pattern) - Method in class org.log4jfugue.PretendPlayer
 
player - Variable in class org.log4jfugue.SoundBuilder
 
PretendPlayer - Class in org.log4jfugue
This class doesn't actually send the music strings to JFugue, it writes them to a file for later playback.
PretendPlayer() - Constructor for class org.log4jfugue.PretendPlayer
Create a pretend player and opens an output file.

R

RhythmSoundBuilder - Class in org.log4jfugue
Derived from the SoundBuilder class, this class builds and plays a rhythm based sound.
RhythmSoundBuilder() - Constructor for class org.log4jfugue.RhythmSoundBuilder
 
run() - Method in class org.log4jfugue.FileDataGetter
The main data gathering loop, this reads data from the data file as it is available.
run() - Method in class org.log4jfugue.MessageReceiver
Build the music string to send to JFugue
run() - Method in class org.log4jfugue.RhythmSoundBuilder
Build the music string to send to JFugue
run() - Method in class org.log4jfugue.SimpleDataGetter
Get the data.
run() - Method in class org.log4jfugue.socketAppender.L4JFSocketNode
 
run() - Method in class org.log4jfugue.SocketDataGetter
Get the data.
run() - Method in class org.log4jfugue.SoundBuilder
Build the music string to send to JFugue.

S

setDataGetter(SimpleDataGetter) - Method in class org.log4jfugue.SoundBuilder
 
setDurationOfPlay(int) - Method in class org.log4jfugue.PretendPlayer
An injection target to set how long each play should take.
setFileDelaySpeed(float) - Method in class org.log4jfugue.FileDataGetter
Not yet implemented, this method will allow control of the speed of the file playback, allowing for example playing back at double the recorded speed
setFileName(String) - Method in class org.log4jfugue.FileDataGetter
Injected by Spring DI this sets the name of file to get the log data from
setInstrumentName(String) - Method in class org.log4jfugue.InstrumentVoice
basic mutator
setLogDelay(LogDelay) - Method in class org.log4jfugue.FileDataGetter
 
setMessageReceiver(MessageReceiver) - Method in class org.log4jfugue.RhythmSoundBuilder
Used by Spring DI to inject the MessageReceiver; this is primarily so that this class can access the instrument definitions known by the receiver
setMessages(Properties) - Method in class org.log4jfugue.MessageReceiver
Injected by Spring, after music is set.
setMusic(Music) - Method in class org.log4jfugue.MessageReceiver
Used by Spring DI to tell class what the main Music object is
setMusic(Music) - Method in class org.log4jfugue.SoundBuilder
likely set by spring
setPlayer(Player) - Method in class org.log4jfugue.SoundBuilder
set by spring
setPort(int) - Method in class org.log4jfugue.SocketDataGetter
Spring DI injects the port to use
setProperties(Properties) - Method in class org.log4jfugue.Music
Used by Spring DI this accepts the set of properties that define the search strings and associated instruments
setReader(Reader) - Method in class org.log4jfugue.MessageReceiver
Used by Spring DI to tell class where to get the message Reader
setReader(PipedReader) - Method in class org.log4jfugue.SimpleDataGetter
Define the PipedReader that the class will use to get its data.
setSearchString(String) - Method in class org.log4jfugue.InstrumentVoice
basic mutator
setStatistics(Statistics) - Method in class org.log4jfugue.MessageReceiver
 
setVoiceNumber(int) - Method in class org.log4jfugue.InstrumentVoice
basic mutator
setWriter(PipedWriter) - Method in class org.log4jfugue.SimpleDataGetter
Define the PipedWriter that this class will use to send data to clients.
SimpleDataGetter - Class in org.log4jfugue
The base class for all of the ways to get data into the system.
SimpleDataGetter() - Constructor for class org.log4jfugue.SimpleDataGetter
 
SimpleSocketServer - Class in org.log4jfugue.socketAppender
A simple SocketNode based server.
SimpleSocketServer() - Constructor for class org.log4jfugue.socketAppender.SimpleSocketServer
 
SocketDataGetter - Class in org.log4jfugue
This data getter spins a thread that does socket accept and then spins another thread (L4JFSocketNode) to do the actual socket reading.
SocketDataGetter() - Constructor for class org.log4jfugue.SocketDataGetter
 
SoundBuilder - Class in org.log4jfugue
One of the two primary threads of the system, this class builds and plays the actual music strings.
SoundBuilder() - Constructor for class org.log4jfugue.SoundBuilder
 
swapCounters() - Method in class org.log4jfugue.MessageReceiver
There are two message accumulators, one is being added to and the other is being played from.
swappedIndex() - Method in class org.log4jfugue.FileDataGetter
The player has swapped index, see if we're read more than 1 second worth of data and if so wait to let the player catch up
swappedIndex() - Method in class org.log4jfugue.SimpleDataGetter
 
synth - Variable in class org.log4jfugue.SoundBuilder
 

B C D E F G I L M O P R S