|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.snmp4j.agent.mo.MOScalar
org.snmp4j.agent.mo.snmp.EnumeratedScalar
public class EnumeratedScalar
The EnumeratedScalar class represents enumerated SMI INTEGER
(=Integer32) or an OCTET STRING with enumerated named bits for
scalar objects. The latter represents the SMI construct BITS.
| Constructor Summary | |
|---|---|
EnumeratedScalar(org.snmp4j.smi.OID oid,
MOAccess access,
org.snmp4j.smi.Integer32 value)
Creates an enumerated INTEGER scalar with specifying a set of possible values. |
|
EnumeratedScalar(org.snmp4j.smi.OID oid,
MOAccess access,
org.snmp4j.smi.Integer32 value,
int[] allowedValues)
Creates an enumerated INTEGER scalar with specifying a set of possible values. |
|
EnumeratedScalar(org.snmp4j.smi.OID oid,
MOAccess access,
org.snmp4j.smi.OctetString value)
Creates a BITS scalar with specifying a set of possible bit values. |
|
EnumeratedScalar(org.snmp4j.smi.OID oid,
MOAccess access,
org.snmp4j.smi.OctetString value,
int[] allowedValues)
Creates a BITS scalar with specifying a set of possible bit values. |
|
| Method Summary | |
|---|---|
int |
isValueOK(SubRequest request)
Checks whether the new value contained in the supplied sub-request is a valid value for this object. |
protected void |
setConstraint(EnumerationConstraint constraint)
|
| Methods inherited from class org.snmp4j.agent.mo.MOScalar |
|---|
addMOChangeListener, addMOValueValidationListener, changeValue, checkRequestScope, cleanup, commit, covers, find, fireAfterMOChange, fireAfterPrepareMOChange, fireBeforeMOChange, fireBeforePrepareMOChange, fireValidate, get, getAccess, getID, getLowerBound, getOid, getScope, getSingleInstanceScope, getUpperBound, getValue, getValue, isCovered, isLowerIncluded, isOverlapping, isUpperIncluded, isVolatile, load, next, prepare, removeMOChangeListener, removeMOValueValidationListener, save, setValue, setValue, setVolatile, toString, toStringDetails, undo |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EnumeratedScalar(org.snmp4j.smi.OID oid,
MOAccess access,
org.snmp4j.smi.Integer32 value)
EnumerationConstraint with setConstraint(org.snmp4j.agent.mo.snmp.smi.EnumerationConstraint) or use an
appropriate value validation listener.
oid - the instance oid (with ".0" suffix) of the scalar.access - the maximum access for this column.value - the initial value.
public EnumeratedScalar(org.snmp4j.smi.OID oid,
MOAccess access,
org.snmp4j.smi.Integer32 value,
int[] allowedValues)
oid - the instance oid (with ".0" suffix) of the scalar.access - the maximum access for this column.value - the initial value.allowedValues - an array of possible values for this object.
public EnumeratedScalar(org.snmp4j.smi.OID oid,
MOAccess access,
org.snmp4j.smi.OctetString value)
EnumerationConstraint with setConstraint(org.snmp4j.agent.mo.snmp.smi.EnumerationConstraint) or use an
appropriate value validation listener.
oid - the instance oid (with ".0" suffix) of the scalar.access - the maximum access for this column.value - the initial value.
public EnumeratedScalar(org.snmp4j.smi.OID oid,
MOAccess access,
org.snmp4j.smi.OctetString value,
int[] allowedValues)
oid - the instance oid (with ".0" suffix) of the scalar.access - the maximum access for this column.value - the initial value.allowedValues - an array of possible values for this object.| Method Detail |
|---|
public int isValueOK(SubRequest request)
MOScalarMOValueValidationEvent the registered listeners.
isValueOK in class MOScalarrequest - the SubRequest with the new value.
SnmpConstants.SNMP_ERROR_SUCCESS if the new value is OK,
any other appropriate SNMPv2/v3 error status if not.protected void setConstraint(EnumerationConstraint constraint)
|
Copyright 2005-2010 Frank Fock (SNMP4J.org) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||