Class SmartServiceTaskConfig
- java.lang.Object
-
- de.dytanic.cloudnet.ext.smart.util.SmartServiceTaskConfig
-
- All Implemented Interfaces:
java.lang.Comparable<SmartServiceTaskConfig>
public class SmartServiceTaskConfig extends java.lang.Object implements java.lang.Comparable<SmartServiceTaskConfig>
-
-
Field Summary
Fields Modifier and Type Field Description protected intautoStopTimeByUnusedServiceInSecondsprotected booleandirectTemplatesAndInclusionsSetupprotected booleandynamicMemoryAllocationprotected intdynamicMemoryAllocationRangeprotected booleanenabledprotected intforAnewInstanceDelayTimeInSecondsprotected intmaxServiceCountprotected intminNonFullServicesprotected intpercentOfPlayersForANewServiceByInstanceprotected intpercentOfPlayersToCheckShouldAutoStopTheServiceInFutureprotected intpreparedServicesprotected intpriorityprotected TemplateInstallertemplateInstaller
-
Constructor Summary
Constructors Constructor Description SmartServiceTaskConfig()SmartServiceTaskConfig(int priority, boolean directTemplatesAndInclusionsSetup, int preparedServices, boolean dynamicMemoryAllocation, int dynamicMemoryAllocationRange, int percentOfPlayersToCheckShouldAutoStopTheServiceInFuture, int autoStopTimeByUnusedServiceInSeconds, int percentOfPlayersForANewServiceByInstance, int forAnewInstanceDelayTimeInSeconds, int minNonFullServices, TemplateInstaller templateInstaller, int maxServiceCount)
-
Method Summary
-
-
-
Field Detail
-
enabled
protected boolean enabled
-
priority
protected int priority
-
directTemplatesAndInclusionsSetup
protected boolean directTemplatesAndInclusionsSetup
-
preparedServices
protected int preparedServices
-
dynamicMemoryAllocation
protected boolean dynamicMemoryAllocation
-
dynamicMemoryAllocationRange
protected int dynamicMemoryAllocationRange
-
percentOfPlayersToCheckShouldAutoStopTheServiceInFuture
protected int percentOfPlayersToCheckShouldAutoStopTheServiceInFuture
-
autoStopTimeByUnusedServiceInSeconds
protected int autoStopTimeByUnusedServiceInSeconds
-
percentOfPlayersForANewServiceByInstance
protected int percentOfPlayersForANewServiceByInstance
-
forAnewInstanceDelayTimeInSeconds
protected int forAnewInstanceDelayTimeInSeconds
-
minNonFullServices
protected int minNonFullServices
-
templateInstaller
protected TemplateInstaller templateInstaller
-
maxServiceCount
protected int maxServiceCount
-
-
Constructor Detail
-
SmartServiceTaskConfig
public SmartServiceTaskConfig(int priority, boolean directTemplatesAndInclusionsSetup, int preparedServices, boolean dynamicMemoryAllocation, int dynamicMemoryAllocationRange, int percentOfPlayersToCheckShouldAutoStopTheServiceInFuture, int autoStopTimeByUnusedServiceInSeconds, int percentOfPlayersForANewServiceByInstance, int forAnewInstanceDelayTimeInSeconds, int minNonFullServices, TemplateInstaller templateInstaller, int maxServiceCount)
-
SmartServiceTaskConfig
public SmartServiceTaskConfig()
-
-
Method Detail
-
compareTo
public int compareTo(SmartServiceTaskConfig o)
- Specified by:
compareToin interfacejava.lang.Comparable<SmartServiceTaskConfig>
-
isEnabled
public boolean isEnabled()
-
setEnabled
public void setEnabled(boolean enabled)
-
getPriority
public int getPriority()
-
setPriority
public void setPriority(int priority)
-
isDirectTemplatesAndInclusionsSetup
public boolean isDirectTemplatesAndInclusionsSetup()
-
setDirectTemplatesAndInclusionsSetup
public void setDirectTemplatesAndInclusionsSetup(boolean directTemplatesAndInclusionsSetup)
-
getPreparedServices
public int getPreparedServices()
-
setPreparedServices
public void setPreparedServices(int preparedServices)
-
isDynamicMemoryAllocation
public boolean isDynamicMemoryAllocation()
-
setDynamicMemoryAllocation
public void setDynamicMemoryAllocation(boolean dynamicMemoryAllocation)
-
getDynamicMemoryAllocationRange
public int getDynamicMemoryAllocationRange()
-
setDynamicMemoryAllocationRange
public void setDynamicMemoryAllocationRange(int dynamicMemoryAllocationRange)
-
getPercentOfPlayersToCheckShouldAutoStopTheServiceInFuture
public int getPercentOfPlayersToCheckShouldAutoStopTheServiceInFuture()
-
setPercentOfPlayersToCheckShouldAutoStopTheServiceInFuture
public void setPercentOfPlayersToCheckShouldAutoStopTheServiceInFuture(int percentOfPlayersToCheckShouldAutoStopTheServiceInFuture)
-
getAutoStopTimeByUnusedServiceInSeconds
public int getAutoStopTimeByUnusedServiceInSeconds()
-
setAutoStopTimeByUnusedServiceInSeconds
public void setAutoStopTimeByUnusedServiceInSeconds(int autoStopTimeByUnusedServiceInSeconds)
-
getPercentOfPlayersForANewServiceByInstance
public int getPercentOfPlayersForANewServiceByInstance()
-
setPercentOfPlayersForANewServiceByInstance
public void setPercentOfPlayersForANewServiceByInstance(int percentOfPlayersForANewServiceByInstance)
-
getForAnewInstanceDelayTimeInSeconds
public int getForAnewInstanceDelayTimeInSeconds()
-
setForAnewInstanceDelayTimeInSeconds
public void setForAnewInstanceDelayTimeInSeconds(int forAnewInstanceDelayTimeInSeconds)
-
getMinNonFullServices
public int getMinNonFullServices()
-
setMinNonFullServices
public void setMinNonFullServices(int minNonFullServices)
-
getTemplateInstaller
public TemplateInstaller getTemplateInstaller()
-
setTemplateInstaller
public void setTemplateInstaller(TemplateInstaller templateInstaller)
-
getMaxServiceCount
public int getMaxServiceCount()
-
setMaxServiceCount
public void setMaxServiceCount(int maxServiceCount)
-
-