|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xmlBlaster.engine.admin.extern.SnmpGateway
public final class SnmpGateway
The gateway from outside SNMP connections to inside CommandManager.
Field Summary | |
---|---|
private jax.AgentXConnection |
connection
|
private ServerScope |
glob
|
private java.lang.String |
hostname
|
private static java.util.logging.Logger |
log
|
private CommandManager |
manager
|
private java.lang.String |
ME
|
private int |
port
port for agentX connection, where SNMP-agent listens for our sub agent |
private jax.AgentXRegistration |
registration
|
private jax.AgentXSession |
session
|
private java.lang.String |
sessionId
|
Constructor Summary | |
---|---|
SnmpGateway()
|
Method Summary | |
---|---|
java.lang.String |
getCommand(java.lang.String cmd)
|
private java.lang.String |
getErrorText(java.lang.String error)
|
java.lang.String |
getName()
Get a human readable name of this filter implementation |
java.lang.String |
help()
|
java.lang.String |
help(java.lang.String cmd)
|
boolean |
initialize(ServerScope glob,
CommandManager commandManager)
This is called after creation of the plugin. |
private void |
initMib()
|
private boolean |
initSubagent()
Creates a server which is accessible with SNMP. |
void |
shutdown()
|
java.lang.String |
toXml()
Dump state of this object into a XML ASCII string. |
java.lang.String |
toXml(java.lang.String extraOffset)
Dump state of this object into a XML ASCII string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.String ME
private ServerScope glob
private static java.util.logging.Logger log
private CommandManager manager
private java.lang.String sessionId
private int port
private java.lang.String hostname
private jax.AgentXConnection connection
private jax.AgentXSession session
private jax.AgentXRegistration registration
Constructor Detail |
---|
public SnmpGateway()
Method Detail |
---|
public boolean initialize(ServerScope glob, CommandManager commandManager) throws XmlBlasterException
initialize
in interface I_ExternGateway
glob
- The Global handle of this xmlBlaster server instance.commandManager
- My manager
XmlBlasterException
private boolean initSubagent() throws XmlBlasterException
SNMP 192.168.1.2 2702 memEnter 'help' for all available commands.
XmlBlasterException
private void initMib()
public java.lang.String getCommand(java.lang.String cmd)
cmd
- The snmp commandprivate final java.lang.String getErrorText(java.lang.String error)
public java.lang.String help()
public java.lang.String help(java.lang.String cmd)
public java.lang.String getName()
I_ExternGateway
getName
in interface I_ExternGateway
public void shutdown()
shutdown
in interface I_ExternGateway
public final java.lang.String toXml()
public final java.lang.String toXml(java.lang.String extraOffset)
extraOffset
- indenting of tags for nice output
|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |