A C D E F G H I L M N O P R S T U W

A

addClient(String, LogSeverity, LogClient) - Static method in class com.wutka.util.Log
Add a new client for a particular subsystem and severity level
addObject(Object) - Method in class com.wutka.util.ObjectQueue
Adds an object to the end of the queue
addProps(Properties, Properties) - Static method in class com.wutka.util.Config
Adds the properties in newProps to baseProps while converting the keys to be case-free.
addResource(Object) - Method in class com.wutka.util.ResourcePool
Adds another resource to the pool
ALL - Static variable in class com.wutka.util.Log
For log clients, grab messages for all subsystems
availableResources - Variable in class com.wutka.util.ResourcePool
The resources that are currently free

C

clients - Static variable in class com.wutka.util.Log
The clients currently registered with the logger
Config - class com.wutka.util.Config.
Provides a central location for getting configuration information.
Config() - Constructor for class com.wutka.util.Config
 

D

DEBUG - Static variable in class com.wutka.util.LogSeverity
 
DEFAULT - Static variable in class com.wutka.util.Log
For a log entry, a default location for log messages not associated with a particular subsystem.
doNotify() - Method in class com.wutka.util.ObjectQueue
Performs a notifyAll (which requires a synchronized method)
doNotify() - Method in class com.wutka.util.ResourcePool
Performs a notifyAll (which requires a synchronized method)
doWait(long) - Method in class com.wutka.util.ObjectQueue
Performs a wait for a specified number of milliseconds.
doWait(long) - Method in class com.wutka.util.ResourcePool
Performs a wait for a specified number of milliseconds.
doWakeup() - Method in class com.wutka.util.ObjectQueue
 
doWakeup() - Method in class com.wutka.util.ResourcePool
 

E

equals(Object) - Method in class com.wutka.util.LogSeverity
Compares this object with another
ERROR - Static variable in class com.wutka.util.LogSeverity
 

F

FileLogger - class com.wutka.util.FileLogger.
Writes log messages to a file.
FileLogger(String, LogSeverity) - Constructor for class com.wutka.util.FileLogger
Creates a file logger that will log events for all subsystems.
FileLogger(String, String, LogSeverity) - Constructor for class com.wutka.util.FileLogger
Creates a file logger that logs messages for a specific subsystem.

G

getAvailableResources() - Method in class com.wutka.util.ResourcePool
Return a copy of the resources in the free list
getConfigItem(String) - Static method in class com.wutka.util.Config
Retrieves the config item corresponding to the key, or null if there is no config item for the key.
getObject() - Method in class com.wutka.util.ObjectQueue
 
getObject(long) - Method in class com.wutka.util.ObjectQueue
 
getObjectFromQueue() - Method in class com.wutka.util.ObjectQueue
 
getOverflowResource() - Method in class com.wutka.util.ResourcePool
Allocates a resource when the pool is empty.
getResource() - Method in class com.wutka.util.ResourcePool
Requests a resource from the pool, waiting forever if one is not available.
getResource(long) - Method in class com.wutka.util.ResourcePool
Requests a resource from the pool, waiting forever if one is not available.
getResource(Object) - Method in class com.wutka.util.ResourcePool
Requests a resource from the pool, waiting forever if one is not available.
getResource(Object, long) - Method in class com.wutka.util.ResourcePool
Requests a resource from the pool, waiting forever if one is not available.
getResourceFromList(Object) - Method in class com.wutka.util.ResourcePool
Grabs a resource from the free list and moves it to the used list.
getSeverity(String) - Static method in class com.wutka.util.LogSeverity
Finds the LogSeverity instance associated with a particular name.
getSeverityName() - Method in class com.wutka.util.LogSeverity
Return the name for this severity
getSeverityValue() - Method in class com.wutka.util.LogSeverity
Returns the numeric value for this severity
getUsedResourceInfo() - Method in class com.wutka.util.ResourcePool
Return a copy of the associated info for the used resources
getUsedResources() - Method in class com.wutka.util.ResourcePool
Return a copy of the resources in the used list

