Package de.dytanic.cloudnet.service
Interface ICloudServiceManager
-
- All Known Implementing Classes:
DefaultCloudServiceManager
public interface ICloudServiceManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description voidaddCloudServiceFactory(@NotNull ICloudServiceFactory factory)default de.dytanic.cloudnet.common.concurrent.ITask<ICloudService>createCloudService(@NotNull de.dytanic.cloudnet.driver.service.ServiceConfiguration serviceConfiguration)de.dytanic.cloudnet.common.concurrent.ITask<ICloudService>createCloudService(@NotNull de.dytanic.cloudnet.driver.service.ServiceConfiguration serviceConfiguration, @Nullable java.lang.Long timeoutMillis)voiddeleteAllCloudServices()@Nullable ICloudServicegetCloudService(@NotNull java.util.function.Predicate<ICloudService> predicate)@Nullable ICloudServicegetCloudService(@NotNull java.util.UUID uniqueId)@NotNull java.util.Collection<ICloudServiceFactory>getCloudServiceFactories()@NotNull java.util.Optional<ICloudServiceFactory>getCloudServiceFactory(@Nullable java.lang.String runtime)@NotNull java.util.Map<java.util.UUID,ICloudService>getCloudServices()default java.util.Collection<ICloudService>getCloudServices(java.lang.String taskName)Deprecated.moved togetLocalCloudServices(String)default java.util.Collection<ICloudService>getCloudServices(java.util.function.Predicate<ICloudService> predicate)Deprecated.moved togetLocalCloudServices(Predicate)intgetCurrentReservedMemory()intgetCurrentUsedHeapMemory()@NotNull java.util.Map<java.util.UUID,de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot>getGlobalServiceInfoSnapshots()java.util.Collection<ICloudService>getLocalCloudServices()java.util.Collection<ICloudService>getLocalCloudServices(@NotNull java.lang.String taskName)java.util.Collection<ICloudService>getLocalCloudServices(@NotNull java.util.function.Predicate<ICloudService> predicate)@NotNull java.io.FilegetPersistenceServicesDirectory()Deprecated.@NotNull java.nio.file.PathgetPersistentServicesDirectoryPath()java.util.Collection<java.lang.Integer>getReservedTaskIds(@NotNull java.lang.String task)default java.util.Collection<ICloudService>getServices()Deprecated.moved togetLocalCloudServices()@NotNull java.io.FilegetTempDirectory()Deprecated.@NotNull java.nio.file.PathgetTempDirectoryPath()booleanhandleServiceUpdate(de.dytanic.cloudnet.driver.network.def.packet.PacketClientServerServiceInfoPublisher.PublisherType type, @NotNull de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot snapshot)voidremoveCloudServiceFactory(@NotNull ICloudServiceFactory factory)voidremoveCloudServiceFactory(@NotNull java.lang.String runtime)ICloudServicerunTask(@NotNull de.dytanic.cloudnet.driver.service.ServiceConfiguration serviceConfiguration)Deprecated.voidstartAllCloudServices()voidstopAllCloudServices()
-
-
-
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)
-
getCloudServices
@Deprecated default java.util.Collection<ICloudService> getCloudServices(java.lang.String taskName)
Deprecated.moved togetLocalCloudServices(String)
-
getCloudServices
@Deprecated default java.util.Collection<ICloudService> getCloudServices(java.util.function.Predicate<ICloudService> predicate)
Deprecated.moved togetLocalCloudServices(Predicate)
-
getServices
@Deprecated default java.util.Collection<ICloudService> getServices()
Deprecated.moved togetLocalCloudServices()
-
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()
-
-