Interface ICloudServiceManager

    • Method Detail

      • getTempDirectory

        @NotNull
        @Deprecated
        @NotNull java.io.File getTempDirectory()
        Deprecated.
      • getPersistenceServicesDirectory

        @NotNull
        @Deprecated
        @NotNull java.io.File getPersistenceServicesDirectory()
        Deprecated.
      • getTempDirectoryPath

        @NotNull
        @NotNull java.nio.file.Path getTempDirectoryPath()
      • getPersistentServicesDirectoryPath

        @NotNull
        @NotNull java.nio.file.Path getPersistentServicesDirectoryPath()
      • getGlobalServiceInfoSnapshots

        @NotNull
        @NotNull java.util.Map<java.util.UUID,​de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot> getGlobalServiceInfoSnapshots()
      • handleServiceUpdate

        boolean handleServiceUpdate​(@NotNull
                                    de.dytanic.cloudnet.driver.network.def.packet.PacketClientServerServiceInfoPublisher.PublisherType type,
                                    @NotNull
                                    @NotNull de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot snapshot)
      • getCloudServices

        @NotNull
        @NotNull java.util.Map<java.util.UUID,​ICloudService> getCloudServices()
      • getCloudServiceFactories

        @NotNull
        @NotNull java.util.Collection<ICloudServiceFactory> getCloudServiceFactories()
      • getCloudServiceFactory

        @NotNull
        @NotNull java.util.Optional<ICloudServiceFactory> getCloudServiceFactory​(@Nullable
                                                                                 @Nullable java.lang.String runtime)
      • addCloudServiceFactory

        void addCloudServiceFactory​(@NotNull
                                    @NotNull ICloudServiceFactory factory)
      • removeCloudServiceFactory

        void removeCloudServiceFactory​(@NotNull
                                       @NotNull ICloudServiceFactory factory)
      • removeCloudServiceFactory

        void removeCloudServiceFactory​(@NotNull
                                       @NotNull java.lang.String runtime)
      • runTask

        @Deprecated
        @ScheduledForRemoval
        ICloudService runTask​(@NotNull
                              @NotNull de.dytanic.cloudnet.driver.service.ServiceConfiguration serviceConfiguration)
        Deprecated.
      • createCloudService

        @Internal
        default de.dytanic.cloudnet.common.concurrent.ITask<ICloudService> createCloudService​(@NotNull
                                                                                              @NotNull de.dytanic.cloudnet.driver.service.ServiceConfiguration serviceConfiguration)
      • createCloudService

        @Internal
        de.dytanic.cloudnet.common.concurrent.ITask<ICloudService> createCloudService​(@NotNull
                                                                                      @NotNull de.dytanic.cloudnet.driver.service.ServiceConfiguration serviceConfiguration,
                                                                                      @Nullable
                                                                                      @Nullable java.lang.Long timeoutMillis)
      • startAllCloudServices

        void startAllCloudServices()
      • stopAllCloudServices

        void stopAllCloudServices()
      • deleteAllCloudServices

        void deleteAllCloudServices()
      • getCloudService

        @Nullable
        @Nullable ICloudService getCloudService​(@NotNull
                                                @NotNull java.util.UUID uniqueId)
      • getCloudService

        @Nullable
        @Nullable ICloudService getCloudService​(@NotNull
                                                @NotNull java.util.function.Predicate<ICloudService> predicate)
      • getLocalCloudServices

        java.util.Collection<ICloudService> getLocalCloudServices​(@NotNull
                                                                  @NotNull java.lang.String taskName)
      • getLocalCloudServices

        java.util.Collection<ICloudService> getLocalCloudServices​(@NotNull
                                                                  @NotNull java.util.function.Predicate<ICloudService> predicate)
      • getLocalCloudServices

        java.util.Collection<ICloudService> getLocalCloudServices()
      • getReservedTaskIds

        java.util.Collection<java.lang.Integer> getReservedTaskIds​(@NotNull
                                                                   @NotNull java.lang.String task)
      • getCurrentUsedHeapMemory

        int getCurrentUsedHeapMemory()
      • getCurrentReservedMemory

        int getCurrentReservedMemory()