|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjava.lang.Thread
okuyama.base.util.HelperPool
public class HelperPool
Helperの蓄積と状態の管理を行うスレッド.
入れ子のクラスの概要 |
---|
クラス java.lang.Thread から継承された入れ子のクラス/インタフェース |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
フィールドの概要 |
---|
クラス java.lang.Thread から継承されたフィールド |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
コンストラクタの概要 | |
---|---|
HelperPool()
|
メソッドの概要 | |
---|---|
static void |
addParameterQueue(java.lang.Object[] params)
Helper用のパラメータキューに追加. |
static void |
addSpecificationParameterQueue(java.lang.String helperName,
java.lang.Object[] params)
Helper用のパラメータキューに追加. |
static void |
addSpecificationParameterQueue(java.lang.String helperName,
java.lang.Object[] params,
boolean debug)
Helper用のパラメータキューに追加. |
static void |
cleanEndHelper(int helperHashCode)
Helperが終了後のリソースを破棄する. |
static void |
createUniqueHelperParamQueue(java.lang.String uniqueQueueName,
int size)
オリジナルのキュー領域を作成する. |
static int |
getActiveHelperInstanceCount(java.lang.String helperName)
|
static AbstractHelper |
getHelper(java.lang.String helperName)
Helperインスタンスを貸し出す. |
static java.lang.String |
getHelperStatus(int helperHashCode)
指定したHelperのステータスを返す. |
static int |
getParameterQueueSize(java.lang.String queueName)
パラメータキューのサイズを返す. |
static java.lang.Object |
getReturnParam(int helperHashCode)
Helperが終了時にセットした返却値を取得する. |
static void |
initializeHelperPool()
明示的に初期化を行う |
static void |
managedHelperConfig(HelperConfigMap helperConfigMap)
Helperのプールを初期化する. |
static java.lang.Object[] |
pollParameterQueue()
Helper用のパラメータキューから取得 全てのHelper共通 |
static java.lang.Object[] |
pollSpecificationParameterQueue(java.lang.String helperName)
Helper用のパラメータキューに追加|. |
void |
poolEnd()
|
static void |
returnHelper(java.lang.String helperName,
AbstractHelper helper)
Helperインスタンスを返す. |
void |
run()
|
クラス java.lang.Thread から継承されたメソッド |
---|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
クラス java.lang.Object から継承されたメソッド |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
コンストラクタの詳細 |
---|
public HelperPool()
メソッドの詳細 |
---|
public void run()
java.lang.Runnable
内の run
java.lang.Thread
内の run
public static void initializeHelperPool()
public static AbstractHelper getHelper(java.lang.String helperName) throws BatchException
String
- helperName
BatchException
public static void returnHelper(java.lang.String helperName, AbstractHelper helper) throws BatchException
String
- helperNameAbstractHelper
- ヘルパーインスタンス
BatchException
public static int getActiveHelperInstanceCount(java.lang.String helperName)
public static void managedHelperConfig(HelperConfigMap helperConfigMap) throws BatchException
HelperConfigMap
- helperConfigMap プールしたHelperの設定ファイル
BatchException
public static void createUniqueHelperParamQueue(java.lang.String uniqueQueueName, int size)
uniqueQueueName
- キュー名size
- キューの最大サイズpublic static int getParameterQueueSize(java.lang.String queueName) throws java.lang.Exception
queueName
- 名前
java.lang.Exception
public static void addParameterQueue(java.lang.Object[] params) throws java.lang.Exception
params
- パラメータ
java.lang.Exception
public static void addSpecificationParameterQueue(java.lang.String helperName, java.lang.Object[] params) throws java.lang.Exception
params
- パラメータ
java.lang.Exception
public static void addSpecificationParameterQueue(java.lang.String helperName, java.lang.Object[] params, boolean debug) throws java.lang.Exception
params
- パラメータ
java.lang.Exception
public static java.lang.Object[] pollParameterQueue()
public static java.lang.Object[] pollSpecificationParameterQueue(java.lang.String helperName)
params
- パラメータpublic static java.lang.Object getReturnParam(int helperHashCode)
helperHashCode
- 対象HelperオブジェクトのhashCode
public static void cleanEndHelper(int helperHashCode)
helperHashCode
- 対象HelperオブジェクトのhashCodepublic static java.lang.String getHelperStatus(int helperHashCode)
helperHashCode
- 対象HelperオブジェクトのhashCode
public void poolEnd()
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |