ChangeSet<SnmpValueChange>
public class SnmpValuesChangeSet extends Object implements ChangeSet<SnmpValueChange>
ChangeSet.ChangeStatus
Constructor | Description |
---|---|
SnmpValuesChangeSet() |
Creates an empty change set.
|
SnmpValuesChangeSet(Collection<SnmpValueChange> changes,
Object userReference) |
Creates a change set based on a provided list of changes and with an associated user object.
|
Modifier and Type | Method | Description |
---|---|---|
void |
addChange(SnmpValueChange change) |
Adds a change to the change set.
|
List<SnmpValueChange> |
getChanges() |
Gets a list of the changes objects.
|
SnmpErrorStatus |
getErrorStatus() |
Gets the SNMP error status as defined by
SnmpErrorStatus . |
List |
getNewValues() |
Gets all the new values as new a list.
|
ChangeSet.ChangeStatus |
getStatus() |
The status of the change.
|
Object |
getUserReference() |
Gets the user reference object associated with this change.
|
List<? extends org.snmp4j.smi.VariableBinding> |
getVariableBindings() |
Gets the variable bindings that are formed by this change set.
|
boolean |
isVariableSetOk() |
Checks if all variables are not
null . |
void |
setStatus(ChangeSet.ChangeStatus status) |
Sets the status of the change.
|
String |
toString() |
public SnmpValuesChangeSet()
public SnmpValuesChangeSet(Collection<SnmpValueChange> changes, Object userReference)
changes
- the changes to include in the change set. The provided collection is not be used internally.userReference
- a arbitrary user defined object to be associated with this change set.public void addChange(SnmpValueChange change)
change
- the new change to add.public List<SnmpValueChange> getChanges()
ChangeSet
getChanges
in interface ChangeSet<SnmpValueChange>
public List getNewValues()
public boolean isVariableSetOk()
null
.true
if all SNMP variables are set (not null).public List<? extends org.snmp4j.smi.VariableBinding> getVariableBindings()
public ChangeSet.ChangeStatus getStatus()
ChangeSet
getStatus
in interface ChangeSet<SnmpValueChange>
public void setStatus(ChangeSet.ChangeStatus status)
ChangeSet
setStatus
in interface ChangeSet<SnmpValueChange>
status
- the new status.public SnmpErrorStatus getErrorStatus()
ChangeSet
SnmpErrorStatus
.getErrorStatus
in interface ChangeSet<SnmpValueChange>
public Object getUserReference()
Copyright © 2020 SNMP4J.org. All rights reserved.