H

hashCode() - Method in class com.wutka.util.LogSeverity
Computes the hash code for this object
head - Variable in class com.wutka.util.ObjectQueue
The head of the queue
hexDigits - Static variable in class com.wutka.util.Log
 

I

INFORMATION - Static variable in class com.wutka.util.LogSeverity
 

L

level - Variable in class com.wutka.util.LogSeverity
 
loadConfig(String) - Static method in class com.wutka.util.Config
Loads configuration information from the named file.
loadedMainConfig - Static variable in class com.wutka.util.Config
Indicates whether the config class has tried to read in the file named by the configFile system property.
loadMainConfig() - Static method in class com.wutka.util.Config
Uses the system property configFile as the name of a file to read in config information.
locateService(String) - Static method in class com.wutka.util.ServiceRegistry
Returns the registered service corresponding to serviceName.
locateService(String, boolean) - Static method in class com.wutka.util.ServiceRegistry
Returns the registered service corresponding to serviceName.
Log - class com.wutka.util.Log.
A general mechanism for logging error messages.
Log() - Constructor for class com.wutka.util.Log
 
logBytes(LogSeverity, String, byte[]) - Static method in class com.wutka.util.Log
Logs a text message and a hex dump of data to the default subsystem
logBytes(LogSeverity, String, byte[], int, int) - Static method in class com.wutka.util.Log
Logs a text message and a hex dump of data to the default subsystem
logBytes(LogSeverity, String, String, byte[]) - Static method in class com.wutka.util.Log
Logs a text message and a hex dump of data for a particular subsystem
logBytes(LogSeverity, String, String, byte[], int, int) - Method in class com.wutka.util.FileLogger
Logs an exception and a text message to the file
logBytes(LogSeverity, String, String, byte[], int, int) - Static method in class com.wutka.util.Log
Logs a text message and a hex dump of data for a particular subsystem
logBytes(LogSeverity, String, String, byte[], int, int) - Method in interface com.wutka.util.LogClient
Logs raw data along with a text message.
LogClient - interface com.wutka.util.LogClient.
Interface provided by any classes that want to receive logging messages.
logException(LogSeverity, String, Exception) - Static method in class com.wutka.util.Log
Logs a text message and an exception to the default subsystem
logException(LogSeverity, String, String, Exception) - Method in class com.wutka.util.FileLogger
Logs an exception and a text message to the file
logException(LogSeverity, String, String, Exception) - Static method in class com.wutka.util.Log
Logs a text message for a particular subsystem
logException(LogSeverity, String, String, Exception) - Method in interface com.wutka.util.LogClient
Logs an exception along with a text message.
logMessage(LogSeverity, String) - Static method in class com.wutka.util.Log
Logs a text message to the default subsystem
logMessage(LogSeverity, String, String) - Method in class com.wutka.util.FileLogger
Logs a text message to the file
logMessage(LogSeverity, String, String) - Static method in class com.wutka.util.Log
Logs a text message for a particular subsystem
logMessage(LogSeverity, String, String) - Method in interface com.wutka.util.LogClient
Logs a text message.
LogSeverity - class com.wutka.util.LogSeverity.
An enumeration class providing numeric and string versions of the various log severity levels.
LogSeverity(int, String) - Constructor for class com.wutka.util.LogSeverity
Creates a log severity.

M

main(String[]) - Static method in class com.wutka.util.ServerMain
 
makeHexDump(byte[], int, int) - Static method in class com.wutka.util.Log
Creates a string containing a hex dump of the data bytes
minLevels - Static variable in class com.wutka.util.Log
The minimum levels being logged for each subsystem

N

name - Variable in class com.wutka.util.LogSeverity
 
nameLookup - Static variable in class com.wutka.util.LogSeverity
 

O

