goldengate.ftp.exec.snmp
Class FtpPrivateMib

java.lang.Object
  extended by goldengate.ftp.exec.snmp.FtpPrivateMib
All Implemented Interfaces:
goldengate.snmp.interf.GgInterfaceMib, org.snmp4j.agent.MOGroup

public class FtpPrivateMib
extends Object
implements goldengate.snmp.interf.GgInterfaceMib

FTP Private MIB implementation

Author:
Frederic Bregier

Nested Class Summary
static class FtpPrivateMib.goldenGateDefinitionIndex
          Definition part
static class FtpPrivateMib.goldenGateDetailedValuesIndex
          Detailed part
static class FtpPrivateMib.goldenGateErrorValuesIndex
          Error part
static class FtpPrivateMib.goldenGateGlobalValuesIndex
          Global part
static class FtpPrivateMib.MibLevel
          MIB entry levels
static class FtpPrivateMib.NotificationElements
          Notification Elements
static class FtpPrivateMib.NotificationTasks
          Notification for a task trap
static class FtpPrivateMib.OperStatus
          Oper Status (as defined in Net Application SNMP)
 
Nested classes/interfaces inherited from interface goldengate.snmp.interf.GgInterfaceMib
goldengate.snmp.interf.GgInterfaceMib.TrapLevel
 
Field Summary
 goldengate.snmp.GgSnmpAgent agent
          Corresponding agent
 org.snmp4j.smi.OID applicationProtocol
          will be = new OID(applicationProtocolBase+port);
 String applicationProtocolBase
          need to add ".port" like "6666" Only in TCP (no UDP supported for GoldenGate) example: rootEnterpriseMib+"66666"+".1.1.4
 org.snmp4j.smi.OID ggObjectId
          SnmpConstants.sysObjectID
static goldengate.snmp.utils.GgEntry[] goldenGateDefinition
          Definition part
static goldengate.snmp.utils.GgEntry[] goldenGateDetailedValues
          Detailed part
static goldengate.snmp.utils.GgEntry[] goldenGateErrorValues
          Error part
static goldengate.snmp.utils.GgEntry[] goldenGateGlobalValues
          Global part
 org.snmp4j.smi.OID rootOIDGoldenGate
          root OID
 org.snmp4j.smi.OID rootOIDGoldenGateDetailed
          Detailed dynamic part
 org.snmp4j.smi.OID rootOIDGoldenGateError
          Error dynamic part
 org.snmp4j.smi.OID rootOIDGoldenGateGlobal
          Global dynamic part
 org.snmp4j.smi.OID rootOIDGoldenGateGlobalUptime
          Uptime OID
 org.snmp4j.smi.OID rootOIDGoldenGateInfo
          Info static part
 org.snmp4j.smi.OID rootOIDGoldenGateNotif
          Used in Notify
 org.snmp4j.smi.OID rootOIDGoldenGateNotifStartOrShutdown
          Used in Notify Start or Shutdown
 goldengate.snmp.utils.GgMORow rowDetailed
          Detailed Row access
 goldengate.snmp.utils.GgMORow rowError
          Error Row access
 goldengate.snmp.utils.GgMORow rowGlobal
          Global Row access
 goldengate.snmp.utils.GgMORow rowInfo
          Info Row access
 goldengate.snmp.utils.GgMOScalar scalarUptime
          Corresponding UpTime in Mib
static String SnmpDefaultAuthor
           
static String SnmpDefaultLocalization
           
static int SnmpFtpId
           
static String SnmpName
           
static int SnmpPrivateId
           
static int SnmpService
           
 org.snmp4j.agent.mo.snmp.SNMPv2MIB snmpv2
          New SNMPV2 MIB
static String SnmpVersion
           
 String srootOIDGoldenGate
          root OID in String
 org.snmp4j.agent.mo.snmp.SysUpTime upTime
          SnmpConstants.sysUpTime
 
Fields inherited from interface goldengate.snmp.interf.GgInterfaceMib
rootEnterpriseMib
 
Constructor Summary
FtpPrivateMib(int port)
           
 
Method Summary
protected  void agentRegisterGoldenGateMib()
          Register this MIB
