A C D E F G I M O P R S T W

A

AbstractFactory - Class in de.myfoo.commonj.util
Abstract factory class.
AbstractFactory() - Constructor for class de.myfoo.commonj.util.AbstractFactory
 
AbstractManager - Class in de.myfoo.commonj.util
Abtract manger class - parent of all TimerManager and WorkManagers
AbstractManager(ThreadPool) - Constructor for class de.myfoo.commonj.util.AbstractManager
Creates a new instance of AbstractManager.
addWorkItem(WorkItem) - Method in class de.myfoo.commonj.work.ResultCollector
Add a workItem.

C

cancel() - Method in class de.myfoo.commonj.timers.FooTimer
This cancels the timer and all future TimerListener invocations and may be called during the TimerListener.timerExpired method.
compareTo(Object) - Method in class de.myfoo.commonj.work.FooWorkItem
Compare to another work item.
computeNextExecutionTime() - Method in class de.myfoo.commonj.timers.FixedDelayTimer
Compute the next execution time.
computeNextExecutionTime() - Method in class de.myfoo.commonj.timers.FixedRateTimer
Compute the next execution time.
computeNextExecutionTime() - Method in class de.myfoo.commonj.timers.FooTimer
Compute the next exceution time for this timer.
computeNextExecutionTime() - Method in class de.myfoo.commonj.timers.OneShotTimer
Compute the next execution time - never again.
CONFIG_MAX_THREADS - Static variable in class de.myfoo.commonj.util.AbstractFactory
max number of threads in the pool
CONFIG_MIN_THREADS - Static variable in class de.myfoo.commonj.util.AbstractFactory
min number of threads in the pool
CONFIG_QUEUE_LENGTH - Static variable in class de.myfoo.commonj.util.AbstractFactory
length of the queue

D

de.myfoo.commonj.timers - package de.myfoo.commonj.timers
 
de.myfoo.commonj.util - package de.myfoo.commonj.util
 
de.myfoo.commonj.work - package de.myfoo.commonj.work
 

E

execute() - Method in class de.myfoo.commonj.timers.FooTimer
Execute the timer listner.
execute(Runnable) - Method in class de.myfoo.commonj.util.ThreadPool
Arrange for the given command to be executed by a thread in this pool.

F

finalize() - Method in class de.myfoo.commonj.util.AbstractFactory
Cleanup when done.
FixedDelayTimer - Class in de.myfoo.commonj.timers
Fixed delay timer.
FixedDelayTimer(long, long, TimerListener) - Constructor for class de.myfoo.commonj.timers.FixedDelayTimer
Creates a new instance of FixedDelayTimer.
FixedRateTimer - Class in de.myfoo.commonj.timers
Fixed rate timer.
FixedRateTimer(long, long, TimerListener) - Constructor for class de.myfoo.commonj.timers.FixedRateTimer
Creates a new instance of FixedRateTimer.
FooRemoteWorkItem - Class in de.myfoo.commonj.work
Implementation of the remote work item.
FooRemoteWorkItem(Work, WorkListener, WorkManager) - Constructor for class de.myfoo.commonj.work.FooRemoteWorkItem
Creates a new instance of FooRemoteWorkItem.
FooTimer - Class in de.myfoo.commonj.timers
A FooTimer is returned when a TimerListener is scheduled using one of the FooTimerManager.schedule methods.
FooTimer(long, long, TimerListener) - Constructor for class de.myfoo.commonj.timers.FooTimer
Creates a new instance of FooTimer.
FooTimerManager - Class in de.myfoo.commonj.timers
Implementation of the TimerManager.
FooTimerManager(ThreadPool) - Constructor for class de.myfoo.commonj.timers.FooTimerManager
Create a new TimerManager.
FooTimerManagerFactory - Class in de.myfoo.commonj.timers
Factory class for TimerManagers.
FooTimerManagerFactory() - Constructor for class de.myfoo.commonj.timers.FooTimerManagerFactory
 
FooWorkEvent - Class in de.myfoo.commonj.work
Implementation of a work event.
FooWorkEvent(WorkItem, int) - Constructor for class de.myfoo.commonj.work.FooWorkEvent
Creates a new instance of FooWorkEvent.
FooWorkItem - Class in de.myfoo.commonj.work
Implementation of the work item.
FooWorkItem(Work, WorkListener) - Constructor for class de.myfoo.commonj.work.FooWorkItem
Creates a new instance of FooWorkItem.
FooWorkManager - Class in de.myfoo.commonj.work
Implemetation of a WorkManager.
FooWorkManager(ThreadPool) - Constructor for class de.myfoo.commonj.work.FooWorkManager
Creates a new instance of FooWorkManager.
FooWorkManager(ThreadPool, int) - Constructor for class de.myfoo.commonj.work.FooWorkManager
Creates a new instance of FooWorkManager.
FooWorkManagerFactory - Class in de.myfoo.commonj.work
Factory class for WorkManagers.
FooWorkManagerFactory() - Constructor for class de.myfoo.commonj.work.FooWorkManagerFactory
 

