Class WrapperSpecificCloudServiceProvider

  • All Implemented Interfaces:
    de.dytanic.cloudnet.driver.provider.service.SpecificCloudServiceProvider

    public class WrapperSpecificCloudServiceProvider
    extends java.lang.Object
    implements de.dytanic.cloudnet.driver.provider.service.SpecificCloudServiceProvider
    • Constructor Detail

      • WrapperSpecificCloudServiceProvider

        public WrapperSpecificCloudServiceProvider​(Wrapper wrapper,
                                                   java.util.UUID uniqueId)
      • WrapperSpecificCloudServiceProvider

        public WrapperSpecificCloudServiceProvider​(Wrapper wrapper,
                                                   java.lang.String name)
      • WrapperSpecificCloudServiceProvider

        public WrapperSpecificCloudServiceProvider​(Wrapper wrapper,
                                                   de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)
    • Method Detail

      • getServiceInfoSnapshot

        @Nullable
        public @Nullable de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot getServiceInfoSnapshot()
        Specified by:
        getServiceInfoSnapshot in interface de.dytanic.cloudnet.driver.provider.service.SpecificCloudServiceProvider
      • getServiceInfoSnapshotAsync

        @NotNull
        public @NotNull de.dytanic.cloudnet.common.concurrent.ITask<de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot> getServiceInfoSnapshotAsync()
        Specified by:
        getServiceInfoSnapshotAsync in interface de.dytanic.cloudnet.driver.provider.service.SpecificCloudServiceProvider
      • addServiceTemplate

        public void addServiceTemplate​(@NotNull
                                       @NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate serviceTemplate)
        Specified by:
        addServiceTemplate in interface de.dytanic.cloudnet.driver.provider.service.SpecificCloudServiceProvider
      • addServiceTemplateAsync

        @NotNull
        public @NotNull de.dytanic.cloudnet.common.concurrent.ITask<java.lang.Void> addServiceTemplateAsync​(@NotNull
                                                                                                            @NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate serviceTemplate)
        Specified by:
        addServiceTemplateAsync in interface de.dytanic.cloudnet.driver.provider.service.SpecificCloudServiceProvider
      • addServiceRemoteInclusion

        public void addServiceRemoteInclusion​(@NotNull
                                              @NotNull de.dytanic.cloudnet.driver.service.ServiceRemoteInclusion serviceRemoteInclusion)
        Specified by:
        addServiceRemoteInclusion in interface de.dytanic.cloudnet.driver.provider.service.SpecificCloudServiceProvider
      • addServiceRemoteInclusionAsync

        @NotNull
        public @NotNull de.dytanic.cloudnet.common.concurrent.ITask<java.lang.Void> addServiceRemoteInclusionAsync​(@NotNull
                                                                                                                   @NotNull de.dytanic.cloudnet.driver.service.ServiceRemoteInclusion serviceRemoteInclusion)
        Specified by:
        addServiceRemoteInclusionAsync in interface de.dytanic.cloudnet.driver.provider.service.SpecificCloudServiceProvider
      • addServiceDeployment

        public void addServiceDeployment​(@NotNull
                                         @NotNull de.dytanic.cloudnet.driver.service.ServiceDeployment serviceDeployment)
        Specified by:
        addServiceDeployment in interface de.dytanic.cloudnet.driver.provider.service.SpecificCloudServiceProvider
      • addServiceDeploymentAsync

        @NotNull
        public @NotNull de.dytanic.cloudnet.common.concurrent.ITask<java.lang.Void> addServiceDeploymentAsync​(@NotNull
                                                                                                              @NotNull de.dytanic.cloudnet.driver.service.ServiceDeployment serviceDeployment)
        Specified by:
        addServiceDeploymentAsync in interface de.dytanic.cloudnet.driver.provider.service.SpecificCloudServiceProvider
      • getCachedLogMessages

        public java.util.Queue<java.lang.String> getCachedLogMessages()
        Specified by:
        getCachedLogMessages in interface de.dytanic.cloudnet.driver.provider.service.SpecificCloudServiceProvider
      • getCachedLogMessagesAsync

        @NotNull
        public @NotNull de.dytanic.cloudnet.common.concurrent.ITask<java.util.Queue<java.lang.String>> getCachedLogMessagesAsync()
        Specified by:
        getCachedLogMessagesAsync in interface de.dytanic.cloudnet.driver.provider.service.SpecificCloudServiceProvider
      • setCloudServiceLifeCycle

        public void setCloudServiceLifeCycle​(@NotNull
                                             @NotNull de.dytanic.cloudnet.driver.service.ServiceLifeCycle lifeCycle)
        Specified by:
        setCloudServiceLifeCycle in interface de.dytanic.cloudnet.driver.provider.service.SpecificCloudServiceProvider
      • setCloudServiceLifeCycleAsync

        @NotNull
        public @NotNull de.dytanic.cloudnet.common.concurrent.ITask<java.lang.Void> setCloudServiceLifeCycleAsync​(@NotNull
                                                                                                                  @NotNull de.dytanic.cloudnet.driver.service.ServiceLifeCycle lifeCycle)
        Specified by:
        setCloudServiceLifeCycleAsync in interface de.dytanic.cloudnet.driver.provider.service.SpecificCloudServiceProvider
      • restart

        public void restart()
        Specified by:
        restart in interface de.dytanic.cloudnet.driver.provider.service.SpecificCloudServiceProvider
      • restartAsync

        @NotNull
        public @NotNull de.dytanic.cloudnet.common.concurrent.ITask<java.lang.Void> restartAsync()
        Specified by:
        restartAsync in interface de.dytanic.cloudnet.driver.provider.service.SpecificCloudServiceProvider
      • kill

        public void kill()
        Specified by:
        kill in interface de.dytanic.cloudnet.driver.provider.service.SpecificCloudServiceProvider
      • killAsync

        @NotNull
        public @NotNull de.dytanic.cloudnet.common.concurrent.ITask<java.lang.Void> killAsync()
        Specified by:
        killAsync in interface de.dytanic.cloudnet.driver.provider.service.SpecificCloudServiceProvider
      • runCommand

        public void runCommand​(@NotNull
                               @NotNull java.lang.String command)
        Specified by:
        runCommand in interface de.dytanic.cloudnet.driver.provider.service.SpecificCloudServiceProvider
      • runCommandAsync

        @NotNull
        public @NotNull de.dytanic.cloudnet.common.concurrent.ITask<java.lang.Void> runCommandAsync​(@NotNull
                                                                                                    @NotNull java.lang.String command)
        Specified by:
        runCommandAsync in interface de.dytanic.cloudnet.driver.provider.service.SpecificCloudServiceProvider
      • includeWaitingServiceTemplates

        public void includeWaitingServiceTemplates()
        Specified by:
        includeWaitingServiceTemplates in interface de.dytanic.cloudnet.driver.provider.service.SpecificCloudServiceProvider
      • includeWaitingServiceInclusions

        public void includeWaitingServiceInclusions()
        Specified by:
        includeWaitingServiceInclusions in interface de.dytanic.cloudnet.driver.provider.service.SpecificCloudServiceProvider
      • deployResources

        public void deployResources​(boolean removeDeployments)
        Specified by:
        deployResources in interface de.dytanic.cloudnet.driver.provider.service.SpecificCloudServiceProvider
      • includeWaitingServiceTemplatesAsync

        @NotNull
        public @NotNull de.dytanic.cloudnet.common.concurrent.ITask<java.lang.Void> includeWaitingServiceTemplatesAsync()
        Specified by:
        includeWaitingServiceTemplatesAsync in interface de.dytanic.cloudnet.driver.provider.service.SpecificCloudServiceProvider
      • includeWaitingServiceInclusionsAsync

        @NotNull
        public @NotNull de.dytanic.cloudnet.common.concurrent.ITask<java.lang.Void> includeWaitingServiceInclusionsAsync()
        Specified by:
        includeWaitingServiceInclusionsAsync in interface de.dytanic.cloudnet.driver.provider.service.SpecificCloudServiceProvider
      • deployResourcesAsync

        @NotNull
        public @NotNull de.dytanic.cloudnet.common.concurrent.ITask<java.lang.Void> deployResourcesAsync​(boolean removeDeployments)
        Specified by:
        deployResourcesAsync in interface de.dytanic.cloudnet.driver.provider.service.SpecificCloudServiceProvider