-
名称
-
create-custom-resource - カスタムリソースの登録
-
形式
-
create-custom-resource --user admin_user [--password admin_password] [--host host_name] [--port port_number] [--passwordfile filename ] [--terse=true|false] [--echo=true|false] [--interactive=true|false] --restype resource_type --factoryclass classname [--enabled=true|false] [--description text] [--property (name=value) [:name=value]*] jndi_name
-
説明
-
カスタムリソースを登録します。このコマンドはリモートモードでのみ使用できます。
-
オプション
-
-
--user
-
ドメインアプリケーションサーバの管理ユーザ名
-
--password
-
ドメインアプリケーションサーバの管理ユーザのパスワード
-
--host
-
ドメインアプリケーションサーバが起動しているマシン名
-
--port
-
ドメインアプリケーションサーバのポート番号(既定値:6212)
-
--passwordfile
-
ドメインアプリケーションサーバの管理ユーザのパスワードを含むファイル
-
--terse
-
trueを指定すると、出力データがスクリプトによる処理のための簡潔なデータとなります。既定値はfalseです。
-
--echo
-
trueを指定すると、標準出力でコマンドライン文が表示されます。既定値はfalseです。
-
--interactive
-
true(既定値)を指定すると、パスワードオプション入力用のプロンプトを表示します。
-
--restype
-
作成されるカスタムリソースの種類
-
--factoryclass
-
カスタムリソースを作成するクラス
-
--enabled
-
リソースが動作中に有効化されるかどうかを決定します。既定値はtrueです。
-
--description
-
カスタムリソースのテキスト記述
-
--property
-
カスタムリソースを構成するための任意の属性名/値
-
オペランド
-
-
jndi_name
-
作成されるカスタムリソースのJNDI名
-
使用例
-
例1: create-custom-resourcesの使用法
otxadmin> create-custom-resource --user admin --password adminadmin
--host bluestar --port 6212 --restype customType factoryclass "com.custom.class" --description
"this is a sample of creating a custom resource" sample_custom_resource
Command create-custom-resource executed successfully
sample_custom_resourceは作成されるカスタムリソースです。
-
終了ステータス
-
| 0 : | コマンド実行成功 |
| 1 : | コマンド実行失敗 |
-
関連事項
-
delete-custom-resource(1)
list-custom-resources(1)