Skip to content

Commit b4e37f9

Browse files
committed
ff
1 parent af7b2da commit b4e37f9

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

src/test/java/org/tarantool/TarantoolControl.java

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ public void run() {
184184
/**
185185
* Wait until the instance will be started.
186186
*
187-
* Use tarantoolctl status instance_name.
187+
* Use tarantoolctl status instanceName.
188188
*
189189
* Then test connection using text console (TarantoolTcpConsole) to ensure
190190
* the instance was entirely started or fallback to binary port
@@ -208,7 +208,7 @@ public void waitStarted(String instanceName) {
208208
/**
209209
* Wait until the instance will be stopped.
210210
*
211-
* Use tarantoolctl status instance_name.
211+
* Use tarantoolctl status instanceName.
212212
*/
213213
public void waitStopped(String instanceName) {
214214
while (status(instanceName) != 1)
@@ -224,9 +224,13 @@ public void stop(String instanceName) {
224224
}
225225

226226
/**
227-
* 0 -- started;
228-
* 1 -- stopped;
229-
* 2 -- pid file exists, control socket inaccessible.
227+
* Wrapper for `tarantoolctl status instanceName`.
228+
*
229+
* Return exit code of the command:
230+
*
231+
* * 0 -- started;
232+
* * 1 -- stopped;
233+
* * 2 -- pid file exists, control socket inaccessible.
230234
*/
231235
public int status(String instanceName) {
232236
try {

0 commit comments

Comments
 (0)