A C E F G H L M P R S T

A

add(LogRecord) - Method in class LocalLog
Adds a record to the log, assuming it matches the pattern given to setFilter.
add(LogRecord) - Method in interface Log
Stores a LogRecord in the Log if it matches the current filter (as set by setFilter, below).
add(LogRecord) - Method in class RemoteLogClient
Adds a record to the log administered by the RemoteLogServer, assuming there is enough space in the server log, and that it matches the filter set by setFilter.
addMethodEntry(Object, String) - Method in class Logger
Logs a "method entry" event.
addMethodExit(Object, String) - Method in class Logger
Logs a "method exit" event.

C

compareTo(Object) - Method in class LogRecord
LogRecords are ordered based first on timestamp, then eventID, and finally event name.

E

equals(Object) - Method in class LogRecord
One LogRecord is equal to another if all of its fields are themselves equal to (using the .equals method) the fields of the other object.

F

format(PrintWriter) - Method in class LogRecord
Creates a string representation of the LogRecord for later retrieval by fromFormat, below.
fromFormat(BufferedReader) - Static method in class LogRecord
Creates a LogRecord from its format representation.

G

getAll(long) - Method in class LocalLog
Returns all LogRecords whose timestamps are within a window of time.
getAll(long) - Method in interface Log
Returns all LogRecords whose timestamps are within a window of time.
getAll(long) - Method in class RemoteLogClient
Returns all of the records stored at the RemoteLogServer that have timestamps within the given window.
getEvent() - Method in class LogRecord
Returns the string event portion of the LogRecord.
getLog() - Method in class Logger
Accessor method for making use of the Log directly.
getTimestamp() - Method in class LogRecord
Returns the time when this LogRecord was created.

H

HeapSortAlgorithm - class HeapSortAlgorithm.
A heap sort demonstration algorithm SortAlgorithm.java, Thu Oct 27 10:32:35 1994 We have modified this code to log events while sorting the array.
HeapSortAlgorithm() - Constructor for class HeapSortAlgorithm
 

L

LocalLog - class LocalLog.
A LocalLog is an implementation of the Log interface that resides in the instrumented program's memory.
LocalLog(int) - Constructor for class LocalLog
Constructor specifies the size of the log.
Log - interface Log.
A Log collects and performs computations on LogRecords.
Logger - class Logger.
Logger is a convenience API (using the Facade design pattern) for logging LogRecords in Logs.
Logger(Log) - Constructor for class Logger
Constructor that takes the Log to use.
LogRecord - class LogRecord.
A LogRecord describes a logged event.
LogRecord(String) - Constructor for class LogRecord
Constructor specifying a string description of an event; events are not allowed to contain "newlines" \n.

M

main(String[]) - Static method in class HeapSortAlgorithm
 
main(String[]) - Static method in class RemoteLogServer
Starts up the server on default port (which is set on the command-line, using -Dport=n where n is an integer).

P

PORT - Static variable in class RemoteLogClient
The default port on which to make connections.
PORT - Static variable in class RemoteLogServer
The default port on which to listen for connections.
printAll(long) - Method in class Logger
Prints events returned from getAll().

R

RemoteLogClient - class RemoteLogClient.
A RemoteLogClient is the client-side implementation of the Log interface.
RemoteLogClient(InetAddress, int) - Constructor for class RemoteLogClient
Constructor takes parameters for connecting to the RemoteLogServer.
RemoteLogServer - class RemoteLogServer.
A RemoteLogServer is a server that administers a Log for remote clients.
RemoteLogServer(int, int) - Constructor for class RemoteLogServer
Constructor takes parameters setting up a server socket that waits for client connections, and for establishing a local log in which to store received log records.

S

setFilter(String) - Method in class LocalLog
 
setFilter(String) - Method in interface Log
Sets a regular-expression filter on what events are stored.
setFilter(String) - Method in class RemoteLogClient
Sets the inclusion filter for the server.
sort(int[]) - Static method in class HeapSortAlgorithm
 

T

toString() - Method in class LocalLog
 
toString() - Method in class LogRecord
Creates a string representation of the LogRecord suitable for printing.

A C E F G H L M P R S T

Web Accessibility