Record Class SnmpMcpServer.ServerConfiguration.MibConfig
java.lang.Object
java.lang.Record
org.snmp4j.mcp.SnmpMcpServer.ServerConfiguration.MibConfig
- Record Components:
repositoryPath- The file system path to the repository containing MIB files.moduleNames- A list of MIB module names to be loaded or operated on.maxModuleLoadThreads- The maximum number of threads used for concurrently loading MIB modules.autoCompletionMaxElements- Maximum number of entries returned by any auto-completion lookup.nullor absent in JSON uses the default of 100. A value of<= 0disables the upper limit.mibSourcePath- The file system path to the directory that holds MIB source files (text or ZIP) which the MIB compiler tools may read by relative filename. Filenames passed to those tools are resolved against this directory and rejected if they escape it.nullor absent in JSON uses the default "mibs".
- Enclosing class:
SnmpMcpServer.ServerConfiguration
public static record SnmpMcpServer.ServerConfiguration.MibConfig(String repositoryPath, List<String> moduleNames, String maxModuleLoadThreads, Integer autoCompletionMaxElements, String mibSourcePath)
extends Record
Represents the configuration for managing MIB (Management Information Base) settings.
This record is used to specify the repository path for MIB files, a list of module names
within the repository, and the maximum number of threads allocated for module loading operations.
- Since:
- 0.0.1
- Version:
- 0.1.0
- Author:
- SNMP4J.org
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDefault directory (relative to the server working directory) for MIB source files that the MIB compiler tools may read by relative filename whenmibSourcePathis not configured. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theautoCompletionMaxElementsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themaxModuleLoadThreadsrecord component.Returns the value of themibSourcePathrecord component.Returns the configured MIB source directory, or "mibs" when themibSourcePathproperty is not set (null or blank).Returns the value of themoduleNamesrecord component.Returns the value of therepositoryPathrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
DEFAULT_MIB_SOURCE_PATH
Default directory (relative to the server working directory) for MIB source files that the MIB compiler tools may read by relative filename whenmibSourcePathis not configured.- See Also:
-
-
Constructor Details
-
MibConfig
public MibConfig(String repositoryPath, List<String> moduleNames, String maxModuleLoadThreads, Integer autoCompletionMaxElements, String mibSourcePath) Creates an instance of aMibConfigrecord class.- Parameters:
repositoryPath- the value for therepositoryPathrecord componentmoduleNames- the value for themoduleNamesrecord componentmaxModuleLoadThreads- the value for themaxModuleLoadThreadsrecord componentautoCompletionMaxElements- the value for theautoCompletionMaxElementsrecord componentmibSourcePath- the value for themibSourcePathrecord component
-
-
Method Details
-
mibSourcePathOrDefault
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
repositoryPath
Returns the value of therepositoryPathrecord component.- Returns:
- the value of the
repositoryPathrecord component
-
moduleNames
Returns the value of themoduleNamesrecord component.- Returns:
- the value of the
moduleNamesrecord component
-
maxModuleLoadThreads
Returns the value of themaxModuleLoadThreadsrecord component.- Returns:
- the value of the
maxModuleLoadThreadsrecord component
-
autoCompletionMaxElements
Returns the value of theautoCompletionMaxElementsrecord component.- Returns:
- the value of the
autoCompletionMaxElementsrecord component
-
mibSourcePath
Returns the value of themibSourcePathrecord component.- Returns:
- the value of the
mibSourcePathrecord component
-