Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep
A B C D F G H I K L M N O P Q R S T U V W

A

allocate(int) - Static method in class com.flexstor.common.threadmgr.ThreadManager
Allocates the specified number of threads in the default pool.
allocate(String, int) - Static method in class com.flexstor.common.threadmgr.ThreadManager
Allocates the specified number of threads in the specified pool.
allocate(int) - Method in class com.flexstor.common.threadmgr.ThreadPool
 

B

BooleanLock - class com.flexstor.common.threadmgr.BooleanLock.
Useful class to hide away all the implementation of a locking mechanism using wait()/notifyAll() This class makes missed notifications impossible and provides an interruptible, timeout-capable, technique for providing exclusive access to a block of code.
BooleanLock(boolean) - Constructor for class com.flexstor.common.threadmgr.BooleanLock
Sets the value of the lock to an initial state.
BooleanLock() - Constructor for class com.flexstor.common.threadmgr.BooleanLock
Sets the initial value of the lock to false.
bActive - Variable in class com.flexstor.common.threadmgr.ManagedThread
 
bDisableAll - Static variable in class com.flexstor.common.threadmgr.ThreadManager
 
bQuit - Variable in class com.flexstor.common.threadmgr.ManagedThread
 

C

callback - Variable in class com.flexstor.common.threadmgr.ManagedThread
 
clearAll() - Method in class com.flexstor.common.threadmgr.ThreadPool
 
com.flexstor.common.threadmgr - package com.flexstor.common.threadmgr
 
consumer - Variable in class com.flexstor.common.threadmgr.ManagedThread
 
createPool(String, int) - Static method in class com.flexstor.common.threadmgr.ThreadManager
Creates a thread pool with the specified name and number of threads.

D

DEFAULT_POOL - Static variable in class com.flexstor.common.threadmgr.ThreadManager
 
disableThreading() - Static method in class com.flexstor.common.threadmgr.ThreadManager
Disables all threading, so that a call to requestService() will call consumer.processService() in the current thread.

F

FlexThreadGroup - class com.flexstor.common.threadmgr.FlexThreadGroup.
Thread Group for use with ThreadManager
FlexThreadGroup(String) - Constructor for class com.flexstor.common.threadmgr.FlexThreadGroup
 

G

getActiveThreads() - Static method in class com.flexstor.common.threadmgr.ThreadManager
Get a list of the active threads in the default pool.
getActiveThreads(String) - Static method in class com.flexstor.common.threadmgr.ThreadManager
Get a list of the active threads in the specified pool.
getActiveThreads() - Method in class com.flexstor.common.threadmgr.ThreadPool
 
getAllActiveThreads() - Static method in class com.flexstor.common.threadmgr.ThreadManager
Get a list of the active threads in all pool.
getInstance() - Static method in class com.flexstor.common.threadmgr.ThreadManager
Returns an instance of this class.
getKey() - Static method in class com.flexstor.common.threadmgr.NotificationManager
Obtains a key to be used during sleep, wake and getValue.
getThread() - Method in class com.flexstor.common.threadmgr.ThreadPool
 
getThreadGroup() - Static method in class com.flexstor.common.threadmgr.ThreadManager
Get the FlexThreadGroup of the default thread pool
getThreadGroup(String) - Static method in class com.flexstor.common.threadmgr.ThreadManager
Get the FlexThreadGroup specified by the argument
getThreadGroup() - Method in class com.flexstor.common.threadmgr.ThreadPool
 
getThreadPool(String, boolean) - Static method in class com.flexstor.common.threadmgr.ThreadManager
Get a Thread Pool.
getValue(String) - Static method in class com.flexstor.common.threadmgr.NotificationManager
Retrieves the object stored by the caller of wake(String sKey, Object returnValue).
group - Variable in class com.flexstor.common.threadmgr.ThreadPool
 

H

htPool - Static variable in class com.flexstor.common.threadmgr.ThreadManager
 

I

IDENTIFIER - Static variable in class com.flexstor.common.threadmgr.FlexThreadGroup
 
instance - Static variable in class com.flexstor.common.threadmgr.ThreadManager
 
isAborted() - Method in class com.flexstor.common.threadmgr.ManagedThread
 
isAborted() - Static method in class com.flexstor.common.threadmgr.ThreadManager
Check if the current thread is signaled to abort.
isActive() - Method in class com.flexstor.common.threadmgr.ManagedThread
 
isFalse() - Method in class com.flexstor.common.threadmgr.BooleanLock
Returns true if lock is set to false, false otherwise.
isTrue() - Method in class com.flexstor.common.threadmgr.BooleanLock
Returns true if lock is set to true, false, otherwise.

