Package de.dytanic.cloudnet.service
Interface ICloudService
-
- All Known Implementing Classes:
DefaultCloudService,DefaultEmptyCloudService,DefaultMinecraftCloudService,DefaultTemplateCloudService
public interface ICloudService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description voidaddDeployment(@NotNull de.dytanic.cloudnet.driver.service.ServiceDeployment deployment)default voiddelete()voiddelete(boolean sendUpdate)default voiddeployResources()voiddeployResources(boolean removeDeployments)de.dytanic.cloudnet.common.concurrent.ITask<de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot>forceUpdateServiceInfoSnapshotAsync()@NotNull ICloudServiceManagergetCloudServiceManager()intgetConfiguredMaxHeapMemory()java.lang.StringgetConnectionKey()java.util.List<de.dytanic.cloudnet.driver.service.ServiceDeployment>getDeployments()@NotNull java.io.FilegetDirectory()Deprecated.@NotNull java.nio.file.PathgetDirectoryPath()java.util.List<java.lang.String>getGroups()java.util.List<de.dytanic.cloudnet.driver.service.ServiceRemoteInclusion>getIncludes()@Nullable java.lang.StringgetJavaCommand()@NotNull de.dytanic.cloudnet.driver.service.ServiceInfoSnapshotgetLastServiceInfoSnapshot()@NotNull de.dytanic.cloudnet.driver.service.ServiceLifeCyclegetLifeCycle()de.dytanic.cloudnet.driver.network.INetworkChannelgetNetworkChannel()@Nullable java.lang.ProcessgetProcess()@NotNull java.lang.StringgetRuntime()@NotNull de.dytanic.cloudnet.driver.service.ServiceConfigurationgetServiceConfiguration()@NotNull IServiceConsoleLogCachegetServiceConsoleLogCache()@NotNull de.dytanic.cloudnet.driver.service.ServiceIdgetServiceId()@NotNull de.dytanic.cloudnet.driver.service.ServiceInfoSnapshotgetServiceInfoSnapshot()java.util.List<de.dytanic.cloudnet.driver.service.ServiceTemplate>getTemplates()java.util.Queue<de.dytanic.cloudnet.driver.service.ServiceRemoteInclusion>getWaitingIncludes()java.util.Queue<de.dytanic.cloudnet.driver.service.ServiceTemplate>getWaitingTemplates()voidincludeInclusions()voidincludeTemplates()voidinit()booleanisAlive()intkill()voidofferInclusion(@NotNull de.dytanic.cloudnet.driver.service.ServiceRemoteInclusion inclusion)voidofferTemplate(@NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate template)voidrestart()voidrunCommand(@NotNull java.lang.String commandLine)voidsetNetworkChannel(de.dytanic.cloudnet.driver.network.INetworkChannel channel)voidstart()intstop()voidupdateServiceInfoSnapshot(@NotNull de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)
-
-
-
Method Detail
-
init
@Internal void init()
-
getJavaCommand
@Nullable @Nullable java.lang.String getJavaCommand()
-
getRuntime
@NotNull @NotNull java.lang.String getRuntime()
-
getIncludes
java.util.List<de.dytanic.cloudnet.driver.service.ServiceRemoteInclusion> getIncludes()
-
getTemplates
java.util.List<de.dytanic.cloudnet.driver.service.ServiceTemplate> getTemplates()
-
getDeployments
java.util.List<de.dytanic.cloudnet.driver.service.ServiceDeployment> getDeployments()
-
getWaitingIncludes
java.util.Queue<de.dytanic.cloudnet.driver.service.ServiceRemoteInclusion> getWaitingIncludes()
-
getWaitingTemplates
java.util.Queue<de.dytanic.cloudnet.driver.service.ServiceTemplate> getWaitingTemplates()
-
getGroups
java.util.List<java.lang.String> getGroups()
-
getLifeCycle
@NotNull @NotNull de.dytanic.cloudnet.driver.service.ServiceLifeCycle getLifeCycle()
-
getCloudServiceManager
@NotNull @NotNull ICloudServiceManager getCloudServiceManager()
-
getServiceConfiguration
@NotNull @NotNull de.dytanic.cloudnet.driver.service.ServiceConfiguration getServiceConfiguration()
-
getServiceId
@NotNull @NotNull de.dytanic.cloudnet.driver.service.ServiceId getServiceId()
-
getConnectionKey
java.lang.String getConnectionKey()
-
getDirectory
@NotNull @Deprecated @NotNull java.io.File getDirectory()
Deprecated.
-
getDirectoryPath
@NotNull @NotNull java.nio.file.Path getDirectoryPath()
-
getNetworkChannel
de.dytanic.cloudnet.driver.network.INetworkChannel getNetworkChannel()
-
setNetworkChannel
@Internal void setNetworkChannel(de.dytanic.cloudnet.driver.network.INetworkChannel channel)
-
getServiceInfoSnapshot
@NotNull @NotNull de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot getServiceInfoSnapshot()
-
getLastServiceInfoSnapshot
@NotNull @NotNull de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot getLastServiceInfoSnapshot()
-
forceUpdateServiceInfoSnapshotAsync
de.dytanic.cloudnet.common.concurrent.ITask<de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot> forceUpdateServiceInfoSnapshotAsync()
-
getProcess
@Nullable @Nullable java.lang.Process getProcess()
-
runCommand
void runCommand(@NotNull @NotNull java.lang.String commandLine)
-
getConfiguredMaxHeapMemory
int getConfiguredMaxHeapMemory()
-
getServiceConsoleLogCache
@NotNull @NotNull IServiceConsoleLogCache getServiceConsoleLogCache()
-
start
void start() throws java.lang.Exception- Throws:
java.lang.Exception
-
restart
void restart() throws java.lang.Exception- Throws:
java.lang.Exception
-
stop
int stop()
-
kill
int kill()
-
delete
default void delete()
-
delete
void delete(boolean sendUpdate)
-
isAlive
boolean isAlive()
-
includeInclusions
void includeInclusions()
-
includeTemplates
void includeTemplates()
-
deployResources
void deployResources(boolean removeDeployments)
-
deployResources
default void deployResources()
-
offerTemplate
void offerTemplate(@NotNull @NotNull de.dytanic.cloudnet.driver.service.ServiceTemplate template)
-
offerInclusion
void offerInclusion(@NotNull @NotNull de.dytanic.cloudnet.driver.service.ServiceRemoteInclusion inclusion)
-
addDeployment
void addDeployment(@NotNull @NotNull de.dytanic.cloudnet.driver.service.ServiceDeployment deployment)
-
updateServiceInfoSnapshot
void updateServiceInfoSnapshot(@NotNull @NotNull de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)
-
-