G

getException() - Method in class de.myfoo.commonj.work.FooWorkEvent
Get the Exception if one was thorwn by the work.
getMaxDaemons() - Method in class de.myfoo.commonj.work.FooWorkManager
Getter for maxDaemons
getObjectInstance(Object, Name, Context, Hashtable) - Method in class de.myfoo.commonj.timers.FooTimerManagerFactory
Factory method that returns an instance of the requested TimerManager.
getObjectInstance(Object, Name, Context, Hashtable) - Method in class de.myfoo.commonj.work.FooWorkManagerFactory
Factory method that returns an instance of the requested WorkManager.
getPeriod() - Method in class de.myfoo.commonj.timers.FooTimer
Return the period used to compute the time this timer will repeat.
getPinnedWorkManager() - Method in class de.myfoo.commonj.work.FooRemoteWorkItem
This returns a pinned WorkManager which represents the JVM that was used to execute this Work.
getResult() - Method in class de.myfoo.commonj.work.FooWorkItem
Get the result of the work.
getScheduledExecutionTime() - Method in class de.myfoo.commonj.timers.FooTimer
Returns the next absolute scheduled execution time in milliseconds.
getStatus() - Method in class de.myfoo.commonj.work.FooWorkItem
Retruns the status of the in-flight work.
getTimeout() - Method in class de.myfoo.commonj.work.ResultCollector
 
getTimer() - Method in class de.myfoo.commonj.timers.TimerExecutor
Getter for timer
getTimerListener() - Method in class de.myfoo.commonj.timers.FooTimer
Returns the application-supplied TimerListener associated with this Timer.
getTimerManager() - Method in class de.myfoo.commonj.timers.TimerExecutor
Getter for timerManager
getType() - Method in class de.myfoo.commonj.work.FooWorkEvent
Get the event type.
getValue(String, String) - Method in class de.myfoo.commonj.util.AbstractFactory
Get an integer config value.
getWorkItem() - Method in class de.myfoo.commonj.work.FooWorkEvent
Get the work item.

I

isCancelled() - Method in class de.myfoo.commonj.timers.FooTimer
Getter for cancelled
isExpired() - Method in class de.myfoo.commonj.timers.FooTimer
Check if this timer is expired and needs to be fired.
isRunning() - Method in class de.myfoo.commonj.timers.TimerExecutor
Is timer running
isStopped() - Method in class de.myfoo.commonj.timers.FooTimerManager
Returns true if all TimerListeners have completed following stop.
isStopping() - Method in class de.myfoo.commonj.timers.FooTimerManager
Returns true if this TimerManager is stopping or has been stopped.
isSuspended() - Method in class de.myfoo.commonj.timers.FooTimerManager
Returns true if this TimerManager is in the process of or has completed suspending.
isSuspending() - Method in class de.myfoo.commonj.timers.FooTimerManager
Returns true if this TimerManager is in the process of or has completed suspending.

M

managers - Variable in class de.myfoo.commonj.util.AbstractFactory
 

O

OneShotTimer - Class in de.myfoo.commonj.timers
A timer that expiers once and stops exeution.
OneShotTimer(long, TimerListener) - Constructor for class de.myfoo.commonj.timers.OneShotTimer
Creates a new instance of OneShotTimer.

P

period - Variable in class de.myfoo.commonj.timers.FooTimer
 
pool - Variable in class de.myfoo.commonj.util.AbstractManager
 

R

release() - Method in class de.myfoo.commonj.work.FooRemoteWorkItem
Calls the remote Work object's Work.release() method.
ResultCollector - Class in de.myfoo.commonj.work
This class collects the results from workers.
ResultCollector(long) - Constructor for class de.myfoo.commonj.work.ResultCollector
Creates a new ResultCollector.
resume() - Method in class de.myfoo.commonj.timers.FooTimerManager
Resume the TimerManager.
run() - Method in class de.myfoo.commonj.timers.FooTimerManager
run method for the timer thread.
run() - Method in class de.myfoo.commonj.timers.TimerExecutor
run method to execute a timer
run() - Method in class de.myfoo.commonj.work.FooWorkItem
Wrapper around the run method of the work.

S

