public class Snmp4jHeartbeatMib.Snmp4jAgentHBRefTime extends DateAndTimeScalar<org.snmp4j.smi.OctetString>
Modifier and Type | Method and Description |
---|---|
org.snmp4j.smi.OctetString |
getValue()
Returns the actual value of this scalar managed object.
|
int |
isValueOK(SubRequest request)
Checks whether the new value contained in the supplied sub-request is a
valid value for this object.
|
void |
load(MOInput input)
Loads the content of the managed object from the specified input (stream).
|
void |
save(MOOutput output)
Saves the (non-volatile) content of this managed object to the specified
output (stream).
|
int |
setValue(org.snmp4j.smi.OctetString newValue)
Sets the value of this scalar managed object without checking it for
the correct syntax.
|
getCalendar, setCalendar
addMOChangeListener, addMOValueValidationListener, changeValue, checkRequestScope, cleanup, commit, covers, find, fireAfterMOChange, fireAfterPrepareMOChange, fireBeforeMOChange, fireBeforePrepareMOChange, fireValidate, get, getAccess, getID, getLowerBound, getOid, getScope, getSingleInstanceScope, getUpperBound, getValue, isCovered, isLowerIncluded, isOverlapping, isUpperIncluded, isVolatile, next, prepare, removeMOChangeListener, removeMOValueValidationListener, setValue, setVolatile, toString, toStringDetails, undo
public int isValueOK(SubRequest request)
MOScalar
MOValueValidationEvent
the registered listeners.isValueOK
in class DateAndTimeScalar<org.snmp4j.smi.OctetString>
request
- 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.public org.snmp4j.smi.OctetString getValue()
MOScalar
value
member and
then call super.
MOScalar.getValue()
in the derived class.getValue
in class DateAndTimeScalar<org.snmp4j.smi.OctetString>
null
Variable with the same syntax defined for
this scalar object.public int setValue(org.snmp4j.smi.OctetString newValue)
MOScalar
public void load(MOInput input) throws IOException
SerializableManagedObject
load
in interface SerializableManagedObject
load
in class MOScalar<org.snmp4j.smi.OctetString>
input
- a MOInput
instance.IOException
- if an MOInput operation fails.public void save(MOOutput output) throws IOException
SerializableManagedObject
save
in interface SerializableManagedObject
save
in class MOScalar<org.snmp4j.smi.OctetString>
output
- a MOOutput
instance.IOException
- if an MOOutput operation fails.Copyright © 2020 SNMP4J.org. All rights reserved.