Record Class SnmpMcpServer.ServerConfiguration.McpConfig
java.lang.Object
java.lang.Record
org.snmp4j.mcp.SnmpMcpServer.ServerConfiguration.McpConfig
- Record Components:
license- the license configuration, specifying licensing details.mib- the MIB configuration, defining repository details and module settings.snmpTargets- the list of named SNMP target configurations (0..n), each with a unique targetName.
- Enclosing class:
SnmpMcpServer.ServerConfiguration
public static record SnmpMcpServer.ServerConfiguration.McpConfig(SnmpMcpServer.ServerConfiguration.LicenseConfig license, SnmpMcpServer.ServerConfiguration.MibConfig mib, List<SnmpMcpServer.ServerConfiguration.SnmpTargetConfig> snmpTargets)
extends Record
Configuration record for the MCP (Management Control Protocol) system.
This record combines the configuration details for licenses, MIB (Management Information Base),
and SNMP (Simple Network Management Protocol) into a single structure.
Each configuration field is represented as a dedicated configuration record.
- Since:
- 0.0.1
- Version:
- 0.1.0
- Author:
- SNMP4J.org
-
Constructor Summary
ConstructorsConstructorDescriptionMcpConfig(SnmpMcpServer.ServerConfiguration.LicenseConfig license, SnmpMcpServer.ServerConfiguration.MibConfig mib, List<SnmpMcpServer.ServerConfiguration.SnmpTargetConfig> snmpTargets) Creates an instance of aMcpConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.license()Returns the value of thelicenserecord component.mib()Returns the value of themibrecord component.Returns the value of thesnmpTargetsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
McpConfig
public McpConfig(SnmpMcpServer.ServerConfiguration.LicenseConfig license, SnmpMcpServer.ServerConfiguration.MibConfig mib, List<SnmpMcpServer.ServerConfiguration.SnmpTargetConfig> snmpTargets) Creates an instance of aMcpConfigrecord class.- Parameters:
license- the value for thelicenserecord componentmib- the value for themibrecord componentsnmpTargets- the value for thesnmpTargetsrecord component
-
-
Method Details
-
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). -
license
-
mib
-
snmpTargets
Returns the value of thesnmpTargetsrecord component.- Returns:
- the value of the
snmpTargetsrecord component
-