Index

A B C D E F G I J L M N O P R S T W 
All Classes and Interfaces|All Packages|Constant Field Values

A

acquire() - Method in class jadex.concurrent.Token
Try to acquire the token.
acquired - Variable in class jadex.concurrent.Token
True, if the token is acquired.
addFinishListener(IChangeListener<Void>) - Method in interface jadex.concurrent.IThreadPool
Add a finished listener.
addFinishListener(IChangeListener<Void>) - Method in class jadex.concurrent.JavaThreadPool
Add a finish listener;
addFinishListener(IChangeListener<Void>) - Method in class jadex.concurrent.ThreadPool
Add a finish listener;
addThread() - Method in class jadex.concurrent.ThreadPool
 
addThreads(int) - Method in class jadex.concurrent.ThreadPool
Create some pool.
AGGRESSIVE - Static variable in class jadex.concurrent.MonitoredThreadPoolExecutor
If true, be more aggressive when creating threads.

B

BASE_TCNT - Static variable in class jadex.concurrent.MonitoredThreadPoolExecutor
Starting number of threads.
blockThread(Object) - Method in class jadex.concurrent.Executor
Adjust to execution of current thread to be blocked.
borrow() - Method in class jadex.concurrent.MonitoredThread
Notify the pool that the thread is borrowed and return the return to the pool is expected to be delayed.
borrow(MonitoredThread) - Method in class jadex.concurrent.MonitoredThreadPoolExecutor
Borrows the thread.
borrowed - Variable in class jadex.concurrent.MonitoredThread
Flag if the thread was borrowed.
borrowNoUnpark(MonitoredThread) - Method in class jadex.concurrent.MonitoredThreadPoolExecutor
Borrows the thread without unparking.

C

calls - Static variable in class jadex.concurrent.ThreadPool
Service calls per runnable class.
code() - Method in class jadex.concurrent.Executor
The code to be run.
compareTo(Object) - Method in class jadex.concurrent.LoadManagingExecutionService.Task
Return a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
concurrency - Variable in class jadex.concurrent.LoadManagingExecutionService
The number of currently running tasks.
COUNTER - Static variable in class jadex.concurrent.LoadManagingExecutionService
The counter.
createThreadPool() - Static method in class jadex.concurrent.ThreadPoolFactory
Create a local thread pool.
currentThread() - Static method in class jadex.concurrent.MonitoredThreadPoolExecutor
Gets the current MonitoredThread, for convenience.

D

daemon - Variable in class jadex.concurrent.ThreadPool
The daemon flag.
DEBUG - Static variable in class jadex.concurrent.MonitoredThreadPoolExecutor
Print debug messages
departure - Variable in class jadex.concurrent.MonitoredThread
Departure time of the thread from the pool.
dispose() - Method in interface jadex.concurrent.IThreadPool
Shutdown the thread pool.
dispose() - Method in class jadex.concurrent.JavaThreadPool
Shutdown the thread pool.
dispose() - Method in class jadex.concurrent.ThreadPool
Shutdown the task pool

E

enqueuetimes - Variable in class jadex.concurrent.ThreadPool
The current throughput of the pool (average of waiting times).
executable - Variable in class jadex.concurrent.Executor
The executable.
executable - Variable in class jadex.concurrent.LoadManagingExecutionService.Task
The task.
execute() - Method in class jadex.concurrent.Executor
Make sure a thread is executing the code.
execute() - Method in interface jadex.concurrent.IExecutable
Execute the executable.
execute(IExecutable, double) - Method in class jadex.concurrent.LoadManagingExecutionService
Execute a task.
execute(Runnable) - Method in interface jadex.concurrent.IThreadPool
Execute a task in its own thread.
execute(Runnable) - Method in class jadex.concurrent.JavaThreadPool
Execute a task in its own thread.
execute(Runnable) - Method in class jadex.concurrent.MonitoredThreadPoolExecutor
 
execute(Runnable) - Method in class jadex.concurrent.ThreadPool
Execute a task in its own thread.
executeForever(Runnable) - Method in interface jadex.concurrent.IThreadPool
Execute a task in its own thread.
executeForever(Runnable) - Method in class jadex.concurrent.JavaThreadPool
Execute a task in its own thread.
executeForever(Runnable) - Method in class jadex.concurrent.ThreadPool
Execute a task in its own thread.
executor - Variable in class jadex.concurrent.JavaThreadPool
The executor service.
executor - Variable in class jadex.concurrent.LoadManagingExecutionService
The executor for performing management operations.
Executor - Class in jadex.concurrent
A helper class for running a single instance of code using the thread pool.
Executor(IThreadPool) - Constructor for class jadex.concurrent.Executor
Create an executor object.
Executor(IThreadPool, IExecutable) - Constructor for class jadex.concurrent.Executor
Create an executor object.
EXECUTOR - Static variable in class jadex.concurrent.Executor
The executor belonging to a thread.
exethreadcnt - Variable in class jadex.concurrent.Executor
The number of current threads for this executor.

