|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.amino.Runtime
public final class Runtime
Controlling Runtime class for Amino project. Controls many aspects of underlying implementation of Amino packages.
Method Summary | |
---|---|
static int |
getMajorVersion()
Return major version number. |
static int |
getMaxAvailableWorkerThreads()
Return maximum number of worker threads. |
static int |
getMinorVersion()
Return minor version number. |
static int |
getNumberAvailableWorkerThreads()
Return number of available worker threads. |
static java.lang.String |
getVersion()
Return current version of Amino package. |
static boolean |
manageWorkerThreads()
Return whether Amino Runtime is managing worker threads. |
static int |
releaseThreads(int numberThreads)
Increase count of threads available to participate in work. |
static int |
reserveThreads(int numberThreads)
Decrease count of threads available to participate in work if manageWorkerThreads returns true. |
static void |
setManageWorkerThreads(boolean b)
Used to determine whether the Amino Runtime controls how many worker threads are active at any one time within Amino packages. |
static void |
setMaxAvailableWorkerThreads(int n)
Set upper limit of threads available to work within Amino packages. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static int getMajorVersion()
public static int getMinorVersion()
public static java.lang.String getVersion()
public static boolean manageWorkerThreads()
public static void setManageWorkerThreads(boolean b)
b
- true if Amino packages should check the Runtime settings for
how they use worker threads.public static int getNumberAvailableWorkerThreads()
public static int getMaxAvailableWorkerThreads()
public static void setMaxAvailableWorkerThreads(int n)
n
- Maximum number of threads to be available for work within
Amino packages.public static int reserveThreads(int numberThreads)
numberThreads
- Number of threads to remove from total count of available
worker threads
manageWorkerThreads()
public static int releaseThreads(int numberThreads)
numberThreads
- Number of additional threads now available
getMaxAvailableWorkerThreads()
,
getMaxAvailableWorkerThreads()
,
manageWorkerThreads()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |