Class MemoryInputs
- Namespace
- McServerLauncher.Services
- Assembly
- McServerLauncher.dll
Everything the memory decision depends on, gathered before a server starts.
public sealed record MemoryInputs : IEquatable<MemoryInputs>
- Inheritance
-
MemoryInputs
- Implements
- Inherited Members
Constructors
MemoryInputs(ServerConfig, JavaRuntime, int, long, long, bool, long, LearnedCeiling?)
Everything the memory decision depends on, gathered before a server starts.
public MemoryInputs(ServerConfig Config, JavaService.JavaRuntime Java, int ModCount, long TotalRamMb, long ReservedByOthersMb, bool Dedicated, long BoostMb = 0, LearnedCeiling? Learned = null)
Parameters
ConfigServerConfigThe server.
JavaJavaService.JavaRuntimeThe Java it starts on.
ModCountintJars in its
modsfolder; 0 for servers without mods.TotalRamMblongThe machine's memory. 0 when unknown, which disables the budget.
ReservedByOthersMblongCeilings of the other servers running right now.
DedicatedboolThe machine is only for servers ("Este PC es solo para servidores").
BoostMblongA one-off raise for this start, asked for from the Performance page. Never saved as the server's ceiling.
LearnedLearnedCeilingWhat the server's history says it needs, or null while it says nothing.
Properties
BoostMb
A one-off raise for this start, asked for from the Performance page. Never saved as the server's ceiling.
public long BoostMb { get; init; }
Property Value
Config
The server.
public ServerConfig Config { get; init; }
Property Value
Dedicated
The machine is only for servers ("Este PC es solo para servidores").
public bool Dedicated { get; init; }
Property Value
Java
The Java it starts on.
public JavaService.JavaRuntime Java { get; init; }
Property Value
Learned
What the server's history says it needs, or null while it says nothing.
public LearnedCeiling? Learned { get; init; }
Property Value
ModCount
Jars in its mods folder; 0 for servers without mods.
public int ModCount { get; init; }
Property Value
ReservedByOthersMb
Ceilings of the other servers running right now.
public long ReservedByOthersMb { get; init; }
Property Value
TotalRamMb
The machine's memory. 0 when unknown, which disables the budget.
public long TotalRamMb { get; init; }