Class ServerFactory


  • public class ServerFactory
    extends Object
    Factory to create an ivy server
    Since:
    21.06.2006
    API:
    This is a public API.
    • Method Detail

      • createStandardServer

        public static IServer createStandardServer​(DatabaseConnectionConfiguration systemDatabaseConnectionConfiguration)
        Creates a standard server. For file access direct access to the file system will be used. The system database to use can be configured with the given systemDatabaseConnectionConfiguration parameter. Tomcat will be instantiated and started within the server as servlet container.
        Parameters:
        systemDatabaseConnectionConfiguration - the database connection configuration for the server system database
        Returns:
        standard server
        API:
        This public API is available in Java.
      • createClusterServer

        public static IServer createClusterServer​(DatabaseConnectionConfiguration systemDatabaseConnectionConfiguration,
                                                  int localClusterNodeIdentifier)
        Creates a cluster server (a cluster node in a cluster)
        Parameters:
        systemDatabaseConnectionConfiguration - the database connection configuration for the server system database
        localClusterNodeIdentifier - the local identifier of the cluster node to identify the cluster node uniquely if more than one node is running on the same maschine
        Returns:
        cluster server
        API:
        This public API is available in Java.
      • getServer

        public static IServer getServer()
        Gets the server
        Returns:
        the server
        API:
        This public API is available in Java.
      • destroyServer

        public static void destroyServer()
        Destroys the server instance
        API:
        This public API is available in Java.
      • createTestServer

        public static IServer createTestServer()
        Creates a server for testing (automatic test cases)
        Returns:
        server
        API:
        This public API is available in Java.