Interface CloudServiceFactory

    • Method Detail

      • createCloudService

        ServiceInfoSnapshot createCloudService​(ServiceTask serviceTask)
        Creates and prepares (= copies the templates) a new cloud service
        Parameters:
        serviceTask - the task the service should be created from
        Returns:
        the info of the created service or null if the service couldn't be created
      • createCloudService

        ServiceInfoSnapshot createCloudService​(ServiceConfiguration serviceConfiguration)
        Creates and prepares (= copies the templates) a new cloud service
        Parameters:
        serviceConfiguration - the configuration for the new service
        Returns:
        the info of the created service or null if the service couldn't be created
      • createCloudService

        default ServiceInfoSnapshot createCloudService​(java.lang.String name,
                                                       java.lang.String runtime,
                                                       boolean autoDeleteOnStop,
                                                       boolean staticService,
                                                       java.util.Collection<ServiceRemoteInclusion> includes,
                                                       java.util.Collection<ServiceTemplate> templates,
                                                       java.util.Collection<ServiceDeployment> deployments,
                                                       java.util.Collection<java.lang.String> groups,
                                                       ProcessConfiguration processConfiguration,
                                                       java.lang.Integer port)
        Creates and prepares (= copies the templates) a new cloud service
        Parameters:
        name - the name of the task of the new cloud service (the name of the service will be name-id)
        runtime - the runtime of the new cloud service (normally this is "jvm")
        autoDeleteOnStop - should the service be automatically deleted on stop?
        staticService - should the service be a static one?
        includes - the additional files that should be included when preparing the service
        templates - the templates that should be included when preparing the service
        deployments - the deployments that should be added to the service by default
        groups - the groups for the service
        processConfiguration - the process configuration for the service
        port - the port of the service
        Returns:
        the info of the created service or null if the service couldn't be created
      • createCloudService

        ServiceInfoSnapshot createCloudService​(java.lang.String name,
                                               java.lang.String runtime,
                                               boolean autoDeleteOnStop,
                                               boolean staticService,
                                               java.util.Collection<ServiceRemoteInclusion> includes,
                                               java.util.Collection<ServiceTemplate> templates,
                                               java.util.Collection<ServiceDeployment> deployments,
                                               java.util.Collection<java.lang.String> groups,
                                               ProcessConfiguration processConfiguration,
                                               JsonDocument properties,
                                               java.lang.Integer port)
        Creates and prepares (= copies the templates) a new cloud service
        Parameters:
        name - the name of the task of the new cloud service (the name of the service will be name-id)
        runtime - the runtime of the new cloud service (normally this is "jvm")
        autoDeleteOnStop - should the service be automatically deleted on stop?
        staticService - should the service be a static one?
        includes - the additional files that should be included when preparing the service
        templates - the templates that should be included when preparing the service
        deployments - the deployments that should be added to the service by default
        groups - the groups for the service
        processConfiguration - the process configuration for the service
        properties - the properties for the service (those are not used by the cloud, you can define whatever you want as the properties)
        port - the port of the service
        Returns:
        the info of the created service or null if the service couldn't be created
      • createCloudService

        default java.util.Collection<ServiceInfoSnapshot> createCloudService​(java.lang.String nodeUniqueId,
                                                                             int amount,
                                                                             java.lang.String name,
                                                                             java.lang.String runtime,
                                                                             boolean autoDeleteOnStop,
                                                                             boolean staticService,
                                                                             java.util.Collection<ServiceRemoteInclusion> includes,
                                                                             java.util.Collection<ServiceTemplate> templates,
                                                                             java.util.Collection<ServiceDeployment> deployments,
                                                                             java.util.Collection<java.lang.String> groups,
                                                                             ProcessConfiguration processConfiguration,
                                                                             java.lang.Integer port)
        Creates and prepares (= copies the templates) a new cloud service
        Parameters:
        nodeUniqueId - the uniqueId of the node where the services should be started on
        amount - the amount of services to be created
        name - the name of the task of the new cloud services (the name of the service will be name-id)
        runtime - the runtime of the new cloud services (normally this is "jvm")
        autoDeleteOnStop - should the services be automatically deleted on stop?
        staticService - should the services be a static one?
        includes - the additional files that should be included when preparing the services
        templates - the templates that should be included when preparing the services
        deployments - the deployments that should be added to the services by default
        groups - the groups for the services
        processConfiguration - the process configuration for the services
        port - the port of the services
        Returns:
        the info of the created service or null if the service couldn't be created
      • createCloudService

        java.util.Collection<ServiceInfoSnapshot> createCloudService​(java.lang.String nodeUniqueId,
                                                                     int amount,
                                                                     java.lang.String name,
                                                                     java.lang.String runtime,
                                                                     boolean autoDeleteOnStop,
                                                                     boolean staticService,
                                                                     java.util.Collection<ServiceRemoteInclusion> includes,
                                                                     java.util.Collection<ServiceTemplate> templates,
                                                                     java.util.Collection<ServiceDeployment> deployments,
                                                                     java.util.Collection<java.lang.String> groups,
                                                                     ProcessConfiguration processConfiguration,
                                                                     JsonDocument properties,
                                                                     java.lang.Integer port)
        Creates and prepares (= copies the templates) a new cloud service
        Parameters:
        nodeUniqueId - the uniqueId of the node where the services should be started on
        amount - the amount of services to be created
        name - the name of the task of the new cloud services (the name of the service will be name-id)
        runtime - the runtime of the new cloud services (normally this is "jvm")
        autoDeleteOnStop - should the services be automatically deleted on stop?
        staticService - should the services be a static one?
        includes - the additional files that should be included when preparing the services
        templates - the templates that should be included when preparing the services
        deployments - the deployments that should be added to the services by default
        groups - the groups for the services
        processConfiguration - the process configuration for the services
        properties - the properties for the services (those are not used by the cloud, you can define whatever you want as the properties)
        port - the port of the services
        Returns:
        the info of the created service or null if the service couldn't be created
      • createCloudServiceAsync

        ITask<ServiceInfoSnapshot> createCloudServiceAsync​(ServiceTask serviceTask)
        Creates and prepares (= copies the templates) a new cloud service
        Parameters:
        serviceTask - the task the service should be created from
        Returns:
        the info of the created service or null if the service couldn't be created
      • createCloudServiceAsync

        ITask<ServiceInfoSnapshot> createCloudServiceAsync​(ServiceConfiguration serviceConfiguration)
        Creates and prepares (= copies the templates) a new cloud service
        Parameters:
        serviceConfiguration - the configuration for the new service
        Returns:
        the info of the created service or null if the service couldn't be created
      • createCloudServiceAsync

        ITask<ServiceInfoSnapshot> createCloudServiceAsync​(java.lang.String name,
                                                           java.lang.String runtime,
                                                           boolean autoDeleteOnStop,
                                                           boolean staticService,
                                                           java.util.Collection<ServiceRemoteInclusion> includes,
                                                           java.util.Collection<ServiceTemplate> templates,
                                                           java.util.Collection<ServiceDeployment> deployments,
                                                           java.util.Collection<java.lang.String> groups,
                                                           ProcessConfiguration processConfiguration,
                                                           JsonDocument properties,
                                                           java.lang.Integer port)
        Creates and prepares (= copies the templates) a new cloud service
        Parameters:
        name - the name of the task of the new cloud service (the name of the service will be name-id)
        runtime - the runtime of the new cloud service (normally this is "jvm")
        autoDeleteOnStop - should the service be automatically deleted on stop?
        staticService - should the service be a static one?
        includes - the additional files that should be included when preparing the service
        templates - the templates that should be included when preparing the service
        deployments - the deployments that should be added to the service by default
        groups - the groups for the service
        processConfiguration - the process configuration for the service
        port - the port of the service
        Returns:
        the info of the created service or null if the service couldn't be created
      • createCloudServiceAsync

        ITask<java.util.Collection<ServiceInfoSnapshot>> createCloudServiceAsync​(java.lang.String nodeUniqueId,
                                                                                 int amount,
                                                                                 java.lang.String name,
                                                                                 java.lang.String runtime,
                                                                                 boolean autoDeleteOnStop,
                                                                                 boolean staticService,
                                                                                 java.util.Collection<ServiceRemoteInclusion> includes,
                                                                                 java.util.Collection<ServiceTemplate> templates,
                                                                                 java.util.Collection<ServiceDeployment> deployments,
                                                                                 java.util.Collection<java.lang.String> groups,
                                                                                 ProcessConfiguration processConfiguration,
                                                                                 JsonDocument properties,
                                                                                 java.lang.Integer port)
        Creates and prepares (= copies the templates) a new cloud service
        Parameters:
        name - the name of the task of the new cloud service (the name of the service will be name-id)
        runtime - the runtime of the new cloud service (normally this is "jvm")
        autoDeleteOnStop - should the service be automatically deleted on stop?
        staticService - should the service be a static one?
        includes - the additional files that should be included when preparing the service
        templates - the templates that should be included when preparing the service
        deployments - the deployments that should be added to the service by default
        groups - the groups for the service
        processConfiguration - the process configuration for the service
        properties - the properties for the service (those are not used by the cloud, you can define whatever you want as the properties)
        port - the port of the service
        Returns:
        the info of the created service or null if the service couldn't be created
      • createCloudServiceAsync

        default ITask<ServiceInfoSnapshot> createCloudServiceAsync​(java.lang.String name,
                                                                   java.lang.String runtime,
                                                                   boolean autoDeleteOnStop,
                                                                   boolean staticService,
                                                                   java.util.Collection<ServiceRemoteInclusion> includes,
                                                                   java.util.Collection<ServiceTemplate> templates,
                                                                   java.util.Collection<ServiceDeployment> deployments,
                                                                   java.util.Collection<java.lang.String> groups,
                                                                   ProcessConfiguration processConfiguration,
                                                                   java.lang.Integer port)
        Creates and prepares (= copies the templates) a new cloud service
        Parameters:
        name - the name of the task of the new cloud services (the name of the service will be name-id)
        runtime - the runtime of the new cloud services (normally this is "jvm")
        autoDeleteOnStop - should the services be automatically deleted on stop?
        staticService - should the services be a static one?
        includes - the additional files that should be included when preparing the services
        templates - the templates that should be included when preparing the services
        deployments - the deployments that should be added to the services by default
        groups - the groups for the services
        processConfiguration - the process configuration for the services
        port - the port of the services
        Returns:
        the info of the created service or null if the service couldn't be created
      • createCloudServiceAsync

        default ITask<java.util.Collection<ServiceInfoSnapshot>> createCloudServiceAsync​(java.lang.String nodeUniqueId,
                                                                                         int amount,
                                                                                         java.lang.String name,
                                                                                         java.lang.String runtime,
                                                                                         boolean autoDeleteOnStop,
                                                                                         boolean staticService,
                                                                                         java.util.Collection<ServiceRemoteInclusion> includes,
                                                                                         java.util.Collection<ServiceTemplate> templates,
                                                                                         java.util.Collection<ServiceDeployment> deployments,
                                                                                         java.util.Collection<java.lang.String> groups,
                                                                                         ProcessConfiguration processConfiguration,
                                                                                         java.lang.Integer port)
        Creates and prepares (= copies the templates) a new cloud service
        Parameters:
        nodeUniqueId - the uniqueId of the node where the services should be started on
        amount - the amount of services to be created
        name - the name of the task of the new cloud services (the name of the service will be name-id)
        runtime - the runtime of the new cloud services (normally this is "jvm")
        autoDeleteOnStop - should the services be automatically deleted on stop?
        staticService - should the services be a static one?
        includes - the additional files that should be included when preparing the services
        templates - the templates that should be included when preparing the services
        deployments - the deployments that should be added to the services by default
        groups - the groups for the services
        processConfiguration - the process configuration for the services
        port - the port of the services
        Returns:
        the info of the created service or null if the service couldn't be created