Interface InfinispanServerDriver

All Known Implementing Classes:
AbstractInfinispanServerDriver, ContainerInfinispanServerDriver, EmbeddedInfinispanServerDriver, ForkedInfinispanServerDriver

public interface InfinispanServerDriver
Since:
11.0
Author:
Tristan Tarrant <tristan@infinispan.org>
  • Field Details

    • log

      static final org.infinispan.util.logging.Log log
  • Method Details

    • getStatus

      org.infinispan.lifecycle.ComponentStatus getStatus()
    • getConfiguration

    • prepare

      void prepare(String name)
      Prepares a named server configuration
      Parameters:
      name - the name of the server configuration
    • start

      void start(String name)
      Starts a prepared server configuration
      Parameters:
      name - the name of the server configuration
    • stop

      void stop(String name)
      Stops a running server configuration
      Parameters:
      name - the name of the server configuration
    • isRunning

      boolean isRunning(int server)
      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

      InetSocketAddress getServerSocket(int server, int port)
      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

      InetAddress getServerAddress(int server)
      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
    • getCertificateFile

      File getCertificateFile(String name)
    • getRootDir

      File getRootDir()
    • getConfDir

      File getConfDir()
    • applyKeyStore

      void applyKeyStore(org.infinispan.client.hotrod.configuration.ConfigurationBuilder builder, String certificateName)
    • applyKeyStore

      void applyKeyStore(org.infinispan.client.hotrod.configuration.ConfigurationBuilder builder, String certificateName, String type, String provider)
    • applyKeyStore

      void applyKeyStore(org.infinispan.client.rest.configuration.RestClientConfigurationBuilder builder, String certificateName)
    • applyKeyStore

      void applyKeyStore(org.infinispan.client.rest.configuration.RestClientConfigurationBuilder builder, String certificateName, String type, String provider)
    • applyTrustStore

      void applyTrustStore(org.infinispan.client.hotrod.configuration.ConfigurationBuilder builder, String certificateName)
    • applyTrustStore

      void applyTrustStore(org.infinispan.client.hotrod.configuration.ConfigurationBuilder builder, String certificateName, String type, String provider)
    • applyTrustStore

      void applyTrustStore(org.infinispan.client.rest.configuration.RestClientConfigurationBuilder builder, String certificateName)
    • applyTrustStore

      void applyTrustStore(org.infinispan.client.rest.configuration.RestClientConfigurationBuilder builder, String certificateName, String type, String provider)
    • pause

      void pause(int server)
      Pauses a server. Equivalent to kill -SIGSTOP
      Parameters:
      server - the index of the server
    • resume

      void resume(int server)
      Resumes a paused server. Equivalent to kill -SIGCONT
      Parameters:
      server - the index of the server
    • stop

      void stop(int server)
      Gracefully stops a running server
      Parameters:
      server - the index of the server
    • kill

      void kill(int server)
      Forcefully stops a server. Equivalent to kill -SIGKILL
      Parameters:
      server - the index of the server
    • restart

      void restart(int server)
      Restarts a previously stopped server.
      Parameters:
      server - the index of the server
    • restartCluster

      void restartCluster()
      Restarts all of the nodes
    • getJmxConnection

      MBeanServerConnection getJmxConnection(int server)
      Returns a MBeanServerConnection to the specified server
      Parameters:
      server - the index of the server
    • createRemoteCacheManager

      org.infinispan.client.hotrod.RemoteCacheManager createRemoteCacheManager(org.infinispan.client.hotrod.configuration.ConfigurationBuilder builder)
    • getTimeout

      int getTimeout()
      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
    • syncFilesFromServer

      String syncFilesFromServer(int server, String dir)
      Synchronizes files from the server to the local filesystem
      Parameters:
      server - the server
      dir - if relative, the path relative to the server root, otherwise an absolute path
      Returns:
      the path where the data has been synced to
    • syncFilesToServer

      String syncFilesToServer(int server, String path)