Class MultiNodeSpec$


  • public class MultiNodeSpec$
    extends java.lang.Object
    Number of nodes node taking part in this test.

    
     -Dmultinode.max-nodes=4
     
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static MultiNodeSpec$ MODULE$
      Static reference to the singleton instance of this Scala object.
    • Constructor Summary

      Constructors 
      Constructor Description
      MultiNodeSpec$()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.typesafe.config.Config baseConfig()  
      int maxNodes()  
      com.typesafe.config.Config nodeConfig()  
      java.lang.Integer selfIndex()
      Index of this node in the roles sequence.
      java.lang.String selfName()
      Name (or IP address; must be resolvable using InetAddress.getByName) of the host this node is running on.
      int selfPort()
      Port number of this node.
      java.lang.String serverName()
      Name (or IP address; must be resolvable using InetAddress.getByName) of the host that the server node is running on.
      int serverPort()
      Port number of the node that's running the server system.
      • Methods inherited from class java.lang.Object

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

      • MODULE$

        public static final MultiNodeSpec$ MODULE$
        Static reference to the singleton instance of this Scala object.
    • Constructor Detail

      • MultiNodeSpec$

        public MultiNodeSpec$()
    • Method Detail

      • maxNodes

        public int maxNodes()
      • selfName

        public java.lang.String selfName()
        Name (or IP address; must be resolvable using InetAddress.getByName) of the host this node is running on.

        
         -Dmultinode.host=host.example.com
         

        InetAddress.getLocalHost.getHostAddress is used if empty or "localhost" is defined as system property "multinode.host".

        Returns:
        (undocumented)
      • selfPort

        public int selfPort()
        Port number of this node. Defaults to 0 which means a random port.

        
         -Dmultinode.port=0
         
        Returns:
        (undocumented)
      • serverName

        public java.lang.String serverName()
        Name (or IP address; must be resolvable using InetAddress.getByName) of the host that the server node is running on.

        
         -Dmultinode.server-host=server.example.com
         
        Returns:
        (undocumented)
      • serverPort

        public int serverPort()
        Port number of the node that's running the server system. Defaults to 4711.

        
         -Dmultinode.server-port=4711
         
        Returns:
        (undocumented)
      • selfIndex

        public java.lang.Integer selfIndex()
        Index of this node in the roles sequence. The TestConductor is started in “controller” mode on selfIndex 0, i.e. there you can inject failures and shutdown other nodes etc.

        
         -Dmultinode.index=0
         
        Returns:
        (undocumented)
      • nodeConfig

        public com.typesafe.config.Config nodeConfig()
      • baseConfig

        public com.typesafe.config.Config baseConfig()