F

finished - Variable in class jadex.concurrent.ThreadPool
Boolean if already finished.

G

getDeparture() - Method in class jadex.concurrent.MonitoredThread
Gets the time the thread departed from the pool.
getNumber() - Method in class jadex.concurrent.MonitoredThread
Gets the thread number.
getTask() - Method in class jadex.concurrent.ThreadPool.ServiceThread
Get the runnable (the task).
getTask(Thread) - Method in class jadex.concurrent.ThreadPool
The task for a given thread.
getThreadCount() - Method in class jadex.concurrent.Executor
Get the number of threads (running blocked) for this executor.
getThreadPool(String) - Static method in class jadex.concurrent.ThreadPoolFactory
Get the global thread pool instance.
group - Variable in class jadex.concurrent.ThreadPool
The thread group.

I

idle - Variable in class jadex.concurrent.MonitoredThreadPoolExecutor
Number of idle threads in the pool.
IExecutable - Interface in jadex.concurrent
Interface for objects that can be executed.
invokeLater(Runnable) - Method in interface jadex.concurrent.ISynchronizator
Add an action from external thread.
invokeSynchronized(Runnable) - Method in interface jadex.concurrent.ISynchronizator
Invoke some code synchronized with other behavior.
isBlocked() - Method in class jadex.concurrent.MonitoredThread
Returns if the thread is currently blocked.
isBorrowed() - Method in class jadex.concurrent.MonitoredThread
Returns if the thread is currently borrowed.
isExternalThread() - Method in interface jadex.concurrent.ISynchronizator
Check if the external thread is accessing.
isRunning() - Method in class jadex.concurrent.Executor
Check if the executor is running.
isRunning() - Method in interface jadex.concurrent.IThreadPool
Test if the thread pool is running.
isRunning() - Method in class jadex.concurrent.JavaThreadPool
Test if the thread pool is running.
isRunning() - Method in class jadex.concurrent.ThreadPool
Test if the thread pool is running.
isSwitching() - Method in class jadex.concurrent.Executor
Check if the executor wants to switch threads.
ISynchronizator - Interface in jadex.concurrent
Synchronize some behavior.
IThreadPool - Interface in jadex.concurrent
Common interface for different thread pool implementations.

J

jadex.concurrent - package jadex.concurrent
 
JavaThreadPool - Class in jadex.concurrent
A thread pool based on the java.util.concurrent package.
JavaThreadPool(boolean) - Constructor for class jadex.concurrent.JavaThreadPool
Create a new ThreadPool5.

L

limit - Variable in class jadex.concurrent.LoadManagingExecutionService
A limit for concurrency (to avoid exceeding the timeslice).
listeners - Variable in class jadex.concurrent.JavaThreadPool
The finished listeners.
listeners - Variable in class jadex.concurrent.ThreadPool
The finished listeners.
load - Variable in class jadex.concurrent.LoadManagingExecutionService
The desired CPU load.
LoadManagingExecutionService - Class in jadex.concurrent
This class allows to perform background operations with adjustable CPU utilization.
LoadManagingExecutionService(IThreadPool) - Constructor for class jadex.concurrent.LoadManagingExecutionService
Create an execution service with default settings (timeslice=50).
LoadManagingExecutionService(IThreadPool, long) - Constructor for class jadex.concurrent.LoadManagingExecutionService
Create an execution service with given settings.
LoadManagingExecutionService.Task - Class in jadex.concurrent
A task info holds a task and meta information.
LOSS_THRESHOLD - Static variable in class jadex.concurrent.MonitoredThreadPoolExecutor
Threshold after which a _blocking_ thread is considered stolen.
LOSS_THRESHOLD_BUSY - Static variable in class jadex.concurrent.MonitoredThreadPoolExecutor
Threshold after which a _non-blocking_ thread is considered stolen.

M

main(String[]) - Static method in class jadex.concurrent.LoadManagingExecutionService
 
