Package org.snmp4j.agent

Examples of org.snmp4j.agent.DefaultMOServer


  public TestSubagent(Address masterAddress, Address localAddress) {
    this.masterAddress = masterAddress;
    this.localAddress = localAddress;
    this.dispatcher = new AgentXMessageDispatcherImpl();
    this.agentX = new AgentX(dispatcher);
    server = new DefaultMOServer();
    server.addContext(new OctetString());
    this.subagent =
        new AgentXSubagent(agentX, SUBAGENT_ID,
                           new OctetString("AgentX4J Test agent"));
    this.subagent.setThreadPool(ThreadPool.create("AgentXSubAgent", 3));
View Full Code Here


   * @param configFile
   *    a file that stores persistent MIB data.
   */
  public AgentXMasterAgent(File bootCounterFile,
                           File configFile) {
    this(bootCounterFile, configFile, new MOServer[] { new DefaultMOServer() });
  }
View Full Code Here

  public TestMasterAgent(Map args) throws
      IOException {
    configFile = (String)((List)args.get("c")).get(0);
    bootCounterFile = new File((String)((List)args.get("bc")).get(0));

    server = new DefaultMOServer();
    MOServer[] moServers = new MOServer[] { server };
    /* Optional configuration by a config file:
    InputStream configInputStream =
        SampleAgent.class.getResourceAsStream("SampleAgentConfig.properties");
    final Properties props = new Properties();
View Full Code Here

TOP

Related Classes of org.snmp4j.agent.DefaultMOServer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.