Class DefaultEmptyCloudService
- java.lang.Object
-
- de.dytanic.cloudnet.service.defaults.DefaultEmptyCloudService
-
- All Implemented Interfaces:
ICloudService
- Direct Known Subclasses:
DefaultCloudService
public abstract class DefaultEmptyCloudService extends java.lang.Object implements ICloudService
-
-
Field Summary
Fields Modifier and Type Field Description protected ICloudServiceManagercloudServiceManagerprotected CloudServiceHandlerhandlerprotected de.dytanic.cloudnet.driver.service.ServiceInfoSnapshotlastServiceInfoSnapshotprotected de.dytanic.cloudnet.driver.service.ServiceLifeCyclelifeCycleprotected de.dytanic.cloudnet.driver.service.ServiceConfigurationserviceConfigurationprotected de.dytanic.cloudnet.driver.service.ServiceInfoSnapshotserviceInfoSnapshot
-
Constructor Summary
Constructors Constructor Description DefaultEmptyCloudService(@NotNull java.lang.String runtime, @NotNull ICloudServiceManager cloudServiceManager, @NotNull de.dytanic.cloudnet.driver.service.ServiceConfiguration serviceConfiguration, @NotNull CloudServiceHandler handler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull ICloudServiceManagergetCloudServiceManager()intgetConfiguredMaxHeapMemory()java.lang.StringgetConnectionKey()java.util.List<java.lang.String>getGroups()@Nullable java.lang.StringgetJavaCommand()@NotNull de.dytanic.cloudnet.driver.service.ServiceInfoSnapshotgetLastServiceInfoSnapshot()@NotNull de.dytanic.cloudnet.driver.service.ServiceLifeCyclegetLifeCycle()de.dytanic.cloudnet.driver.network.INetworkChannelgetNetworkChannel()@NotNull java.lang.StringgetRuntime()@NotNull de.dytanic.cloudnet.driver.service.ServiceConfigurationgetServiceConfiguration()@NotNull de.dytanic.cloudnet.driver.service.ServiceIdgetServiceId()@NotNull de.dytanic.cloudnet.driver.service.ServiceInfoSnapshotgetServiceInfoSnapshot()voidsetNetworkChannel(@NotNull de.dytanic.cloudnet.driver.network.INetworkChannel networkChannel)protected voidsetServiceInfoSnapshot(@NotNull de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.dytanic.cloudnet.service.ICloudService
addDeployment, delete, delete, deployResources, deployResources, forceUpdateServiceInfoSnapshotAsync, getDeployments, getDirectory, getDirectoryPath, getIncludes, getProcess, getServiceConsoleLogCache, getTemplates, getWaitingIncludes, getWaitingTemplates, includeInclusions, includeTemplates, init, isAlive, kill, offerInclusion, offerTemplate, restart, runCommand, start, stop, updateServiceInfoSnapshot
-
-
-
-
Field Detail
-
cloudServiceManager
protected final ICloudServiceManager cloudServiceManager
-
serviceConfiguration
protected final de.dytanic.cloudnet.driver.service.ServiceConfiguration serviceConfiguration
-
handler
protected final CloudServiceHandler handler
-
lifeCycle
protected volatile de.dytanic.cloudnet.driver.service.ServiceLifeCycle lifeCycle
-
serviceInfoSnapshot
protected volatile de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot
-
lastServiceInfoSnapshot
protected volatile de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot lastServiceInfoSnapshot
-
-
Constructor Detail
-
DefaultEmptyCloudService
public DefaultEmptyCloudService(@NotNull @NotNull java.lang.String runtime, @NotNull @NotNull ICloudServiceManager cloudServiceManager, @NotNull @NotNull de.dytanic.cloudnet.driver.service.ServiceConfiguration serviceConfiguration, @NotNull @NotNull CloudServiceHandler handler)
-
-
Method Detail
-
getRuntime
@NotNull public @NotNull java.lang.String getRuntime()
- Specified by:
getRuntimein interfaceICloudService
-
getJavaCommand
@Nullable public @Nullable java.lang.String getJavaCommand()
- Specified by:
getJavaCommandin interfaceICloudService
-
getConfiguredMaxHeapMemory
public int getConfiguredMaxHeapMemory()
- Specified by:
getConfiguredMaxHeapMemoryin interfaceICloudService
-
getServiceId
@NotNull public @NotNull de.dytanic.cloudnet.driver.service.ServiceId getServiceId()
- Specified by:
getServiceIdin interfaceICloudService
-
getLifeCycle
@NotNull public @NotNull de.dytanic.cloudnet.driver.service.ServiceLifeCycle getLifeCycle()
- Specified by:
getLifeCyclein interfaceICloudService
-
getServiceConfiguration
@NotNull public @NotNull de.dytanic.cloudnet.driver.service.ServiceConfiguration getServiceConfiguration()
- Specified by:
getServiceConfigurationin interfaceICloudService
-
getCloudServiceManager
@NotNull public @NotNull ICloudServiceManager getCloudServiceManager()
- Specified by:
getCloudServiceManagerin interfaceICloudService
-
getGroups
public java.util.List<java.lang.String> getGroups()
- Specified by:
getGroupsin interfaceICloudService
-
getNetworkChannel
public de.dytanic.cloudnet.driver.network.INetworkChannel getNetworkChannel()
- Specified by:
getNetworkChannelin interfaceICloudService
-
setNetworkChannel
public void setNetworkChannel(@NotNull @NotNull de.dytanic.cloudnet.driver.network.INetworkChannel networkChannel)- Specified by:
setNetworkChannelin interfaceICloudService
-
getServiceInfoSnapshot
@NotNull public @NotNull de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot getServiceInfoSnapshot()
- Specified by:
getServiceInfoSnapshotin interfaceICloudService
-
setServiceInfoSnapshot
protected void setServiceInfoSnapshot(@NotNull @NotNull de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot serviceInfoSnapshot)
-
getLastServiceInfoSnapshot
@NotNull public @NotNull de.dytanic.cloudnet.driver.service.ServiceInfoSnapshot getLastServiceInfoSnapshot()
- Specified by:
getLastServiceInfoSnapshotin interfaceICloudService
-
getConnectionKey
public java.lang.String getConnectionKey()
- Specified by:
getConnectionKeyin interfaceICloudService
-
-