schedule(TimerListener, Date) - Method in class de.myfoo.commonj.timers.FooTimerManager
Schedules a OneShotTimer to execute at a specified time.
schedule(TimerListener, long) - Method in class de.myfoo.commonj.timers.FooTimerManager
Schedules a TimerListener to execute once after the specified delay.
schedule(TimerListener, Date, long) - Method in class de.myfoo.commonj.timers.FooTimerManager
Schedules a TimerListener to execute repeatedly using fixed-delay execution after the firstTime elapses.
schedule(TimerListener, long, long) - Method in class de.myfoo.commonj.timers.FooTimerManager
Schedules a TimerListener to execute repeatedly using fixed-delay execution after the specified delay.
schedule(Work) - Method in class de.myfoo.commonj.work.FooWorkManager
Dispatches a Work asynchronously.
schedule(Work, WorkListener) - Method in class de.myfoo.commonj.work.FooWorkManager
Dispatches a Work asynchronously.
scheduleAtFixedRate(TimerListener, Date, long) - Method in class de.myfoo.commonj.timers.FooTimerManager
Schedules a TimerListener to execute repeatedly using fixed-rate execution after the firstTime elapses.
scheduleAtFixedRate(TimerListener, long, long) - Method in class de.myfoo.commonj.timers.FooTimerManager
Schedules a TimerListener to execute repeatedly using fixed-rate execution after the specified delay.
scheduledExcecutionTime - Variable in class de.myfoo.commonj.timers.FooTimer
 
setDaemons(List) - Method in class de.myfoo.commonj.work.FooWorkItem
Setter for daemon list.
setException(Throwable) - Method in class de.myfoo.commonj.work.FooWorkEvent
Set Exception
setMaxDaemons(int) - Method in class de.myfoo.commonj.work.FooWorkManager
Setter for maxDaemons
setResultCollector(ResultCollector) - Method in class de.myfoo.commonj.work.FooWorkItem
Set the ResultCollector to support notification
setStatus(int) - Method in class de.myfoo.commonj.work.FooWorkItem
Set the status of the work.
setTimeout(long) - Method in class de.myfoo.commonj.work.ResultCollector
 
setTimer(FooTimer) - Method in class de.myfoo.commonj.timers.TimerExecutor
Setter for timer
setTimerManager(FooTimerManager) - Method in class de.myfoo.commonj.timers.TimerExecutor
Setter for timerManager
shutdown() - Method in class de.myfoo.commonj.timers.FooTimerManager
Stop all timers and shutdown the thread pool.
shutdown() - Method in class de.myfoo.commonj.util.AbstractManager
Shutdown the thread pool.
shutdown() - Method in class de.myfoo.commonj.util.ThreadPool
Shutdown the pool after processing the currently queue tasks.
shutdown() - Method in class de.myfoo.commonj.work.FooWorkManager
Shutdown the thread pool and daemons.
stop() - Method in class de.myfoo.commonj.timers.FooTimer
Stop the timer.
stop() - Method in class de.myfoo.commonj.timers.FooTimerManager
Destroy the TimerManager.
stopped - Variable in class de.myfoo.commonj.timers.FooTimer
 
suspend() - Method in class de.myfoo.commonj.timers.FooTimerManager
Suspend the TimerManager.

T

ThreadPool - Class in de.myfoo.commonj.util
Thread pool implemetation to execute Work and Timers.
ThreadPool(int, int, int) - Constructor for class de.myfoo.commonj.util.ThreadPool
Creates a new instance of ThreadPool.
TimerExecutor - Class in de.myfoo.commonj.timers
Timer executor.
TimerExecutor(FooTimer, FooTimerManager) - Constructor for class de.myfoo.commonj.timers.TimerExecutor
Creates a new instance of TimerExecutor.

W

waitForAll(Collection, long) - Method in class de.myfoo.commonj.work.FooWorkManager
Wait for all WorkItems in the collection to finish successfully or otherwise.
waitForAll() - Method in class de.myfoo.commonj.work.ResultCollector
Wait for workers/agents to complete.
waitForAny(Collection, long) - Method in class de.myfoo.commonj.work.FooWorkManager
Wait for any of the WorkItems in the collection to finish.
waitForAny() - Method in class de.myfoo.commonj.work.ResultCollector
Wait for workers/agents to complete.
waitForStop(long) - Method in class de.myfoo.commonj.timers.FooTimerManager
Blocks until all TimerListeners have completed execution after a stop request, or the timeout occurs, or the current thread is interrupted, whichever happens first.
waitForSuspend(long) - Method in class de.myfoo.commonj.timers.FooTimerManager
Blocks until all TimerListeners have completed execution after a suspend request, or the timeout occurs, or the current thread is interrupted, whichever happens first.
work - Variable in class de.myfoo.commonj.work.FooWorkItem
 
workDone() - Method in class de.myfoo.commonj.work.ResultCollector
Let the collector know that this work is finished.

A C D E F G I M O P R S T W