protected  void agentRegisterSystem()
          Unregister and Register again the SNMPv2MIB with System adapted to this Mib
protected  void agentUnregisterMibs()
          Unregister this MIB
 void changeStatus(FtpPrivateMib.OperStatus status)
          Change the status and the LastChange Timeticks
 org.snmp4j.smi.OID getBaseOidStartOrShutdown()
           
 org.snmp4j.agent.mo.snmp.SNMPv2MIB getSNMPv2MIB()
           
 void notifyError(String message, String message2)
          Send a notification (trap or inform) for Error event
 void notifyInfoTask(String message, DbTransferLog runner)
          Send a notification (trap or inform) for Warning/Error event on a single Transfer Task
 void notifyOverloaded(String message, String message2)
          Send a notification (trap or inform) for Server Overloaded event
 void notifyStartStop(String message, String message2)
          Send a notification (trap or inform) for Shutdown event
 void notifyWarning(String message, String message2)
          Send a notification (trap or inform) for Warning event
 void registerMOs(org.snmp4j.agent.MOServer arg0, org.snmp4j.smi.OctetString arg1)
           
 void setAgent(goldengate.snmp.GgSnmpAgent agent)
           
 void unregisterMOs(org.snmp4j.agent.MOServer arg0, org.snmp4j.smi.OctetString arg1)
           
 void updateServices(goldengate.snmp.utils.GgMOScalar scalar)
           
 void updateServices(org.snmp4j.agent.MOScope range)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SnmpName

public static final String SnmpName
See Also:
Constant Field Values

SnmpPrivateId

public static final int SnmpPrivateId
See Also:
Constant Field Values

SnmpFtpId

public static final int SnmpFtpId
See Also:
Constant Field Values

SnmpDefaultAuthor

public static final String SnmpDefaultAuthor
See Also:
Constant Field Values

SnmpVersion

public static final String SnmpVersion
See Also:
Constant Field Values

SnmpDefaultLocalization

public static final String SnmpDefaultLocalization
See Also:
Constant Field Values

SnmpService

public static final int SnmpService
See Also:
Constant Field Values

ggObjectId

public org.snmp4j.smi.OID ggObjectId
SnmpConstants.sysObjectID


upTime

public org.snmp4j.agent.mo.snmp.SysUpTime upTime
SnmpConstants.sysUpTime


applicationProtocolBase

public String applicationProtocolBase
need to add ".port" like "6666" Only in TCP (no UDP supported for GoldenGate) example: rootEnterpriseMib+"66666"+".1.1.4.";


applicationProtocol

public org.snmp4j.smi.OID applicationProtocol
will be = new OID(applicationProtocolBase+port);


srootOIDGoldenGate

public String srootOIDGoldenGate
root OID in String


rootOIDGoldenGate

public org.snmp4j.smi.OID rootOIDGoldenGate
root OID


rootOIDGoldenGateNotif

public org.snmp4j.smi.OID rootOIDGoldenGateNotif
Used in Notify


rootOIDGoldenGateNotifStartOrShutdown

public org.snmp4j.smi.OID rootOIDGoldenGateNotifStartOrShutdown
Used in Notify Start or Shutdown


rootOIDGoldenGateInfo

public org.snmp4j.smi.OID rootOIDGoldenGateInfo
Info static part


rowInfo

public goldengate.snmp.utils.GgMORow rowInfo
Info Row access


rootOIDGoldenGateGlobal

public org.snmp4j.smi.OID rootOIDGoldenGateGlobal
Global dynamic part


rowGlobal

public goldengate.snmp.utils.GgMORow rowGlobal
Global Row access


rootOIDGoldenGateGlobalUptime

public org.snmp4j.smi.OID rootOIDGoldenGateGlobalUptime
Uptime OID


scalarUptime

public goldengate.snmp.utils.GgMOScalar scalarUptime
Corresponding UpTime in Mib


rootOIDGoldenGateDetailed

public org.snmp4j.smi.OID rootOIDGoldenGateDetailed
Detailed dynamic part


rowDetailed

public goldengate.snmp.utils.GgMORow rowDetailed
Detailed Row access


rootOIDGoldenGateError

public org.snmp4j.smi.OID rootOIDGoldenGateError
Error dynamic part


rowError

public goldengate.snmp.utils.GgMORow rowError
Error Row access


snmpv2

public org.snmp4j.agent.mo.snmp.SNMPv2MIB snmpv2
New SNMPV2 MIB


agent

public goldengate.snmp.GgSnmpAgent agent
Corresponding agent


goldenGateDefinition

public static goldengate.snmp.utils.GgEntry[] goldenGateDefinition
Definition part


goldenGateGlobalValues

public static goldengate.snmp.utils.GgEntry[] goldenGateGlobalValues
Global part


goldenGateDetailedValues

public static goldengate.snmp.utils.GgEntry[] goldenGateDetailedValues
Detailed part


goldenGateErrorValues

public static goldengate.snmp.utils.GgEntry[] goldenGateErrorValues
Error part

Constructor Detail

FtpPrivateMib

public FtpPrivateMib(int port)
Parameters:
port - port used by FTP server
Method Detail

agentRegisterSystem

protected void agentRegisterSystem()
                            throws org.snmp4j.agent.DuplicateRegistrationException
Unregister and Register again the SNMPv2MIB with System adapted to this Mib

Throws:
org.snmp4j.agent.DuplicateRegistrationException

agentRegisterGoldenGateMib

protected void agentRegisterGoldenGateMib()
                                   throws org.snmp4j.agent.DuplicateRegistrationException
Register this MIB

Throws:
org.snmp4j.agent.DuplicateRegistrationException

agentUnregisterMibs

protected void agentUnregisterMibs()
Unregister this MIB


registerMOs

public void registerMOs(org.snmp4j.agent.MOServer arg0,
                        org.snmp4j.smi.OctetString arg1)
                 throws org.snmp4j.agent.DuplicateRegistrationException
Specified by:
registerMOs in interface org.snmp4j.agent.MOGroup
Throws:
org.snmp4j.agent.DuplicateRegistrationException

unregisterMOs

public void unregisterMOs(org.snmp4j.agent.MOServer arg0,
                          org.snmp4j.smi.OctetString arg1)
Specified by:
unregisterMOs in interface org.snmp4j.agent.MOGroup

setAgent

public void setAgent(goldengate.snmp.GgSnmpAgent agent)
Specified by:
setAgent in interface goldengate.snmp.interf.GgInterfaceMib

getBaseOidStartOrShutdown

public org.snmp4j.smi.OID getBaseOidStartOrShutdown()
Specified by:
getBaseOidStartOrShutdown in interface goldengate.snmp.interf.GgInterfaceMib

getSNMPv2MIB

public org.snmp4j.agent.mo.snmp.SNMPv2MIB getSNMPv2MIB()
Specified by:
getSNMPv2MIB in interface goldengate.snmp.interf.GgInterfaceMib

updateServices

public void updateServices(goldengate.snmp.utils.GgMOScalar scalar)
Specified by:
updateServices in interface goldengate.snmp.interf.GgInterfaceMib

updateServices

public void updateServices(org.snmp4j.agent.MOScope range)
Specified by:
updateServices in interface goldengate.snmp.interf.GgInterfaceMib

changeStatus

public void changeStatus(FtpPrivateMib.OperStatus status)
Change the status and the LastChange Timeticks

Parameters:
status -

notifyStartStop

public void notifyStartStop(String message,
                            String message2)
Send a notification (trap or inform) for Shutdown event

Parameters:
message -
message2 -

notifyError

public void notifyError(String message,
                        String message2)
Send a notification (trap or inform) for Error event

Parameters:
message -
message2 -

notifyOverloaded

public void notifyOverloaded(String message,
                             String message2)
Send a notification (trap or inform) for Server Overloaded event

Parameters:
message -
message2 -

notifyWarning

public void notifyWarning(String message,
                          String message2)
Send a notification (trap or inform) for Warning event

Parameters:
message -
message2 -

notifyInfoTask

public void notifyInfoTask(String message,
                           DbTransferLog runner)
Send a notification (trap or inform) for Warning/Error event on a single Transfer Task

Parameters:
message -
runner -


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