ObjectQueue - class com.wutka.util.ObjectQueue.
 
ObjectQueue() - Constructor for class com.wutka.util.ObjectQueue
Creates a new resource pool

P

parseServiceFileLine(String) - Static method in class com.wutka.util.ServiceStarter
 
props - Static variable in class com.wutka.util.Config
The set of configuration items read in from files.

R

recomputeMinLevel(String) - Static method in class com.wutka.util.Log
Recalculate the minimum logging level for a subsystem (and for all)
registerService(String, Object) - Static method in class com.wutka.util.ServiceRegistry
Registers a service
releaseResource(Object) - Method in class com.wutka.util.ResourcePool
Releases a resource back to the pool of available resources
removeClient(LogClient) - Static method in class com.wutka.util.Log
Removes a client from all subsystems it is logging
removeClient(String, LogClient) - Static method in class com.wutka.util.Log
Removes a client that is logging messages for the named subsystems
removeResource(Object) - Method in class com.wutka.util.ResourcePool
Removes a resource from the pool
ResourcePool - class com.wutka.util.ResourcePool.
ResourcePool holds a common set of resources that are given out in first-in-first-out order.
ResourcePool() - Constructor for class com.wutka.util.ResourcePool
Creates a new resource pool
run() - Method in class com.wutka.util.ServiceStarter
Starts a new service

S

ServerMain - class com.wutka.util.ServerMain.
A simple main for starting a server.
ServerMain() - Constructor for class com.wutka.util.ServerMain
 
Service - interface com.wutka.util.Service.
Interface implemented by services that can be started automatically by the ServiceStarter class.
serviceName - Variable in class com.wutka.util.ServiceStarter
 
ServiceRegistry - class com.wutka.util.ServiceRegistry.
Provides a central location for application-wide services to be located by name.
ServiceRegistry() - Constructor for class com.wutka.util.ServiceRegistry
 
services - Static variable in class com.wutka.util.ServiceRegistry
The table of registered services
ServiceStarter - class com.wutka.util.ServiceStarter.
Handles the starting of services by reading a file listing service names and the class names for the service implementation.
ServiceStarter(String, Service) - Constructor for class com.wutka.util.ServiceStarter
Creates a runnable instance that actually starts the service.
ServiceStartupException - exception com.wutka.util.ServiceStartupException.
An exception thrown by a Service object to indicate that the service could not be started.
ServiceStartupException() - Constructor for class com.wutka.util.ServiceStartupException
 
ServiceStartupException(String) - Constructor for class com.wutka.util.ServiceStartupException
 
serviceToStart - Variable in class com.wutka.util.ServiceStarter
 
startService(String) - Method in interface com.wutka.util.Service
Asks the service to start itself using the specified service name
startServices() - Static method in class com.wutka.util.ServiceStarter
Opens the services file and starts the services listed in it.
startServices(String) - Static method in class com.wutka.util.ServiceStarter
Opens the services file and starts the services listed in it
stopService() - Method in interface com.wutka.util.Service
Asks the service to stop itself
systemProps - Static variable in class com.wutka.util.Config
System properties with caseless keys

T

tail - Variable in class com.wutka.util.ObjectQueue
The tail of the queue

U

usedResourceInfo - Variable in class com.wutka.util.ResourcePool
User-defined info about a resource that has been allocated
usedResources - Variable in class com.wutka.util.ResourcePool
Resources that have been allocated out of the pool

W

WARNING - Static variable in class com.wutka.util.LogSeverity
 
wouldLog(String, LogSeverity) - Static method in class com.wutka.util.Log
Returns true if a message for this subsystem and severity would be logged.
writeHeader(LogSeverity, String) - Method in class com.wutka.util.FileLogger
Writes a header into the file
writer - Variable in class com.wutka.util.FileLogger
 
writeTrailer(LogSeverity, String) - Method in class com.wutka.util.FileLogger
Writes a header into the file

A C D E F G H I L M N O P R S T U W