IM-ERP Real Connect

jp.co.intra_mart.foundation.sap.common.auth
クラス SapClientPool

java.lang.Object
  上位を拡張 jp.co.intra_mart.foundation.sap.common.auth.SapClient
      上位を拡張 jp.co.intra_mart.foundation.sap.common.auth.SapClientPool
すべての実装されたインタフェース:
Serializable
直系の既知のサブクラス:
SapClientPoolNoLoadBalancing, SapClientPoolWithLoadBalancing

public abstract class SapClientPool
extends SapClient

SAPClientPoolクラス。
機能は以下の通り。

導入されたバージョン:
6.1
バージョン:
8.0
関連項目:
直列化された形式

入れ子のクラスの概要
 
クラス jp.co.intra_mart.foundation.sap.common.auth.SapClient から継承された入れ子のクラス/インタフェース
SapClient.MyDestinationDataProvider
 
フィールドの概要
 
クラス jp.co.intra_mart.foundation.sap.common.auth.SapClient から継承されたフィールド
connection
 
コンストラクタの概要
protected SapClientPool(String serverType, String client, String user, String passwd, String lang, String poolName, int poolSize, long waitTime, long connectionTimeout, long timeoutCheckPeriod)
          引数にて受け取った接続情報を属性にセットします。
 
メソッドの概要
protected  com.sap.conn.jco.JCoDestination createClient()
          JCOコネクションの生成を行います。
 long getConnectionTimeout()
          コネクションのタイムアウト時間を取得します。
 String getPoolName()
          プール名称を取得します。
 int getPoolSize()
          プール内のコネクション数を取得します。
 long getTimeoutCheckPeriod()
          コネクションのタイムアウトのチェック間隔を取得します。
 long getWaitTime()
          コネクション取得の待機時間を取得します。
protected  void releaseConnection()
          JCOコネクションの開放を行います。
 void setClient(String client)
          クライアントを設定します。
 void setLang(String lang)
          言語を設定します。
 void setPasswd(String passwd)
          パスワードを設定します。
 void setUser(String user)
          ユーザーを設定します。
 String toString()
          デバッグ用のメソッドです。
 
クラス jp.co.intra_mart.foundation.sap.common.auth.SapClient から継承されたメソッド
getAutoCommit, getClient, getDataDestinationName, getDesiinationProperties, getDestinationDataProvider, getHost, getIdentifier, getJCOClient, getLang, getPasswd, getServerType, getUser, release, setAutoCommit
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

SapClientPool

protected SapClientPool(String serverType,
                        String client,
                        String user,
                        String passwd,
                        String lang,
                        String poolName,
                        int poolSize,
                        long waitTime,
                        long connectionTimeout,
                        long timeoutCheckPeriod)
引数にて受け取った接続情報を属性にセットします。

パラメータ:
serverType - サーバータイプ
client - クライアント
user - ユーザー
passwd - パスワード
lang - 言語
poolName - プール名称
poolSize - プール内のコネクション数
waitTime - コネクション取得の待機時間
connectionTimeout - コネクションのタイムアウト
timeoutCheckPeriod - コネクションのタイムアウトのチェック間隔
メソッドの詳細

createClient

protected com.sap.conn.jco.JCoDestination createClient()
                                                throws com.sap.conn.jco.JCoException
JCOコネクションの生成を行います。

DestinationDataProvider に DestinationProperties が登録されていない場合、DestinationDataProvider に登録します。 DestinationDataProvider に登録する処理は直列化します。

オーバーライド:
クラス SapClient 内の createClient
戻り値:
JCO.Client JCOコネクション
例外:
com.sap.conn.jco.JCoException - JCO例外

releaseConnection

protected void releaseConnection()
                          throws com.sap.conn.jco.JCoException
JCOコネクションの開放を行います。

定義:
クラス SapClient 内の releaseConnection
例外:
com.sap.conn.jco.JCoException - JCO例外

getConnectionTimeout

public long getConnectionTimeout()
コネクションのタイムアウト時間を取得します。

戻り値:
connectionTimeout 取得したいコネクションのタイムアウト時間

getPoolName

public String getPoolName()
プール名称を取得します。

戻り値:
poolName 設定したプール名称

getPoolSize

public int getPoolSize()
プール内のコネクション数を取得します。

戻り値:
poolSize 設定したプール内のコネクション数

getTimeoutCheckPeriod

public long getTimeoutCheckPeriod()
コネクションのタイムアウトのチェック間隔を取得します。

戻り値:
timeoutCheckPeriod 設定したコネクションのタイムアウトのチェック間隔

getWaitTime

public long getWaitTime()
コネクション取得の待機時間を取得します。

戻り値:
waitTime 設定したコネクション取得の待機時間

setLang

public final void setLang(String lang)
言語を設定します。

※本処理は無視されます。

オーバーライド:
クラス SapClient 内の setLang
パラメータ:
lang - 設定する言語

setPasswd

public final void setPasswd(String passwd)
パスワードを設定します。

※本処理は無視されます。

オーバーライド:
クラス SapClient 内の setPasswd
パラメータ:
passwd - 設定するパスワード

setUser

public final void setUser(String user)
ユーザーを設定します。

※本処理は無視されます。

オーバーライド:
クラス SapClient 内の setUser
パラメータ:
user - 設定するユーザー

setClient

public final void setClient(String client)
クライアントを設定します。

※本処理は無視されます。

オーバーライド:
クラス SapClient 内の setClient
パラメータ:
client - 設定するクライアント

toString

public String toString()
デバッグ用のメソッドです。

オーバーライド:
クラス SapClient 内の toString
戻り値:
value すべての属性の値

IM-ERP Real Connect

Copyright (c) 2013 NTT DATA INTRAMART CORPORATION.