main(String[]) - Static method in class jadex.concurrent.MultiThreadTest
Main for testing.
main(String[]) - Static method in class jadex.concurrent.ThreadPool
Main for testing.
main(String[]) - Static method in class jadex.concurrent.ThreadTest
Main for testing.
markParked() - Method in class jadex.concurrent.ThreadPool.ServiceThread
(method "park" already exists in android - do not overwrite)
markUnpark() - Method in class jadex.concurrent.ThreadPool.ServiceThread
(method "unpark" already exists in android - do not overwrite)
maxparked - Variable in class jadex.concurrent.ThreadPool
The maximum number of parked threads.
maxwait - Variable in class jadex.concurrent.ThreadPool
The time a task should maximum wait.
MONIT_CYCLE - Static variable in class jadex.concurrent.MonitoredThreadPoolExecutor
Min.
MONIT_THRESHOLD - Static variable in class jadex.concurrent.MonitoredThreadPoolExecutor
Threshold for activating monitoring.
monitor - Variable in class jadex.concurrent.Executor
The monitor to synchronize with at thread start (if any).
MonitoredThread - Class in jadex.concurrent
Thread class used by MonitoredThreadPoolExecutor, contains additional state about the thread to monitor thread behavior.
MonitoredThread(Runnable, MonitoredThreadPoolExecutor) - Constructor for class jadex.concurrent.MonitoredThread
Creates the thread.
MonitoredThreadPoolExecutor - Class in jadex.concurrent
Thread pool executor based on the Java 5 ThreadPoolExecutor class.
MonitoredThreadPoolExecutor() - Constructor for class jadex.concurrent.MonitoredThreadPoolExecutor
 
monitoring - Variable in class jadex.concurrent.MonitoredThreadPoolExecutor
Flag for monitoring thread activity.
monitoringlock - Variable in class jadex.concurrent.MonitoredThreadPoolExecutor
The lock for the monitoring thread.
monitthread - Variable in class jadex.concurrent.MonitoredThreadPoolExecutor
The monitoring thread.
MultiThreadTest - Class in jadex.concurrent
This test class shows how the thread based scheduler works.
MultiThreadTest() - Constructor for class jadex.concurrent.MultiThreadTest
 

N

notified - Variable in class jadex.concurrent.ThreadPool.ServiceThread
 
notifyFinishListeners() - Method in class jadex.concurrent.JavaThreadPool
Notify the finish listeners.
notifyFinishListeners() - Method in class jadex.concurrent.ThreadPool
Notify the finish listeners.
number - Variable in class jadex.concurrent.MonitoredThread
The thread number assigned to the thread.

O

origin - Variable in class jadex.concurrent.MonitoredThread
Thread pool executor that created the thread.

P

parked - Variable in class jadex.concurrent.ThreadPool
The list of threads not used.
pool - Variable in class jadex.concurrent.LoadManagingExecutionService
The thread pool.
pool - Variable in class jadex.concurrent.ThreadPool
The pool of service threads.
poolcnt - Static variable in class jadex.concurrent.ThreadPool
The static thread pool number.
PRINT_DELAY - Static variable in class jadex.concurrent.ThreadPool
Print every 10 seconds.
priority - Variable in class jadex.concurrent.LoadManagingExecutionService.Task
The priority.
PROFILING - Static variable in class jadex.concurrent.ThreadPool
Enable call profiling.

R

releaseLock(Semaphore) - Static method in class jadex.concurrent.MonitoredThreadPoolExecutor
Releases the semaphore, includes null check.
remove() - Method in class jadex.concurrent.ThreadPool.ServiceThread
Remove the service thread from the pool.
run() - Method in class jadex.concurrent.Executor
Execute the code.
run() - Method in class jadex.concurrent.LoadManagingExecutionService.Task
Perform the task once and notify the manager.
run() - Method in class jadex.concurrent.ThreadPool.ServiceThread
Dequeue an element from the queue and execute it.
running - Variable in class jadex.concurrent.Executor
Flag indicating if the thread is running.
running - Variable in class jadex.concurrent.ThreadPool
The running flag.

S

seqnr - Variable in class jadex.concurrent.LoadManagingExecutionService.Task
The sequence number.
ServiceThread() - Constructor for class jadex.concurrent.ThreadPool.ServiceThread
Create a new thread.
setDeparture(long) - Method in class jadex.concurrent.MonitoredThread
Sets the time the thread departed from the pool.
setExecutable(IExecutable) - Method in class jadex.concurrent.Executor
Set the executable.
setNumber(int) - Method in class jadex.concurrent.MonitoredThread
Sets the thread number.
shutdown - Variable in class jadex.concurrent.JavaThreadPool
Future used for performing shutdown.
shutdown() - Method in class jadex.concurrent.Executor
Shutdown the executor.
shutdownfutures - Variable in class jadex.concurrent.Executor
The shutdown futures.
start - Variable in class jadex.concurrent.LoadManagingExecutionService
The last start time.
strategy - Variable in class jadex.concurrent.ThreadPool
The strategy.
switchThread(Object, Throwable) - Method in class jadex.concurrent.Executor
Cease execution of the current thread and switch to another thread waiting for the given monitor.
switchtos - Variable in class jadex.concurrent.Executor
The monitors of blocked threads that need to be reactivated.

T

task - Variable in class jadex.concurrent.ThreadPool.ServiceThread
The actual task.
Task(IExecutable, double) - Constructor for class jadex.concurrent.LoadManagingExecutionService.Task
Create a new task info for a given task.
taskPerformed(LoadManagingExecutionService.Task) - Method in class jadex.concurrent.LoadManagingExecutionService
Called when a task has been performed once.
tasks - Variable in class jadex.concurrent.LoadManagingExecutionService
The tasks to do.
tasks - Variable in class jadex.concurrent.ThreadPool
The tasks to execute.
terminated - Variable in class jadex.concurrent.ThreadPool.ServiceThread
 
threadcnt - Static variable in class jadex.concurrent.ThreadPool
The thread number.
threadpool - Variable in class jadex.concurrent.Executor
The thread pool.
ThreadPool - Class in jadex.concurrent
A thread pool manages pool and saves resources and time by precreating and reusing pool.
ThreadPool() - Constructor for class jadex.concurrent.ThreadPool
Create a new thread pool.
ThreadPool(boolean, IPoolStrategy) - Constructor for class jadex.concurrent.ThreadPool
Create a new thread pool.
ThreadPool(boolean, IPoolStrategy, long) - Constructor for class jadex.concurrent.ThreadPool
Create a new thread pool.
ThreadPool(IPoolStrategy) - Constructor for class jadex.concurrent.ThreadPool
Create a new thread pool.
THREADPOOL_JAVA5 - Static variable in class jadex.concurrent.ThreadPoolFactory
The java 5.0 thread pool implementation.
THREADPOOL_STANDARD - Static variable in class jadex.concurrent.ThreadPoolFactory
The standard (1.4 compliant) thread pool implementation.
ThreadPool.ServiceThread - Class in jadex.concurrent
A service thread executes tasks.
ThreadPoolFactory - Class in jadex.concurrent
Factory class for obtaining a thread pool.
ThreadPoolFactory() - Constructor for class jadex.concurrent.ThreadPoolFactory
 
threadpools - Static variable in class jadex.concurrent.ThreadPoolFactory
The threadpools per name.
threads - Variable in class jadex.concurrent.MonitoredThreadPoolExecutor
The threads in the pool.
ThreadTest - Class in jadex.concurrent
This test class shows how the thread based scheduler works.
ThreadTest() - Constructor for class jadex.concurrent.ThreadTest
Create a new thread test.
throwables - Variable in class jadex.concurrent.Executor
The exceptions (if any) to be thrown in threads that need to be reactivated.
timer - Variable in class jadex.concurrent.ThreadPool
Rescue timer that checks if progress is made and tasks are scheduled.
timeslice - Variable in class jadex.concurrent.LoadManagingExecutionService
The max time slice (in ms).
Token - Class in jadex.concurrent
A token is initially available can be acquired once.
Token() - Constructor for class jadex.concurrent.Token
 
toString() - Method in class jadex.concurrent.Executor
String representation.
toString() - Method in class jadex.concurrent.LoadManagingExecutionService.Task
Create a string representation of the task info.
toString() - Method in class jadex.concurrent.ThreadPool.ServiceThread
Get the string representation.
toString() - Method in class jadex.concurrent.ThreadPool
Get the string representation.
tryBorrow() - Static method in class jadex.concurrent.MonitoredThread
Try to borrow the thread.

W

waits - Static variable in class jadex.concurrent.MultiThreadTest
The waiting pool.
wanttorun - Variable in class jadex.concurrent.Executor
Flag indicating if the thread wants to run.
A B C D E F G I J L M N O P R S T W 
All Classes and Interfaces|All Packages|Constant Field Values