|
1 | 1 | ---
|
2 |
| -title: "Grid Endpoints" |
3 |
| -linkTitle: "Grid Endpoints" |
| 2 | +title: "Grid エンドポイント" |
| 3 | +linkTitle: "Grid エンドポイント" |
4 | 4 | weight: 3
|
5 | 5 | aliases: [
|
6 | 6 | "/documentation/ja/grid/grid_4/grid_endpoints/",
|
7 | 7 | "/ja/documentation/grid/advanced_features/grid_endpoints/"
|
8 | 8 | ]
|
9 | 9 | ---
|
10 | 10 |
|
11 |
| -{{% pageinfo color="warning" %}} |
12 |
| -<p class="lead"> |
13 |
| - <i class="fas fa-language display-4"></i> |
14 |
| - Page being translated from |
15 |
| - English to Japanese. Do you speak Japanese? Help us to translate |
16 |
| - it by sending us pull requests! |
17 |
| -</p> |
18 |
| -{{% /pageinfo %}} |
| 11 | +## Grid |
19 | 12 |
|
20 |
| -## Grid |
| 13 | +### Grid ステータス |
21 | 14 |
|
22 |
| -### Grid Status |
23 |
| - |
24 |
| -Grid status provides the current state of the Grid. It consists of details about every registered Node. |
25 |
| -For every Node, the status includes information regarding Node availability, sessions, and slots. |
| 15 | +Grid ステータスは Grid の現在の状態を提供します。 登録されている全てのノードの詳細で構成されます。 |
| 16 | +各ノードのステータスには、ノードの稼働状況、セッション、およびスロットに関する情報が含まれます。 |
26 | 17 |
|
27 | 18 | ```shell
|
28 | 19 | cURL GET 'http://localhost:4444/status'
|
29 | 20 | ```
|
30 | 21 |
|
31 |
| -In the Standalone mode, the Grid URL is the Standalone server address. |
| 22 | +スタンドアロンモードでは、Grid URL は スタンドアロンサーバーのアドレスになります。 |
| 23 | + |
| 24 | +ハブ&ノードモードでは、Grid URL は ハブのアドレスになります。 |
32 | 25 |
|
33 |
| -In the Hub-Node mode, the Grid URL is the Hub server address. |
| 26 | +完全分散モードでは、Grid URL は ルーターのアドレスになります。 |
34 | 27 |
|
35 |
| -In the fully distributed mode, the Grid URL is the Router server address. |
| 28 | +上記すべてのモードのデフォルトの URL は http://localhost:4444 です。 |
36 | 29 |
|
37 |
| -Default URL for all the above modes is http://localhost:4444. |
| 30 | +## ディストリビューター |
38 | 31 |
|
39 |
| -## Distributor |
| 32 | +### ノード削除 |
40 | 33 |
|
41 |
| -### Remove Node |
| 34 | +ノードを Grid から削除するには、以下の cURL コマンドを使用します。 |
| 35 | +このコマンドは、そのノード上で実行中のセッションを停止させるものではありません。 |
| 36 | +ノードは明示的に強制終了されない限り、そのまま動作し続けます。 |
| 37 | +ディストリビューターはそのノードを認識しなくなるため、マッチする新しいセッションのリクエストは はその Node に転送されません。 |
42 | 38 |
|
43 |
| -To remove the Node from the Grid, use the cURL command enlisted below. |
44 |
| -It does not stop any ongoing session running on that Node. |
45 |
| -The Node continues running as it is unless explicitly killed. |
46 |
| -The Distributor is no longer aware of the Node and hence any matching new session request |
47 |
| -will not be forwarded to that Node. |
| 39 | +スタンドアロンモードでは、ディストリビューターの URL はスタンドアロンサーバーのアドレスとなります。 |
48 | 40 |
|
49 |
| -In the Standalone mode, the Distributor URL is the Standalone server address. |
| 41 | +ハブ&ノードモードでは、ディストリビューターの URL は ハブのアドレスになります。 |
50 | 42 |
|
51 |
| -In the Hub-Node mode, the Distributor URL is the Hub server address. |
52 | 43 | ```shell
|
53 | 44 | cURL --request DELETE 'http://localhost:4444/se/grid/distributor/node/<node-id>' --header 'X-REGISTRATION-SECRET: <secret> '
|
54 | 45 | ```
|
55 |
| -In the fully distributed mode, the URL is the Distributor server address. |
| 46 | + |
| 47 | +完全分散モードでは、ディストリビューター URL は ディストリビューターのアドレスになります。 |
| 48 | + |
56 | 49 | ```shell
|
57 | 50 | cURL --request DELETE 'http://localhost:5553/se/grid/distributor/node/<node-id>' --header 'X-REGISTRATION-SECRET: <secret>'
|
58 | 51 | ```
|
59 |
| -If no registration secret has been configured while setting up the Grid, then use |
| 52 | + |
| 53 | +Grid の設定時に登録用の secret を設定していない場合は次のようにします: |
| 54 | + |
60 | 55 | ```shell
|
61 | 56 | cURL --request DELETE 'http://<Distributor-URL>/se/grid/distributor/node/<node-id>' --header 'X-REGISTRATION-SECRET;'
|
62 | 57 | ```
|
63 | 58 |
|
64 |
| -### Drain Node |
| 59 | +### ノードのドレイン |
65 | 60 |
|
66 |
| -Node drain command is for graceful node shutdown. |
67 |
| -Draining a Node stops the Node after all the ongoing sessions are complete. |
68 |
| -However, it does not accept any new session requests. |
| 61 | +ノードドレインコマンドはノードをグレースフルシャットダウンするために利用します。 |
| 62 | +ドレインは実行中のセッションがすべて完了した後にノードを停止します。 |
| 63 | +新規のセッションは受け付けません。 |
69 | 64 |
|
70 |
| -In the Standalone mode, the Distributor URL is the Standalone server address. |
| 65 | +スタンドアロンモードでは、ディストリビューターの URL はスタンドアロンサーバーのアドレスとなります。 |
| 66 | + |
| 67 | +ハブ&ノードモードでは、ディストリビューターの URL は ハブのアドレスになります。 |
71 | 68 |
|
72 |
| -In the Hub-Node mode, the Distributor URL is the Hub server address. |
73 | 69 | ```shell
|
74 | 70 | cURL --request POST 'http://localhost:4444/se/grid/distributor/node/<node-id>/drain' --header 'X-REGISTRATION-SECRET: <secret> '
|
75 | 71 | ```
|
76 |
| -In the fully distributed mode, the URL is the Distributor server address. |
| 72 | + |
| 73 | +完全分散モードでは、ディストリビューター URL は ディストリビューターのアドレスになります。 |
| 74 | + |
77 | 75 | ```shell
|
78 | 76 | cURL --request POST 'http://localhost:5553/se/grid/distributor/node/<node-id>/drain' --header 'X-REGISTRATION-SECRET: <secret>'
|
79 | 77 | ```
|
80 |
| -If no registration secret has been configured while setting up the Grid, then use |
| 78 | + |
| 79 | +Grid の設定時に登録用の secret を設定していない場合は次のようにします: |
| 80 | + |
81 | 81 | ```shell
|
82 | 82 | cURL --request POST 'http://<Distributor-URL>/se/grid/distributor/node/<node-id>/drain' --header 'X-REGISTRATION-SECRET;'
|
83 | 83 | ```
|
84 | 84 |
|
85 |
| -## Node |
| 85 | +## ノード |
86 | 86 |
|
87 |
| -The endpoints in this section are applicable for Hub-Node mode and fully distributed Grid mode where the |
88 |
| -Node runs independently. |
89 |
| -The default Node URL is http://localhost:5555 in case of one Node. |
90 |
| -In case of multiple Nodes, use [Grid status](#grid-status) to get all Node details and locate the Node address. |
| 87 | +この節でのエンドポイントは、ハブ&ノードモードとノードが独立して動作する完全分散型 Grid モードに適用されます。 |
| 88 | +ノードが 1 つの場合、デフォルトのノード URL は http://localhost:5555 です。 |
| 89 | +複数のノードがある場合は、[Grid ステータス](#grid-ステータス) を使ってすべてのノードの詳細とノードアドレスを取得してください。 |
91 | 90 |
|
92 |
| -### Status |
| 91 | +### ステータス |
93 | 92 |
|
94 |
| -The Node status is essentially a health-check for the Node. |
95 |
| -Distributor pings the node status are regular intervals and updates the Grid Model accordingly. |
96 |
| -The status includes information regarding availability, sessions, and slots. |
| 93 | +ノードステータスは基本的にノードのヘルスチェックのためのものです。 |
| 94 | +ディストリビューターは定期的にノードの状態を ping で取得し、それに応じて Grid モデルを更新します。 |
| 95 | +ステータスには稼働状況、セッション、およびスロットに関する情報が含まれます。 |
97 | 96 |
|
98 | 97 | ```shell
|
99 | 98 | cURL --request GET 'http://localhost:5555/status'
|
100 | 99 | ```
|
101 | 100 |
|
102 |
| -### Drain |
| 101 | +### ドレイン |
103 | 102 |
|
104 |
| -Distributor passes the [drain](#drain-node) command to the appropriate node identified by the node-id. |
105 |
| -To drain the Node directly, use the cuRL command enlisted below. |
106 |
| -Both endpoints are valid and produce the same result. Drain finishes the ongoing sessions before stopping the Node. |
| 103 | +ディストリビューターは [ドレイン](#ノードのドレイン)コマンドを適切なノードに渡します。 |
| 104 | +ノードを直接ドレインするには以下の cURL コマンドを使います。 |
| 105 | +どちらのエンドポイントも有効であり、同じ結果になります。 |
| 106 | +ドレインは、ノードを停止する前に進行中のセッションを終了させます。 |
107 | 107 |
|
108 | 108 | ```shell
|
109 | 109 | cURL --request POST 'http://localhost:5555/se/grid/node/drain' --header 'X-REGISTRATION-SECRET: <secret>'
|
110 | 110 | ```
|
111 |
| -If no registration secret has been configured while setting up the Grid, then use |
| 111 | + |
| 112 | +Grid の設定時に登録用の secret を設定していない場合は次のようにします: |
| 113 | + |
112 | 114 | ```shell
|
113 | 115 | cURL --request POST 'http://<node-URL>/se/grid/node/drain' --header 'X-REGISTRATION-SECRET;'
|
114 | 116 | ```
|
115 | 117 |
|
116 |
| -### Check session owner |
| 118 | +### セッションオーナーのチェック |
117 | 119 |
|
118 |
| -To check if a session belongs to a Node, use the cURL command enlisted below. |
| 120 | +あるセッションがノードに属しているかどうかをチェックするには、以下の cURL コマンドを使います。 |
119 | 121 |
|
120 | 122 | ```shell
|
121 | 123 | cURL --request GET 'http://localhost:5555/se/grid/node/owner/<session-id>' --header 'X-REGISTRATION-SECRET: <secret>'
|
122 | 124 | ```
|
123 |
| -If no registration secret has been configured while setting up the Grid, then use |
| 125 | + |
| 126 | +Grid の設定時に登録用の secret を設定していない場合は次のようにします: |
| 127 | + |
124 | 128 | ```shell
|
125 | 129 | cURL --request GET 'http://<node-URL>/se/grid/node/owner/<session-id>' --header 'X-REGISTRATION-SECRET;'
|
126 | 130 | ```
|
127 | 131 |
|
128 |
| -It will return true if the session belongs to the Node else it will return false. |
| 132 | +もしセッションがノードに属していたら true を返し、そうでなければ false が返ります。 |
129 | 133 |
|
130 |
| -### Delete session |
| 134 | +### セッションの削除 |
131 | 135 |
|
132 |
| -Deleting the session terminates the WebDriver session, quits the driver and removes it from the active sessions map. |
133 |
| -Any request using the removed session-id or reusing the driver instance will throw an error. |
| 136 | +セッションを削除すると、WebDriver セッションが終了し、ドライバがアクティブなセッションマップから削除されます。 |
| 137 | +削除されたセッション ID を使用するリクエストや、ドライバのインスタンスを再利用しようとすると、エラーとなります。 |
134 | 138 |
|
135 | 139 | ```shell
|
136 | 140 | cURL --request DELETE 'http://localhost:5555/se/grid/node/session/<session-id>' --header 'X-REGISTRATION-SECRET: <secret>'
|
137 | 141 | ```
|
138 |
| -If no registration secret has been configured while setting up the Grid, then use |
| 142 | + |
| 143 | +Grid の設定時に登録用の secret を設定していない場合は次のようにします: |
| 144 | + |
139 | 145 | ```shell
|
140 | 146 | cURL --request DELETE 'http://<node-URL>/se/grid/node/session/<session-id>' --header 'X-REGISTRATION-SECRET;'
|
141 | 147 | ```
|
142 | 148 |
|
143 |
| -## New Session Queue |
| 149 | +## 新規セッションキュー |
144 | 150 |
|
145 |
| -### Clear New Session Queue |
| 151 | +### 新規セッションキューのクリア |
146 | 152 |
|
147 |
| -New Session Request Queue holds the new session requests. |
148 |
| -To clear the queue, use the cURL command enlisted below. |
149 |
| -Clearing the queue rejects all the requests in the queue. For each such request, the server returns an error response to the respective client. |
150 |
| -The result of the clear command is the total number of deleted requests. |
| 153 | +新規セッションキューには、新規セッションリクエストが格納されます。 |
| 154 | +キューをクリアするには、以下に挙げる cURL コマンドを使用します。 |
| 155 | +キューを消去すると、キューにあるすべてのリクエストを拒否します。 |
| 156 | +サーバーは各リクエストのそれぞれのクライアントにエラーレスポンスを返します。 |
| 157 | +クリアコマンドの結果は、削除されたリクエストの数です。 |
151 | 158 |
|
152 |
| -In the Standalone mode, the Queue URL is the Standalone server address. |
| 159 | +スタンドアロンモードでは、キューの URL はスタンドアロンサーバーのアドレスとなります。 |
153 | 160 |
|
154 |
| -In the Hub-Node mode, the Queue URL is the Hub server address. |
| 161 | +ハブ&ノードモードでは、キューの URL は ハブのアドレスになります。 |
155 | 162 |
|
156 | 163 | ```shell
|
157 | 164 | cURL --request DELETE 'http://localhost:4444/se/grid/newsessionqueue/queue' --header 'X-REGISTRATION-SECRET: <secret>'
|
158 | 165 | ```
|
159 | 166 |
|
160 |
| -In the fully distributed mode, the Queue URL is New Session Queue server address. |
| 167 | +完全分散モードでは、キューの URL は 新規セッションキューのアドレスになります。 |
| 168 | + |
161 | 169 | ```shell
|
162 | 170 | cURL --request DELETE 'http://localhost:5559/se/grid/newsessionqueue/queue' --header 'X-REGISTRATION-SECRET: <secret>'
|
163 | 171 | ```
|
164 | 172 |
|
165 |
| -If no registration secret has been configured while setting up the Grid, then use |
| 173 | +Grid の設定時に登録用の secret を設定していない場合は次のようにします: |
| 174 | + |
166 | 175 | ```shell
|
167 | 176 | cURL --request DELETE 'http://<URL>/se/grid/newsessionqueue/queue' --header 'X-REGISTRATION-SECRET;'
|
168 | 177 | ```
|
169 | 178 |
|
170 |
| -### Get New Session Queue Requests |
| 179 | +### 新規セッションリクエストの取得 |
171 | 180 |
|
172 |
| -New Session Request Queue holds the new session requests. |
173 |
| -To get the current requests in the queue, use the cURL command enlisted below. |
174 |
| -The response returns the total number of requests in the queue and the request payloads. |
| 181 | +新規セッションキューには、新規セッションリクエストが格納されます。 |
| 182 | +キューにある現在のリクエストを取得するには、以下に挙げる cURL コマンドを使用します。 |
| 183 | +レスポンスはキュー内のリクエストの数とリクエストのペイロードを返します。 |
175 | 184 |
|
176 |
| -In the Standalone mode, the Queue URL is the Standalone server address. |
| 185 | +スタンドアロンモードでは、キューの URL はスタンドアロンサーバーのアドレスとなります。 |
177 | 186 |
|
178 |
| -In the Hub-Node mode, the Queue URL is the Hub server address. |
| 187 | +ハブ&ノードモードでは、キューの URL は ハブのアドレスになります。 |
179 | 188 |
|
180 | 189 | ```shell
|
181 | 190 | cURL --request GET 'http://localhost:4444/se/grid/newsessionqueue/queue'
|
182 | 191 | ```
|
183 | 192 |
|
184 |
| -In the fully distributed mode, the Queue URL is New Session Queue server address. |
| 193 | +完全分散モードでは、キューの URL は 新規セッションキューのアドレスになります。 |
| 194 | + |
185 | 195 | ```shell
|
186 | 196 | cURL --request GET 'http://localhost:5559/se/grid/newsessionqueue/queue'
|
| 197 | +``` |
0 commit comments