17.2.6. Red Hat Data Grid エンドポイントの開始および停止
コマンドラインインターフェース(CLI)を使用して、Red Hat Data Grid エンドポイントコネクターを開始および停止します。
エンドポイントコネクターを開始および停止するコマンド:
- 個々のエンドポイントに適用します。すべてのエンドポイントコネクターを停止または開始するには、各エンドポイントコネクターでコマンドを実行する必要があります。
- 単一ノードでのみ有効になります(クラスター全体ではありません)。
手順
- CLI を起動し、Red Hat Data Grid に接続します。
以下のように、
datagrid-infinispan-endpointサブシステムのエンドポイントコネクターを一覧表示します。[standalone@localhost:9990 /] ls subsystem=datagrid-infinispan-endpoint hotrod-connector memcached-connector rest-connector router-connector
[standalone@localhost:9990 /] ls subsystem=datagrid-infinispan-endpoint hotrod-connector memcached-connector rest-connector router-connectorCopy to Clipboard Copied! Toggle word wrap Toggle overflow 起動または停止するエンドポイントコネクターに移動します。以下に例を示します。
[standalone@localhost:9990 /] cd subsystem=datagrid-infinispan-endpoint [standalone@localhost:9990 subsystem=datagrid-infinispan-endpoint] cd rest-connector=rest-connector
[standalone@localhost:9990 /] cd subsystem=datagrid-infinispan-endpoint [standalone@localhost:9990 subsystem=datagrid-infinispan-endpoint] cd rest-connector=rest-connectorCopy to Clipboard Copied! Toggle word wrap Toggle overflow 必要に応じて、
:stop-connectorおよび:start-connectorコマンドを使用します。[standalone@localhost:9990 rest-connector=rest-connector] :stop-connector {"outcome" => "success"} [standalone@localhost:9990 rest-connector=rest-connector] :start-connector {"outcome" => "success"}[standalone@localhost:9990 rest-connector=rest-connector] :stop-connector {"outcome" => "success"} [standalone@localhost:9990 rest-connector=rest-connector] :start-connector {"outcome" => "success"}Copy to Clipboard Copied! Toggle word wrap Toggle overflow