goldengate.snmp
Class SnmpConfiguration

java.lang.Object
  extended by goldengate.snmp.SnmpConfiguration

public class SnmpConfiguration
extends Object

SnmpConfiguration class from XML file

Author:
Frederic Bregier

Nested Class Summary
static class SnmpConfiguration.PrivacyProtocolList
          Protocol for Privacy
static class SnmpConfiguration.SecurityProtocolList
          Protocols for Security
static class SnmpConfiguration.TargetElement
          Target entry
 
Field Summary
static String[] address
          Address from the configuration for the SNMP Agent listening port
static String DEFAULTADDRESS
          Default address: all in UDP port 161
static boolean hasV2
          Do we use SNMP V2c
static boolean hasV3
          Do we use SNMP V3
static boolean isFilterAccessEnabled
          Do we filter on Targets for SNMP requests
static boolean isUsingTrap
          Do we are using Trap or Inform
static List<SnmpConfiguration.TargetElement> listTargetElements
          List of Target Element
static List<org.snmp4j.security.UsmUser> listUsmUser
          List of all UsmUser
static int nbThread
          Number of threads to use in SNMP agent
static String NOTIFY
          Static String
static int trapLevel
          Level for Trap/Inform from 0 to 4
static String V2C
          Static String
static String V3NOTIFY
          Static String
 
Constructor Summary
SnmpConfiguration()
           
 
Method Summary
static boolean setConfigurationFromXml(File file)
          Initiate the configuration from the xml file for SNMP agent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NOTIFY

public static final String NOTIFY
Static String

See Also:
Constant Field Values

V3NOTIFY

public static final String V3NOTIFY
Static String

See Also:
Constant Field Values

V2C

public static final String V2C
Static String

See Also:
Constant Field Values

address

public static String[] address
Address from the configuration for the SNMP Agent listening port


nbThread

public static int nbThread
Number of threads to use in SNMP agent


isFilterAccessEnabled

public static boolean isFilterAccessEnabled
Do we filter on Targets for SNMP requests


isUsingTrap

public static boolean isUsingTrap
Do we are using Trap or Inform


trapLevel

public static int trapLevel
Level for Trap/Inform from 0 to 4


DEFAULTADDRESS

public static final String DEFAULTADDRESS
Default address: all in UDP port 161

See Also:
Constant Field Values

listUsmUser

public static final List<org.snmp4j.security.UsmUser> listUsmUser
List of all UsmUser


listTargetElements

public static final List<SnmpConfiguration.TargetElement> listTargetElements
List of Target Element


hasV2

public static boolean hasV2
Do we use SNMP V2c


hasV3

public static boolean hasV3
Do we use SNMP V3

Constructor Detail

SnmpConfiguration

public SnmpConfiguration()
Method Detail

setConfigurationFromXml

public static boolean setConfigurationFromXml(File file)
Initiate the configuration from the xml file for SNMP agent

Parameters:
file -
Returns:
True if OK


Copyright © 2009-2012 Frederic Bregier. All Rights Reserved.