org.snmp4j.agent.agentx.master
Class MasterContextInfo

java.lang.Object
  extended by org.snmp4j.agent.agentx.master.MasterContextInfo
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable

public class MasterContextInfo
extends java.lang.Object
implements java.io.Serializable, java.lang.Comparable

An AgentX master agent needs to manage certain context related information which this class holds. The most important of this information is the context's up time (derived from the sysUpTime object of the context - if present).

Version:
1.0
Author:
Frank Fock
See Also:
Serialized Form

Constructor Summary
MasterContextInfo(org.snmp4j.smi.OctetString context, org.snmp4j.agent.mo.snmp.SysUpTime contextUpTime)
           
 
Method Summary
 int compareTo(java.lang.Object o)
           
 org.snmp4j.smi.OctetString getContext()
           
 org.snmp4j.agent.mo.snmp.SysUpTime getUpTime()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MasterContextInfo

public MasterContextInfo(org.snmp4j.smi.OctetString context,
                         org.snmp4j.agent.mo.snmp.SysUpTime contextUpTime)
Method Detail

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable

getContext

public org.snmp4j.smi.OctetString getContext()

getUpTime

public org.snmp4j.agent.mo.snmp.SysUpTime getUpTime()

Copyright 2005-2011 Frank Fock (SNMP4J.org)

Copyright © 2011 SNMP4J.org. All Rights Reserved.