Class ServiceTask

    • Field Detail

      • name

        private java.lang.String name
      • runtime

        private java.lang.String runtime
      • maintenance

        private boolean maintenance
      • autoDeleteOnStop

        private boolean autoDeleteOnStop
      • staticServices

        private boolean staticServices
      • associatedNodes

        private java.util.Collection<java.lang.String> associatedNodes
      • groups

        private java.util.Collection<java.lang.String> groups
      • deletedFilesAfterStop

        private java.util.Collection<java.lang.String> deletedFilesAfterStop
      • startPort

        private int startPort
      • minServiceCount

        private int minServiceCount
      • serviceStartAbilityTime

        private transient long serviceStartAbilityTime
        Represents the time in millis where this task is able to start new services again
    • Constructor Detail

      • ServiceTask

        public ServiceTask​(java.util.Collection<ServiceRemoteInclusion> includes,
                           java.util.Collection<ServiceTemplate> templates,
                           java.util.Collection<ServiceDeployment> deployments,
                           java.lang.String name,
                           java.lang.String runtime,
                           boolean autoDeleteOnStop,
                           boolean staticServices,
                           java.util.Collection<java.lang.String> associatedNodes,
                           java.util.Collection<java.lang.String> groups,
                           ProcessConfiguration processConfiguration,
                           int startPort,
                           int minServiceCount)
      • ServiceTask

        public ServiceTask​(java.util.Collection<ServiceRemoteInclusion> includes,
                           java.util.Collection<ServiceTemplate> templates,
                           java.util.Collection<ServiceDeployment> deployments,
                           java.lang.String name,
                           java.lang.String runtime,
                           boolean autoDeleteOnStop,
                           boolean staticServices,
                           java.util.Collection<java.lang.String> associatedNodes,
                           java.util.Collection<java.lang.String> groups,
                           java.util.Collection<java.lang.String> deletedFilesAfterStop,
                           ProcessConfiguration processConfiguration,
                           int startPort,
                           int minServiceCount)
      • ServiceTask

        public ServiceTask​(java.util.Collection<ServiceRemoteInclusion> includes,
                           java.util.Collection<ServiceTemplate> templates,
                           java.util.Collection<ServiceDeployment> deployments,
                           java.lang.String name,
                           java.lang.String runtime,
                           boolean maintenance,
                           boolean autoDeleteOnStop,
                           boolean staticServices,
                           java.util.Collection<java.lang.String> associatedNodes,
                           java.util.Collection<java.lang.String> groups,
                           ProcessConfiguration processConfiguration,
                           int startPort,
                           int minServiceCount)
      • ServiceTask

        public ServiceTask​(java.util.Collection<ServiceRemoteInclusion> includes,
                           java.util.Collection<ServiceTemplate> templates,
                           java.util.Collection<ServiceDeployment> deployments,
                           java.lang.String name,
                           java.lang.String runtime,
                           boolean maintenance,
                           boolean autoDeleteOnStop,
                           boolean staticServices,
                           java.util.Collection<java.lang.String> associatedNodes,
                           java.util.Collection<java.lang.String> groups,
                           java.util.Collection<java.lang.String> deletedFilesAfterStop,
                           ProcessConfiguration processConfiguration,
                           int startPort,
                           int minServiceCount)
      • ServiceTask

        public ServiceTask()
    • Method Detail

      • forbidServiceStarting

        public void forbidServiceStarting​(long time)
        Forbids this task to start new services for a specific time
        Parameters:
        time - the time in millis
      • canStartServices

        public boolean canStartServices()
      • getName

        public java.lang.String getName()
      • setName

        public void setName​(java.lang.String name)
      • getRuntime

        public java.lang.String getRuntime()
      • setRuntime

        public void setRuntime​(java.lang.String runtime)
      • isMaintenance

        public boolean isMaintenance()
      • setMaintenance

        public void setMaintenance​(boolean maintenance)
      • isAutoDeleteOnStop

        public boolean isAutoDeleteOnStop()
      • setAutoDeleteOnStop

        public void setAutoDeleteOnStop​(boolean autoDeleteOnStop)
      • isStaticServices

        public boolean isStaticServices()
      • setStaticServices

        public void setStaticServices​(boolean staticServices)
      • getAssociatedNodes

        public java.util.Collection<java.lang.String> getAssociatedNodes()
      • setAssociatedNodes

        public void setAssociatedNodes​(java.util.Collection<java.lang.String> associatedNodes)
      • getGroups

        public java.util.Collection<java.lang.String> getGroups()
      • setGroups

        public void setGroups​(java.util.Collection<java.lang.String> groups)
      • getDeletedFilesAfterStop

        public java.util.Collection<java.lang.String> getDeletedFilesAfterStop()
      • setDeletedFilesAfterStop

        public void setDeletedFilesAfterStop​(java.util.Collection<java.lang.String> deletedFilesAfterStop)
      • setProcessConfiguration

        public void setProcessConfiguration​(ProcessConfiguration processConfiguration)
      • getStartPort

        public int getStartPort()
      • setStartPort

        public void setStartPort​(int startPort)
      • getMinServiceCount

        public int getMinServiceCount()
      • setMinServiceCount

        public void setMinServiceCount​(int minServiceCount)