Package ai.djl.serving.wlm.util
Class WlmConfigManager
- java.lang.Object
-
- ai.djl.serving.wlm.util.WlmConfigManager
-
public final class WlmConfigManager extends java.lang.ObjectThis manages some configurations used by theWorkLoadManager.
-
-
Constructor Summary
Constructors Constructor Description WlmConfigManager()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetDefaultWorkers(ai.djl.ndarray.NDManager manager, java.lang.String deviceName, int target)Returns the default number of workers for a new registered model.static WlmConfigManagergetInstance()Returns the singletonConfigManagerinstance.booleanisDebug()Returns if debug is enabled.
-
-
-
Method Detail
-
getInstance
public static WlmConfigManager getInstance()
Returns the singletonConfigManagerinstance.- Returns:
- the singleton
ConfigManagerinstance
-
isDebug
public boolean isDebug()
Returns if debug is enabled.- Returns:
trueif debug is enabled
-
getDefaultWorkers
public int getDefaultWorkers(ai.djl.ndarray.NDManager manager, java.lang.String deviceName, int target)Returns the default number of workers for a new registered model.- Parameters:
manager- theNDManagerthe model usesdeviceName- the device that model loaded ontarget- the target number of worker- Returns:
- the default number of workers for a new registered model
-
-