xmlBlaster 2.1.0 API

org.xmlBlaster.engine.admin.extern.snmp
Class SubagentTest

java.lang.Object
  extended by org.xmlBlaster.engine.admin.extern.snmp.SubagentTest

public class SubagentTest
extends java.lang.Object

SubagentTest contains a constructor and the main program. Runs the xmlblaster subagent.

Since:
0.79g
Version:
@VERSION@
Author:
Udo Thalmann
See Also:
admin.snmp requirement

Field Summary
(package private)  ClientTableObserver clientTableObserver
           
(package private)  ClientTableSubject clientTableSubject
           
(package private)  ConnectionTableObserver connectionTableObserver
           
(package private)  ConnectionTableSubject connectionTableSubject
           
(package private)  NodeTableObserver nodeTableObserver
           
(package private)  NodeTableSubject nodeTableSubject
           
(package private)  jax.AgentXSession session
           
(package private)  SessionTableObserver sessionTableObserver
           
(package private)  SessionTableSubject sessionTableSubject
           
 
Constructor Summary
SubagentTest(java.lang.String[] argv)
          Opens an agentx connection to the master snmp agent.
 
Method Summary
static void main(java.lang.String[] argv)
          Calls SubagentTest subagent constructor.
 void testProc0()
          Tests trap functionality.
 void testProc1()
          Tests valid addEntry sequence.
 void testProc2()
          Tests valid addEntry sequence.
 void testProc3()
          Tests invalid addEntry sequence.
 void testProc4()
          Tests invalid removeEntry sequence.
 void testProc5()
          Tests valid removeEntry sequence.
 void testProc6()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

session

jax.AgentXSession session

nodeTableSubject

NodeTableSubject nodeTableSubject

nodeTableObserver

NodeTableObserver nodeTableObserver

connectionTableSubject

ConnectionTableSubject connectionTableSubject

connectionTableObserver

ConnectionTableObserver connectionTableObserver

clientTableSubject

ClientTableSubject clientTableSubject

clientTableObserver

ClientTableObserver clientTableObserver

sessionTableSubject

SessionTableSubject sessionTableSubject

sessionTableObserver

SessionTableObserver sessionTableObserver
Constructor Detail

SubagentTest

public SubagentTest(java.lang.String[] argv)
Opens an agentx connection to the master snmp agent. Initializes snmp mib objects. executes a testcase according to testcase number.

Parameters:
argv - contains optional testcase, host and port arguments. argv[0] = testcase number, argv[1] = host, argv[2] = port.
Method Detail

testProc0

public void testProc0()
Tests trap functionality.


testProc1

public void testProc1()
Tests valid addEntry sequence.


testProc2

public void testProc2()
Tests valid addEntry sequence.


testProc3

public void testProc3()
Tests invalid addEntry sequence. Children nodes cannot be added, because parent nodes do not exist.


testProc4

public void testProc4()
Tests invalid removeEntry sequence. Parent nodes cannot be removed because children nodes exist.


testProc5

public void testProc5()
Tests valid removeEntry sequence.


testProc6

public void testProc6()

main

public static void main(java.lang.String[] argv)
Calls SubagentTest subagent constructor.

Parameters:
argv - contains optional testcase, host and port arguments. argv[0] = testcase, argv[1] = host, argv[1] = port.

xmlBlaster 2.1.0 API

Copyright © 1999-2011 The xmlBlaster.org contributers.