Package org.ow2.clif.console.lib.batch
Class WaitServersCmd
- java.lang.Object
-
- org.ow2.clif.console.lib.batch.WaitServersCmd
-
public class WaitServersCmd extends java.lang.ObjectBatch command to wait for the CLIF registry to be ready, and, optionally, for CLIF servers used in a test plan to be ready (i.e. to be registered in the registry). The default "local host" CLIF server is not considered since it is supposed to be created by the deploy command.- Author:
- Bruno Dillenseger
-
-
Field Summary
Fields Modifier and Type Field Description static intsleepTimeMs
-
Constructor Summary
Constructors Constructor Description WaitServersCmd()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)static intrun(java.lang.String fileName)Wait for the registry to be ready, and then for all CLIF servers in a given test plan file to be registered in the registry.
-
-
-
Field Detail
-
sleepTimeMs
public static final int sleepTimeMs
- See Also:
- Constant Field Values
-
-
Method Detail
-
main
public static void main(java.lang.String[] args)
- Parameters:
args- args[0] (optional) the file name of the test plan whose CLIF servers to wait for.- See Also:
run(String)
-
run
public static int run(java.lang.String fileName)
Wait for the registry to be ready, and then for all CLIF servers in a given test plan file to be registered in the registry. Note: the default CLIF server named "local host" is ignored, since it is supposed to be created by the deploy command.- Parameters:
fileName- (optional) file name of the test plan definition- Returns:
- command status code (@see BatchUtil)
-
-