K

killAll(boolean) - Method in class com.flexstor.common.threadmgr.ThreadPool
 

L

listeners - Static variable in class com.flexstor.common.threadmgr.NotificationManager
 
lock - Variable in class com.flexstor.common.threadmgr.ManagedThread
 
lock - Variable in class com.flexstor.common.threadmgr.ThreadPool
 

M

ManagedThread - class com.flexstor.common.threadmgr.ManagedThread.
Specialized thread that is used by ThreadManager
ManagedThread(FlexThreadGroup, String) - Constructor for class com.flexstor.common.threadmgr.ManagedThread
Creates a new thread for use with ThreadManager.
myself - Variable in class com.flexstor.common.threadmgr.ManagedThread
 

N

NoSuchKeyException - exception com.flexstor.common.threadmgr.NoSuchKeyException.
Exception thrown if a caller of the NotificationManager attempts to call sleep(sKey) or wake(sKey) on a Key not set by the NotificationManager itself.
NoSuchKeyException(String) - Constructor for class com.flexstor.common.threadmgr.NoSuchKeyException
 
NotificationManager - class com.flexstor.common.threadmgr.NotificationManager.
This class manages notifications in a multi-threaded environment in such a way that is not required for a class to deal with wait() and notify()/notifyAll() in its code.
NotificationManager() - Constructor for class com.flexstor.common.threadmgr.NotificationManager
 
nAllocated - Variable in class com.flexstor.common.threadmgr.ThreadPool
 
nNextThreadId - Variable in class com.flexstor.common.threadmgr.ThreadPool
 

O

oParam - Variable in class com.flexstor.common.threadmgr.ManagedThread
 

P

processService(Object) - Method in interface com.flexstor.common.threadmgr.ThreadConsumerI
The method that will be called within the new thread.

Q

quitTasks(boolean) - Method in class com.flexstor.common.threadmgr.ManagedThread
Terminates this thread.

R

removeKey(String) - Static method in class com.flexstor.common.threadmgr.NotificationManager
Remove a key from the Manager.
replaceDeadThread(ManagedThread) - Static method in class com.flexstor.common.threadmgr.ThreadManager
Called by FlexThreadGroup when a thread dies.
replaceDeadThread(String, ManagedThread) - Static method in class com.flexstor.common.threadmgr.ThreadManager
Called by FlexThreadGroup when a thread dies.
replaceDeadThread(ManagedThread) - Method in class com.flexstor.common.threadmgr.ThreadPool
 
requestService(ThreadConsumerI, ThreadCallbackI, int, Object) - Method in class com.flexstor.common.threadmgr.ManagedThread
Runs a request in this thread.
requestService(String, ThreadConsumerI, ThreadCallbackI, int, Object) - Method in class com.flexstor.common.threadmgr.ManagedThread
Runs a request in this thread.
requestService(ThreadConsumerI, Object) - Static method in class com.flexstor.common.threadmgr.ThreadManager
Instructs the thread manager to run a task.
requestService(ThreadConsumerI, ThreadCallbackI, Object) - Static method in class com.flexstor.common.threadmgr.ThreadManager
Instructs the thread manager to run a task.
requestService(ThreadConsumerI, ThreadCallbackI, int, Object) - Static method in class com.flexstor.common.threadmgr.ThreadManager
Instructs the thread manager to run a task.
requestService(String, String, ThreadConsumerI, Object) - Static method in class com.flexstor.common.threadmgr.ThreadManager
Instructs the thread manager to run a task.
requestService(String, String, ThreadConsumerI, ThreadCallbackI, Object) - Static method in class com.flexstor.common.threadmgr.ThreadManager
Instructs the thread manager to run a task.
requestService(String, String, ThreadConsumerI, ThreadCallbackI, int, Object) - Static method in class com.flexstor.common.threadmgr.ThreadManager
Instructs the thread manager to run a task.
returnThread(ManagedThread) - Static method in class com.flexstor.common.threadmgr.ThreadManager
Called by ManagedThread to let pool know that this thread is done.
returnThread(String, ManagedThread) - Static method in class com.flexstor.common.threadmgr.ThreadManager
Called by ManagedThread to let pool know that this thread is done.
returnThread(ManagedThread) - Method in class com.flexstor.common.threadmgr.ThreadPool
 
returnValues - Static variable in class com.flexstor.common.threadmgr.NotificationManager
 
