org.snmp4j.agent.mo.jmx
Class MOScalarJMX

java.lang.Object
  extended by org.snmp4j.agent.mo.MOScalar
      extended by org.snmp4j.agent.mo.jmx.MOScalarJMX
All Implemented Interfaces:
org.snmp4j.agent.ManagedObject, org.snmp4j.agent.ManagedObjectValueAccess, org.snmp4j.agent.MOScope, org.snmp4j.agent.RegisteredManagedObject, org.snmp4j.agent.SerializableManagedObject

public class MOScalarJMX
extends org.snmp4j.agent.mo.MOScalar

The MOScalarJMX actually implements a MOScalar that gets and sets its value through a JMXScalarSupport proxy instance. This proxy maps through several configuration and support objects one or more scalar SNMP values to MBean attributes and vice versa.

Version:
1.0
Author:
Frank Fock

Constructor Summary
MOScalarJMX(JMXScalarSupport valueProxy, org.snmp4j.smi.OID oid, org.snmp4j.agent.MOAccess access, org.snmp4j.smi.Variable initialValue)
           
 
Method Summary
 void commit(org.snmp4j.agent.request.SubRequest request)
           
 void get(org.snmp4j.agent.request.SubRequest request)
           
 int isValueOK(org.snmp4j.agent.request.SubRequest request)
           
 boolean next(org.snmp4j.agent.request.SubRequest request)
           
protected  java.lang.String toStringDetails()
           
 void undo(org.snmp4j.agent.request.SubRequest request)
           
 
Methods inherited from class org.snmp4j.agent.mo.MOScalar
addMOChangeListener, addMOValueValidationListener, changeValue, checkRequestScope, cleanup, covers, find, fireAfterMOChange, fireAfterPrepareMOChange, fireBeforeMOChange, fireBeforePrepareMOChange, fireValidate, getAccess, getID, getLowerBound, getOid, getScope, getSingleInstanceScope, getUpperBound, getValue, getValue, isCovered, isLowerIncluded, isOverlapping, isUpperIncluded, isVolatile, load, prepare, removeMOChangeListener, removeMOValueValidationListener, save, setValue, setValue, setVolatile, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MOScalarJMX

public MOScalarJMX(JMXScalarSupport valueProxy,
                   org.snmp4j.smi.OID oid,
                   org.snmp4j.agent.MOAccess access,
                   org.snmp4j.smi.Variable initialValue)
Method Detail

isValueOK

public int isValueOK(org.snmp4j.agent.request.SubRequest request)
Overrides:
isValueOK in class org.snmp4j.agent.mo.MOScalar

commit

public void commit(org.snmp4j.agent.request.SubRequest request)
Specified by:
commit in interface org.snmp4j.agent.ManagedObject
Overrides:
commit in class org.snmp4j.agent.mo.MOScalar

get

public void get(org.snmp4j.agent.request.SubRequest request)
Specified by:
get in interface org.snmp4j.agent.ManagedObject
Overrides:
get in class org.snmp4j.agent.mo.MOScalar

undo

public void undo(org.snmp4j.agent.request.SubRequest request)
Specified by:
undo in interface org.snmp4j.agent.ManagedObject
Overrides:
undo in class org.snmp4j.agent.mo.MOScalar

next

public boolean next(org.snmp4j.agent.request.SubRequest request)
Specified by:
next in interface org.snmp4j.agent.ManagedObject
Overrides:
next in class org.snmp4j.agent.mo.MOScalar

toStringDetails

protected java.lang.String toStringDetails()
Overrides:
toStringDetails in class org.snmp4j.agent.mo.MOScalar

Copyright 2006-2007 Frank Fock (SNMP4J.org)