Class ContainerInfinispanServerDriver

    • Method Detail

      • isRunning

        public boolean isRunning​(int server)
        Description copied from interface: InfinispanServerDriver
        Determines whether a specific server is running as part of a server configuration
        Parameters:
        server - the
        Returns:
        true if the server is running, false otherwise
      • getServerSocket

        public InetSocketAddress getServerSocket​(int server,
                                                 int port)
        Description copied from interface: InfinispanServerDriver
        Returns an InetSocketAddress for connecting to a specific port on a specific server. The implementation will need to provide a specific mapping (e.g. port offset).
        Parameters:
        server - the index of the server
        port - the service port
        Returns:
        an unresolved InetSocketAddress pointing to the actual running service
      • getServerAddress

        public InetAddress getServerAddress​(int server)
        Description copied from interface: InfinispanServerDriver
        Returns an InetAddress that points to a specific server.
        Parameters:
        server - the index of the server
        Returns:
        an InetAddress pointing to the server's address
      • resume

        public void resume​(int server)
        Description copied from interface: InfinispanServerDriver
        Resumes a paused server. Equivalent to kill -SIGCONT
        Parameters:
        server - the index of the server
      • stop

        public void stop​(int server)
        Description copied from interface: InfinispanServerDriver
        Gracefully stops a running server
        Parameters:
        server - the index of the server
      • kill

        public void kill​(int server)
        Description copied from interface: InfinispanServerDriver
        Forcefully stops a server. Equivalent to kill -SIGKILL
        Parameters:
        server - the index of the server
      • restart

        public void restart​(int server)
        Description copied from interface: InfinispanServerDriver
        Restarts a previously stopped server.
        Parameters:
        server - the index of the server
      • restartCluster

        public void restartCluster()
        Description copied from interface: InfinispanServerDriver
        Restarts all of the nodes
      • getTimeout

        public int getTimeout()
        Description copied from interface: InfinispanServerDriver
        Returns the amount of time in seconds that we should wait for a server start/stop operation. This may vary depending on the type of driver (embedded, container)
        Returns:
        the number of seconds after which a server start/stop is considered to timeout