run() - Method in class com.flexstor.common.threadmgr.ManagedThread
 

S

sDefaultName - Variable in class com.flexstor.common.threadmgr.ManagedThread
 
sPoolName - Variable in class com.flexstor.common.threadmgr.ThreadPool
 
setActive(boolean) - Method in class com.flexstor.common.threadmgr.ManagedThread
 
setValue(boolean) - Method in class com.flexstor.common.threadmgr.BooleanLock
If current lock's value is different from newValue, sets it to newValue and notifies other threads of this change.
sleep(String) - Static method in class com.flexstor.common.threadmgr.NotificationManager
Suspend current thread execution.
suspend - Variable in class com.flexstor.common.threadmgr.ManagedThread
 

T

ThreadCallbackI - interface com.flexstor.common.threadmgr.ThreadCallbackI.
Callback interface to be used with ThreadManager
ThreadConsumerI - interface com.flexstor.common.threadmgr.ThreadConsumerI.
Consumer interface to be used with ThreadManager
ThreadManager - class com.flexstor.common.threadmgr.ThreadManager.
Global thread manager for FLEXSTOR.db
ThreadManager() - Constructor for class com.flexstor.common.threadmgr.ThreadManager
Creates an instance of the thread manager.
ThreadPool - class com.flexstor.common.threadmgr.ThreadPool.
Global thread manager for FLEXSTOR.db
ThreadPool() - Constructor for class com.flexstor.common.threadmgr.ThreadPool
 
ThreadPool(String) - Constructor for class com.flexstor.common.threadmgr.ThreadPool
 
threadPool - Variable in class com.flexstor.common.threadmgr.ThreadPool
 
threadTaskEnd(ThreadConsumerI, Object) - Method in interface com.flexstor.common.threadmgr.ThreadCallbackI
Called when a thread task has just finished.
threadTaskStart(ThreadConsumerI, Object) - Method in interface com.flexstor.common.threadmgr.ThreadCallbackI
Called when a thread task is about to begin.

U

uncaughtException(Thread, Throwable) - Method in class com.flexstor.common.threadmgr.FlexThreadGroup
 
unregisterAll(boolean) - Static method in class com.flexstor.common.threadmgr.ThreadManager
Unregisters and kills all threads managed by ThreadManager for the default pool.
unregisterAll(String, boolean) - Static method in class com.flexstor.common.threadmgr.ThreadManager
Unregisters and kills all threads managed by ThreadManager for the specified pool.
unregisterAllPools(boolean) - Static method in class com.flexstor.common.threadmgr.ThreadManager
Unregisters and kills all threads managed by ThreadManager for all pools.

V

value - Variable in class com.flexstor.common.threadmgr.BooleanLock
 

W

waitToFinish() - Method in class com.flexstor.common.threadmgr.ManagedThread
 
waitToSetFalse() - Method in class com.flexstor.common.threadmgr.BooleanLock
Waits until it can set the lock to false.
waitToSetFalse(long) - Method in class com.flexstor.common.threadmgr.BooleanLock
Waits up to msTimeOut milliseconds to set the lock to false.
waitToSetTrue() - Method in class com.flexstor.common.threadmgr.BooleanLock
Waits until it can set the lock to true.
waitToSetTrue(long) - Method in class com.flexstor.common.threadmgr.BooleanLock
Waits up to msTimeOut milliseconds to set the lock to true.
waitUntilFalse() - Method in class com.flexstor.common.threadmgr.BooleanLock
Waits until lock is false.
waitUntilFalse(long) - Method in class com.flexstor.common.threadmgr.BooleanLock
Waits up to msTimeOut milliseconds until another thread sets the lock to false.
waitUntilStateIs(boolean) - Method in class com.flexstor.common.threadmgr.BooleanLock
Waits until lock is set to state by another thread.
waitUntilStateIs(boolean, long) - Method in class com.flexstor.common.threadmgr.BooleanLock
Waits up to msTimeOut milliseconds until another thread sets the lock to the state being checked.
waitUntilTrue() - Method in class com.flexstor.common.threadmgr.BooleanLock
Waits until lock is true.
waitUntilTrue(long) - Method in class com.flexstor.common.threadmgr.BooleanLock
Waits up to msTimeOut milliseconds until another thread sets the lock to true.
wake(String) - Static method in class com.flexstor.common.threadmgr.NotificationManager
Awake a sleeping thread.
wake(String, Object) - Static method in class com.flexstor.common.threadmgr.NotificationManager
Awake a sleeping thread.

A B C D F G H I K L M N O P Q R S T U V W