com.adventnet.snmp.ui
Class TrapParser

java.lang.Object
  extended by com.adventnet.snmp.ui.TrapParser

 class TrapParser
extends java.lang.Object


Field Summary
(package private)  java.lang.String agentDefn
           
(package private)  java.lang.String categoryDefn
           
(package private)  java.lang.String color
           
(package private)  int count
           
(package private)  java.lang.String customOIDDefn
           
(package private)  long d
           
(package private)  long dE
           
(package private)  java.lang.String enterprise
           
(package private)  int GT
           
(package private)  java.lang.String helpDefn
           
(package private)  long last
           
(package private)  java.lang.String name
           
(package private)  int severity
           
(package private)  java.lang.String snmpTrapOID
           
(package private)  int ST
           
(package private)  java.lang.String systemUpTime
           
(package private)  java.lang.String textDefn
           
(package private)  TrapParserBean ti
           
(package private)  long totalTime
           
(package private)  java.util.Properties trapParserProperties
           
(package private)  java.lang.String version
           
 
Constructor Summary
TrapParser()
           
 
Method Summary
 java.lang.String getCategory()
           
 java.lang.String getColor()
           
 java.lang.String getEnterpriseOID()
           
 java.lang.String getGenericType()
           
 java.lang.String getHelpURL()
          Gets the Help URL defined in the parser.
 java.lang.String getMessage()
          Gets the string representation of the message
 java.lang.String getParserName()
           
 java.lang.String getSeverity()
           
 java.lang.String getSnmpTrapOID()
           
 java.lang.String getSource()
          Gets the source for the trap.
 java.lang.String getSpecificType()
           
 java.lang.String getSystemUpTime()
           
 java.lang.String getVersion()
           
 ParsedTrapEvent parseTrap(MibOperations mibOps, ParsedTrapEvent evt, SnmpPDU pdu)
           
 void setCategory(java.lang.String s)
           
 void setColor(java.lang.String s)
           
 void setEnterpriseOID(java.lang.String s)
           
 void setGenericType(java.lang.String s)
           
 void setHelpURL(java.lang.String s)
          Sets the help URL for the string.
 void setMessage(java.lang.String s)
          Sets the message to be displayed when the trap is matched.
 void setParserName(java.lang.String s)
           
 void setProperties(java.util.Properties p, java.util.Vector parserNameVec)
           
 void setSeverity(java.lang.String s)
           
 void setSnmpTrapOID(java.lang.String s)
           
 void setSource(java.lang.String s)
          Sets the source from where the trap originated.
 void setSpecificType(java.lang.String s)
           
 void setSystemUpTime(java.lang.String s)
           
 void setValues()
          Seem undecided about how to set values
 void setVersion(java.lang.String s)
           
 java.lang.String toString()
          Gets the string representation of this component
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ti

TrapParserBean ti

name

java.lang.String name

enterprise

java.lang.String enterprise

GT

int GT

ST

int ST

severity

int severity

color

java.lang.String color

textDefn

java.lang.String textDefn

categoryDefn

java.lang.String categoryDefn

helpDefn

java.lang.String helpDefn

customOIDDefn

java.lang.String customOIDDefn

agentDefn

java.lang.String agentDefn

version

java.lang.String version

systemUpTime

java.lang.String systemUpTime

snmpTrapOID

java.lang.String snmpTrapOID

trapParserProperties

java.util.Properties trapParserProperties

d

long d

dE

long dE

last

long last

count

int count

totalTime

long totalTime
Constructor Detail

TrapParser

public TrapParser()
Method Detail

parseTrap

public ParsedTrapEvent parseTrap(MibOperations mibOps,
                                 ParsedTrapEvent evt,
                                 SnmpPDU pdu)

setValues

public void setValues()
Seem undecided about how to set values


setProperties

public void setProperties(java.util.Properties p,
                          java.util.Vector parserNameVec)

setParserName

public void setParserName(java.lang.String s)

setVersion

public void setVersion(java.lang.String s)

getVersion

public java.lang.String getVersion()

setSnmpTrapOID

public void setSnmpTrapOID(java.lang.String s)

getSnmpTrapOID

public java.lang.String getSnmpTrapOID()

setSystemUpTime

public void setSystemUpTime(java.lang.String s)

getSystemUpTime

public java.lang.String getSystemUpTime()

getParserName

public java.lang.String getParserName()

setGenericType

public void setGenericType(java.lang.String s)

getGenericType

public java.lang.String getGenericType()

setSpecificType

public void setSpecificType(java.lang.String s)

getSpecificType

public java.lang.String getSpecificType()

setEnterpriseOID

public void setEnterpriseOID(java.lang.String s)

getEnterpriseOID

public java.lang.String getEnterpriseOID()

setSeverity

public void setSeverity(java.lang.String s)

getSeverity

public java.lang.String getSeverity()

setColor

public void setColor(java.lang.String s)

getColor

public java.lang.String getColor()

setCategory

public void setCategory(java.lang.String s)

getCategory

public java.lang.String getCategory()

setSource

public void setSource(java.lang.String s)
Sets the source from where the trap originated.

Parameters:
source - of the trap.

getSource

public java.lang.String getSource()
Gets the source for the trap.

Returns:
string of the source.

setHelpURL

public void setHelpURL(java.lang.String s)
Sets the help URL for the string.

Parameters:
string - for the URL.

getHelpURL

public java.lang.String getHelpURL()
Gets the Help URL defined in the parser.

Returns:
string of help URL.

setMessage

public void setMessage(java.lang.String s)
Sets the message to be displayed when the trap is matched.

Parameters:
message - text.

getMessage

public java.lang.String getMessage()
Gets the string representation of the message

Returns:
message string.

toString

public java.lang.String toString()
Gets the string representation of this component

Overrides:
toString in class java.lang.Object
Returns:
string of this component.