Class DefaultPolymorphicVariableFormats
java.lang.Object
com.snmp4j.smi.DefaultPolymorphicVariableFormats
- All Implemented Interfaces:
PolymorphicVariableFormatterFactory
public class DefaultPolymorphicVariableFormats
extends Object
implements PolymorphicVariableFormatterFactory
The
DefaultPolymorphicVariableFormats class provides default polymorphic variable formats for common
SNMP MIBs.- Since:
- 2.0.0
- Author:
- Frank Fock
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.snmp4j.smi.OIDstatic final org.snmp4j.smi.OIDstatic final org.snmp4j.smi.Integer32static final org.snmp4j.smi.Integer32static final org.snmp4j.smi.Integer32static final org.snmp4j.smi.Integer32static final org.snmp4j.smi.Integer32static final org.snmp4j.smi.Integer32static final org.snmp4j.smi.OIDstatic final org.snmp4j.smi.OIDstatic final org.snmp4j.smi.OIDstatic final org.snmp4j.smi.OIDstatic final org.snmp4j.smi.OIDstatic final org.snmp4j.smi.OIDstatic final org.snmp4j.smi.OIDstatic final org.snmp4j.smi.OIDstatic final org.snmp4j.smi.OIDstatic final org.snmp4j.smi.OIDstatic final org.snmp4j.smi.OIDstatic final org.snmp4j.smi.OIDstatic final org.snmp4j.smi.OIDstatic final org.snmp4j.smi.OIDstatic final org.snmp4j.smi.OIDstatic final org.snmp4j.smi.OIDstatic final org.snmp4j.smi.OIDstatic final org.snmp4j.smi.OIDstatic final org.snmp4j.smi.OIDstatic final org.snmp4j.smi.OIDstatic final org.snmp4j.smi.OIDstatic final org.snmp4j.smi.OIDstatic final org.snmp4j.smi.OIDstatic final org.snmp4j.smi.OIDstatic final org.snmp4j.smi.OIDstatic final org.snmp4j.smi.OIDstatic final org.snmp4j.smi.OIDstatic final org.snmp4j.smi.OIDstatic final org.snmp4j.smi.OIDstatic final org.snmp4j.smi.OIDstatic final org.snmp4j.smi.OIDstatic final org.snmp4j.smi.OIDstatic final org.snmp4j.smi.OIDstatic final org.snmp4j.smi.OIDstatic final org.snmp4j.smi.OIDstatic final org.snmp4j.smi.OIDstatic final org.snmp4j.smi.OIDstatic final org.snmp4j.smi.OIDstatic final org.snmp4j.smi.OIDstatic final org.snmp4j.smi.OIDstatic final org.snmp4j.smi.OIDstatic final org.snmp4j.smi.OID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidRegister the default polymorphic variable formats for the AGENTX-MIB (agentxConnTransportDomain/agentxConnTransportAddress).Returns theInetAddressTypetextual-convention definition (RFC 4001) that describes the values of the type-defining column registered byregisterInetAddress(OID, OID, PolymorphicVariableFormatter).voidinetCidrRouteDest(PolymorphicVariableFormatter formatter) Register the default polymorphic variable format for IP-FORWARD-MIB (inetCidrRouteDestType/inetCidrRouteDest).voidinetCidrRouteNextHop(PolymorphicVariableFormatter formatter) Register the default polymorphic variable format for IP-FORWARD-MIB (inetCidrRouteNextHopType/inetCidrRouteNextHop).voidipAddressAddr(PolymorphicVariableFormatter formatter) Register the default polymorphic variable format for IP-MIB (ipAddressAddrType/ipAddressAddr).voidRegister the default polymorphic variable format for IP-MIB (ipAddressPrefixType/ipAddressPrefixPrefix).voidRegister the default polymorphic variable format for IP-MIB (ipDefaultRouterAddressType/ipDefaultRouterAddress).voidRegister the default polymorphic variable format for IP-MIB (ipNetToPhysicalNetAddressType/ipNetToPhysicalNetAddress).voidnlmLogEngineTAddress(PolymorphicVariableFormatter formatter) Register the default polymorphic variable formats for the NOTIFICATION-LOG-MIB (nlmLogEngineTDomain/nlmLogEngineTAddress).booleanregisterFormatter(String module, PolymorphicVariableFormatter formatter) Register the polymorphic variable formatter for a specific MIB module.voidregisterInetAddress(org.snmp4j.smi.OID columnTypeOID, org.snmp4j.smi.OID variableTypeOID, PolymorphicVariableFormatter formatter) Register a pair of columnar object IDs that implement theInetAddressType/InetAddresspolymorphic type relationship defined by the INET-ADDRESS-MIB (RFC 4001).voidregisterPolymorphicVariableFormatsForMIB(String module, PolymorphicVariableFormatter formatter) Register the default polymorphic variable formats for a given MIB module.voidregisterTAddress(org.snmp4j.smi.OID columnTypeOID, org.snmp4j.smi.OID variableTypeOID, PolymorphicVariableFormatter formatter) voidRegister the default polymorphic variable formats for the SNMP-TARGET-MIB.voidRegister the default polymorphic variable format for TCP-MIB (tcpConnectionLocalAddressType/tcpConnectionLocalAddress).voidRegister the default polymorphic variable format for TCP-MIB (tcpConnectionRemAddressType/tcpConnectionRemAddress).voidRegister the default polymorphic variable format for TCP-MIB (tcpListenerLocalAddressType/tcpListenerLocalAddress).voidRegister the default polymorphic variable format for UDP-MIB (udpEndpointLocalAddressType/udpEndpointLocalAddress).voidRegister the default polymorphic variable format for UDP-MIB (udpEndpointRemoteAddressType/udpEndpointRemoteAddress).booleanunregisterFormatter(String module, PolymorphicVariableFormatter formatter) Unregister the polymorphic variable formatter for a specific MIB module.
-
Field Details
-
TRANSPORT_DOMAIN_UDP_IPV4
public static final org.snmp4j.smi.OID TRANSPORT_DOMAIN_UDP_IPV4 -
TRANSPORT_DOMAIN_UDP_IPV6
public static final org.snmp4j.smi.OID TRANSPORT_DOMAIN_UDP_IPV6 -
TRANSPORT_DOMAIN_UDP_IPV4Z
public static final org.snmp4j.smi.OID TRANSPORT_DOMAIN_UDP_IPV4Z -
TRANSPORT_DOMAIN_UDP_IPV6Z
public static final org.snmp4j.smi.OID TRANSPORT_DOMAIN_UDP_IPV6Z -
TRANSPORT_DOMAIN_TCP_IPV4
public static final org.snmp4j.smi.OID TRANSPORT_DOMAIN_TCP_IPV4 -
TRANSPORT_DOMAIN_TCP_IPV6
public static final org.snmp4j.smi.OID TRANSPORT_DOMAIN_TCP_IPV6 -
TRANSPORT_DOMAIN_TCP_IPV4Z
public static final org.snmp4j.smi.OID TRANSPORT_DOMAIN_TCP_IPV4Z -
TRANSPORT_DOMAIN_TCP_IPV6Z
public static final org.snmp4j.smi.OID TRANSPORT_DOMAIN_TCP_IPV6Z -
TRANSPORT_DOMAIN_SCTP_IPV4
public static final org.snmp4j.smi.OID TRANSPORT_DOMAIN_SCTP_IPV4 -
TRANSPORT_DOMAIN_SCTP_IPV6
public static final org.snmp4j.smi.OID TRANSPORT_DOMAIN_SCTP_IPV6 -
TRANSPORT_DOMAIN_SCTP_IPV4Z
public static final org.snmp4j.smi.OID TRANSPORT_DOMAIN_SCTP_IPV4Z -
TRANSPORT_DOMAIN_SCTP_IPV6Z
public static final org.snmp4j.smi.OID TRANSPORT_DOMAIN_SCTP_IPV6Z -
TRANSPORT_DOMAIN_LOCAL
public static final org.snmp4j.smi.OID TRANSPORT_DOMAIN_LOCAL -
TRANSPORT_DOMAIN_UDP_DNS
public static final org.snmp4j.smi.OID TRANSPORT_DOMAIN_UDP_DNS -
TRANSPORT_DOMAIN_TCP_DNS
public static final org.snmp4j.smi.OID TRANSPORT_DOMAIN_TCP_DNS -
TRANSPORT_DOMAIN_SCTP_DNS
public static final org.snmp4j.smi.OID TRANSPORT_DOMAIN_SCTP_DNS -
SNMP_TARGET_ADDR_T_DOMAIN
public static final org.snmp4j.smi.OID SNMP_TARGET_ADDR_T_DOMAIN -
SNMP_TARGET_ADDR_T_ADDRESS
public static final org.snmp4j.smi.OID SNMP_TARGET_ADDR_T_ADDRESS -
NLM_LOG_ENGINE_T_ADDRESS
public static final org.snmp4j.smi.OID NLM_LOG_ENGINE_T_ADDRESS -
NLM_LOG_ENGINE_T_DOMAIN
public static final org.snmp4j.smi.OID NLM_LOG_ENGINE_T_DOMAIN -
AGENTX_CONN_TRANSPORT_DOMAIN
public static final org.snmp4j.smi.OID AGENTX_CONN_TRANSPORT_DOMAIN -
AGENTX_CONN_TRANSPORT_ADDRESS
public static final org.snmp4j.smi.OID AGENTX_CONN_TRANSPORT_ADDRESS -
INET_ADDRESS_TYPE_UNKNOWN
public static final org.snmp4j.smi.Integer32 INET_ADDRESS_TYPE_UNKNOWN -
INET_ADDRESS_TYPE_IPV4
public static final org.snmp4j.smi.Integer32 INET_ADDRESS_TYPE_IPV4 -
INET_ADDRESS_TYPE_IPV6
public static final org.snmp4j.smi.Integer32 INET_ADDRESS_TYPE_IPV6 -
INET_ADDRESS_TYPE_IPV4Z
public static final org.snmp4j.smi.Integer32 INET_ADDRESS_TYPE_IPV4Z -
INET_ADDRESS_TYPE_IPV6Z
public static final org.snmp4j.smi.Integer32 INET_ADDRESS_TYPE_IPV6Z -
INET_ADDRESS_TYPE_DNS
public static final org.snmp4j.smi.Integer32 INET_ADDRESS_TYPE_DNS -
IP_ADDRESS_ADDR_TYPE
public static final org.snmp4j.smi.OID IP_ADDRESS_ADDR_TYPE -
IP_ADDRESS_ADDR
public static final org.snmp4j.smi.OID IP_ADDRESS_ADDR -
IP_ADDRESS_PREFIX_TYPE
public static final org.snmp4j.smi.OID IP_ADDRESS_PREFIX_TYPE -
IP_ADDRESS_PREFIX_PREFIX
public static final org.snmp4j.smi.OID IP_ADDRESS_PREFIX_PREFIX -
IP_NET_TO_PHYSICAL_NET_ADDRESS_TYPE
public static final org.snmp4j.smi.OID IP_NET_TO_PHYSICAL_NET_ADDRESS_TYPE -
IP_NET_TO_PHYSICAL_NET_ADDRESS
public static final org.snmp4j.smi.OID IP_NET_TO_PHYSICAL_NET_ADDRESS -
IP_DEFAULT_ROUTER_ADDRESS_TYPE
public static final org.snmp4j.smi.OID IP_DEFAULT_ROUTER_ADDRESS_TYPE -
IP_DEFAULT_ROUTER_ADDRESS
public static final org.snmp4j.smi.OID IP_DEFAULT_ROUTER_ADDRESS -
TCP_CONNECTION_LOCAL_ADDRESS_TYPE
public static final org.snmp4j.smi.OID TCP_CONNECTION_LOCAL_ADDRESS_TYPE -
TCP_CONNECTION_LOCAL_ADDRESS
public static final org.snmp4j.smi.OID TCP_CONNECTION_LOCAL_ADDRESS -
TCP_CONNECTION_REM_ADDRESS_TYPE
public static final org.snmp4j.smi.OID TCP_CONNECTION_REM_ADDRESS_TYPE -
TCP_CONNECTION_REM_ADDRESS
public static final org.snmp4j.smi.OID TCP_CONNECTION_REM_ADDRESS -
TCP_LISTENER_LOCAL_ADDRESS_TYPE
public static final org.snmp4j.smi.OID TCP_LISTENER_LOCAL_ADDRESS_TYPE -
TCP_LISTENER_LOCAL_ADDRESS
public static final org.snmp4j.smi.OID TCP_LISTENER_LOCAL_ADDRESS -
UDP_ENDPOINT_LOCAL_ADDRESS_TYPE
public static final org.snmp4j.smi.OID UDP_ENDPOINT_LOCAL_ADDRESS_TYPE -
UDP_ENDPOINT_LOCAL_ADDRESS
public static final org.snmp4j.smi.OID UDP_ENDPOINT_LOCAL_ADDRESS -
UDP_ENDPOINT_REMOTE_ADDRESS_TYPE
public static final org.snmp4j.smi.OID UDP_ENDPOINT_REMOTE_ADDRESS_TYPE -
UDP_ENDPOINT_REMOTE_ADDRESS
public static final org.snmp4j.smi.OID UDP_ENDPOINT_REMOTE_ADDRESS -
INET_CIDR_ROUTE_DEST_TYPE
public static final org.snmp4j.smi.OID INET_CIDR_ROUTE_DEST_TYPE -
INET_CIDR_ROUTE_DEST
public static final org.snmp4j.smi.OID INET_CIDR_ROUTE_DEST -
INET_CIDR_ROUTE_NEXT_HOP_TYPE
public static final org.snmp4j.smi.OID INET_CIDR_ROUTE_NEXT_HOP_TYPE -
INET_CIDR_ROUTE_NEXT_HOP
public static final org.snmp4j.smi.OID INET_CIDR_ROUTE_NEXT_HOP
-
-
Constructor Details
-
DefaultPolymorphicVariableFormats
public DefaultPolymorphicVariableFormats()
-
-
Method Details
-
registerTAddress
public void registerTAddress(org.snmp4j.smi.OID columnTypeOID, org.snmp4j.smi.OID variableTypeOID, PolymorphicVariableFormatter formatter) -
snmpTargetAddrTAddress
Register the default polymorphic variable formats for the SNMP-TARGET-MIB.- Parameters:
formatter- the polymorphic variable formatter to register the formats with.
-
nlmLogEngineTAddress
Register the default polymorphic variable formats for the NOTIFICATION-LOG-MIB (nlmLogEngineTDomain/nlmLogEngineTAddress).- Parameters:
formatter- the polymorphic variable formatter to register the formats with.
-
agentxConnTransportAddress
Register the default polymorphic variable formats for the AGENTX-MIB (agentxConnTransportDomain/agentxConnTransportAddress).- Parameters:
formatter- the polymorphic variable formatter to register the formats with.
-
registerInetAddress
public void registerInetAddress(org.snmp4j.smi.OID columnTypeOID, org.snmp4j.smi.OID variableTypeOID, PolymorphicVariableFormatter formatter) Register a pair of columnar object IDs that implement theInetAddressType/InetAddresspolymorphic type relationship defined by the INET-ADDRESS-MIB (RFC 4001). TheInetAddressTypetype column selects both the effectiveSIZEand the display format of theInetAddressvalue column.- Parameters:
columnTypeOID- the OID of theInetAddressTypecolumn (the type-defining column).variableTypeOID- the OID of theInetAddresscolumn whose value is formatted according to the type column.formatter- the polymorphic variable formatter to register the formats with.
-
getInetAddressTypeSyntax
Returns theInetAddressTypetextual-convention definition (RFC 4001) that describes the values of the type-defining column registered byregisterInetAddress(OID, OID, PolymorphicVariableFormatter).- Returns:
- a freshly created
SmiSyntaxfor theInetAddressTypeTC.
-
ipAddressAddr
Register the default polymorphic variable format for IP-MIB (ipAddressAddrType/ipAddressAddr).- Parameters:
formatter- the polymorphic variable formatter to register the formats with.
-
ipAddressPrefixPrefix
Register the default polymorphic variable format for IP-MIB (ipAddressPrefixType/ipAddressPrefixPrefix).- Parameters:
formatter- the polymorphic variable formatter to register the formats with.
-
ipNetToPhysicalNetAddress
Register the default polymorphic variable format for IP-MIB (ipNetToPhysicalNetAddressType/ipNetToPhysicalNetAddress).- Parameters:
formatter- the polymorphic variable formatter to register the formats with.
-
ipDefaultRouterAddress
Register the default polymorphic variable format for IP-MIB (ipDefaultRouterAddressType/ipDefaultRouterAddress).- Parameters:
formatter- the polymorphic variable formatter to register the formats with.
-
tcpConnectionLocalAddress
Register the default polymorphic variable format for TCP-MIB (tcpConnectionLocalAddressType/tcpConnectionLocalAddress).- Parameters:
formatter- the polymorphic variable formatter to register the formats with.
-
tcpConnectionRemAddress
Register the default polymorphic variable format for TCP-MIB (tcpConnectionRemAddressType/tcpConnectionRemAddress).- Parameters:
formatter- the polymorphic variable formatter to register the formats with.
-
tcpListenerLocalAddress
Register the default polymorphic variable format for TCP-MIB (tcpListenerLocalAddressType/tcpListenerLocalAddress).- Parameters:
formatter- the polymorphic variable formatter to register the formats with.
-
udpEndpointLocalAddress
Register the default polymorphic variable format for UDP-MIB (udpEndpointLocalAddressType/udpEndpointLocalAddress).- Parameters:
formatter- the polymorphic variable formatter to register the formats with.
-
udpEndpointRemoteAddress
Register the default polymorphic variable format for UDP-MIB (udpEndpointRemoteAddressType/udpEndpointRemoteAddress).- Parameters:
formatter- the polymorphic variable formatter to register the formats with.
-
inetCidrRouteDest
Register the default polymorphic variable format for IP-FORWARD-MIB (inetCidrRouteDestType/inetCidrRouteDest).- Parameters:
formatter- the polymorphic variable formatter to register the formats with.
-
inetCidrRouteNextHop
Register the default polymorphic variable format for IP-FORWARD-MIB (inetCidrRouteNextHopType/inetCidrRouteNextHop).- Parameters:
formatter- the polymorphic variable formatter to register the formats with.
-
registerPolymorphicVariableFormatsForMIB
public void registerPolymorphicVariableFormatsForMIB(String module, PolymorphicVariableFormatter formatter) Register the default polymorphic variable formats for a given MIB module.- Parameters:
module- the MIB module name.formatter- the polymorphic variable formatter to register the formats with.
-
registerFormatter
Description copied from interface:PolymorphicVariableFormatterFactoryRegister the polymorphic variable formatter for a specific MIB module.- Specified by:
registerFormatterin interfacePolymorphicVariableFormatterFactory- Parameters:
module- the MIB module name.formatter- the polymorphic variable formatter.- Returns:
- true if the formatter was successfully registered, false otherwise.
-
unregisterFormatter
Description copied from interface:PolymorphicVariableFormatterFactoryUnregister the polymorphic variable formatter for a specific MIB module.- Specified by:
unregisterFormatterin interfacePolymorphicVariableFormatterFactory- Parameters:
module- the MIB module name.formatter- the polymorphic variable formatter.- Returns:
- true if the formatter was successfully unregistered, false otherwise.
-