Class WaitServersCmd


  • public class WaitServersCmd
    extends java.lang.Object
    Batch 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 int sleepTimeMs  
    • Constructor Summary

      Constructors 
      Constructor Description
      WaitServersCmd()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)  
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WaitServersCmd

        public WaitServersCmd()
    • 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)