|
intra-mart(R) 5.0 |
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object jp.co.intra_mart.foundation.service.client.NetworkConnector jp.co.intra_mart.foundation.service.client.NetworkAgent jp.co.intra_mart.foundation.service.client.information.Lock
アプリケーションロックをするための機能を提供します。
このクラスでは、ロックのフラグ情報を Serialization Servive において 一元的に管理するため、異なる Application Runtime プロセス間における プログラム実行の直列化を実現することができます。
フィールドの概要 |
クラス jp.co.intra_mart.foundation.service.client.NetworkAgent から継承したフィールド |
NULL_DATA |
クラス jp.co.intra_mart.foundation.service.client.NetworkConnector から継承したフィールド |
GET, GET_ENTIRETY, GET_ENTIRETY_KEY, GET_ITEM, GET_ITEM_KEY, GET_SUBSET, MOVE, MOVE_ENTIRETY, MOVE_ITEM, REMOVE, REMOVE_ENTIRETY, REMOVE_ITEM, SET, SET_ENTIRETY, SET_ITEM |
コンストラクタの概要 | |
Lock(String id)
ロックをするためのインスタンスを作ります。 |
メソッドの概要 | |
Object |
action(Object args)
推奨されていません。 |
void |
begin()
ロックフラグを立てます。 |
boolean |
begin(long timeout)
ロックフラグを立てます。 |
protected SocketConnection |
connection()
サーバに接続するためのコネクションを取得します。 |
boolean |
end()
ロックを解除します。 |
String |
getName()
このインスタンスの表すロックIDを返します。 |
boolean |
isLocked()
ロックの状態を確認します。 |
static List |
releaseCurrentThread()
現在のスレッドに紐付いたロックを全て解除します。 |
クラス jp.co.intra_mart.foundation.service.client.NetworkAgent から継承したメソッド |
execute |
クラス jp.co.intra_mart.foundation.service.client.NetworkConnector から継承したメソッド |
close, execute, freeMemory, isConnected, serverTime, totalMemory |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
public Lock(String id) throws NullPointerException
id
- ロックID
NullPointerException
- 引数が nullメソッドの詳細 |
protected SocketConnection connection() throws IOException
NetworkConnector
内の connection
IOException
- 入出力エラーが発生した場合public String getName()
public void begin() throws IOException
IOException
- 入出力エラーpublic boolean begin(long timeout) throws IOException
timeout
- ロック開始要求の待ち時間(秒)
IOException
- 入出力エラーpublic boolean end() throws IOException
IOException
- 入出力エラーpublic boolean isLocked() throws IOException
IOException
- 入出力エラーpublic Object action(Object args)
ActionListener
内の action
NetworkAgent
内の action
args
- 実行時引数
NetworkAgent.execute(Object)
public static List releaseCurrentThread()
|
intra-mart(R) 5.0 |
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |