public class JsmiMibParser extends Object implements MibParser, Serializable
Constructor and Description |
---|
JsmiMibParser()
Instantiates a new JLIBSMI MIB parser.
|
Modifier and Type | Method and Description |
---|---|
protected Events |
convertMibToEvents(org.jsmiparser.smi.SmiModule module,
String ueibase)
Convert MIB to events.
|
DatacollectionGroup |
getDataCollection()
Gets the data collection.
|
Events |
getEvents(String ueibase)
Gets the event list.
|
String |
getFormattedErrors()
Gets the formatted errors.
|
protected Group |
getGroup(DatacollectionGroup data,
String groupName,
String resourceType)
Gets the group.
|
String |
getMibName()
Gets the MIB name.
|
List<String> |
getMissingDependencies()
Gets the missing dependencies.
|
List<PrefabGraph> |
getPrefabGraphs()
Gets the prefab graph templates.
|
protected Event |
getTrapEvent(org.jsmiparser.smi.Notification trap,
String ueibase)
Gets the trap event.
|
protected String |
getTrapEventDescr(org.jsmiparser.smi.Notification trap)
Gets the trap event description.
|
protected String |
getTrapEventLabel(org.jsmiparser.smi.Notification trap)
Gets the trap event label.
|
protected Logmsg |
getTrapEventLogmsg(org.jsmiparser.smi.Notification trap)
Gets the trap event LogMsg.
|
protected String |
getTrapEventUEI(org.jsmiparser.smi.Notification trap,
String ueibase)
Gets the trap event UEI.
|
protected List<Varbindsdecode> |
getTrapVarbindsDecode(org.jsmiparser.smi.Notification trap)
Gets the trap varbinds decode.
|
boolean |
parseMib(File mibFile)
Parses the MIB.
|
void |
setMibDirectory(File mibDirectory)
Sets the MIB directory.
|
public void setMibDirectory(File mibDirectory)
MibParser
setMibDirectory
in interface MibParser
mibDirectory
- the MIB directorypublic boolean parseMib(File mibFile)
MibParser
public String getFormattedErrors()
MibParser
getFormattedErrors
in interface MibParser
public List<String> getMissingDependencies()
MibParser
getMissingDependencies
in interface MibParser
public String getMibName()
MibParser
getMibName
in interface MibParser
public Events getEvents(String ueibase)
MibParser
public DatacollectionGroup getDataCollection()
MibParser
getDataCollection
in interface MibParser
public List<PrefabGraph> getPrefabGraphs()
MibParser
getPrefabGraphs
in interface MibParser
protected Group getGroup(DatacollectionGroup data, String groupName, String resourceType)
data
- the data collection group objectgroupName
- the group nameresourceType
- the resource typeprotected Events convertMibToEvents(org.jsmiparser.smi.SmiModule module, String ueibase)
module
- the module objectueibase
- the UEI baseprotected Event getTrapEvent(org.jsmiparser.smi.Notification trap, String ueibase)
trap
- the trap objectueibase
- the UEI baseprotected String getTrapEventUEI(org.jsmiparser.smi.Notification trap, String ueibase)
trap
- the trap objectueibase
- the UEI baseprotected String getTrapEventLabel(org.jsmiparser.smi.Notification trap)
trap
- the trap objectprotected Logmsg getTrapEventLogmsg(org.jsmiparser.smi.Notification trap)
trap
- the trap objectprotected String getTrapEventDescr(org.jsmiparser.smi.Notification trap)
trap
- the trap objectprotected List<Varbindsdecode> getTrapVarbindsDecode(org.jsmiparser.smi.Notification trap)
trap
- the trap objectCopyright © 2021. All rights reserved.