org.snmp4j.agent.mo.snmp
Class SnmpTargetMIB.SnmpTargetAddrEntryRow

java.lang.Object
  extended by org.snmp4j.agent.mo.DefaultMOTableRow
      extended by org.snmp4j.agent.mo.DefaultMOMutableRow2PC
          extended by org.snmp4j.agent.mo.snmp.SnmpTargetMIB.SnmpTargetAddrEntryRow
All Implemented Interfaces:
java.lang.Comparable, MOMutableRow2PC, MOMutableTableRow, MOTableRow
Enclosing class:
SnmpTargetMIB

public class SnmpTargetMIB.SnmpTargetAddrEntryRow
extends DefaultMOMutableRow2PC


Field Summary
 
Fields inherited from class org.snmp4j.agent.mo.DefaultMOTableRow
index, values
 
Constructor Summary
SnmpTargetMIB.SnmpTargetAddrEntryRow(org.snmp4j.smi.OID index, org.snmp4j.smi.Variable[] values)
           
 
Method Summary
 void commitRow(SubRequest subRequest, MOTableRow changeSet)
          Commits a row as described by the supplied change set.
 org.snmp4j.smi.Address getAddress()
           
 org.snmp4j.smi.OctetString getTAddress(org.snmp4j.smi.Address address)
           
 org.snmp4j.Target getTarget(org.snmp4j.smi.OctetString contextEngineID, org.snmp4j.smi.OctetString contextName)
           
 void prepareRow(SubRequest subRequest, MOTableRow changeSet)
          Prepares a row for changes described by the supplied change set.
 
Methods inherited from class org.snmp4j.agent.mo.DefaultMOMutableRow2PC
cleanup, cleanupRow, commit, getBaseRow, getIndex, getResultingValue, getUserObject, getValue, prepare, setBaseRow, setUserObject, setValue, size, toString, undo, undoRow
 
Methods inherited from class org.snmp4j.agent.mo.DefaultMOTableRow
compareTo, equals, hashCode, toStringMembers
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SnmpTargetMIB.SnmpTargetAddrEntryRow

public SnmpTargetMIB.SnmpTargetAddrEntryRow(org.snmp4j.smi.OID index,
                                            org.snmp4j.smi.Variable[] values)
Method Detail

commitRow

public void commitRow(SubRequest subRequest,
                      MOTableRow changeSet)
Description copied from interface: MOMutableRow2PC
Commits a row as described by the supplied change set. If the modification cannot be successfully committed, the error status of the supplied subRequest should be set to commitFailed. Setting this error should be avoided under any circumstances.

This method is called only once per modified row.

Specified by:
commitRow in interface MOMutableRow2PC
Overrides:
commitRow in class DefaultMOMutableRow2PC
Parameters:
subRequest - the sub-request that triggered the row change and that can be used to trigger the undo phase by setting its error status.
changeSet - a MOTableRow instance that represents the state of the row if all changes have been applied successfully.

prepareRow

public void prepareRow(SubRequest subRequest,
                       MOTableRow changeSet)
Description copied from interface: MOMutableRow2PC
Prepares a row for changes described by the supplied change set. If the modification cannot be successfully prepared, the error status of the supplied subRequest should be set to the appropriate error status value.

This method is called only once per modified row.

Specified by:
prepareRow in interface MOMutableRow2PC
Overrides:
prepareRow in class DefaultMOMutableRow2PC
Parameters:
subRequest - the sub-request that triggered the row change and that can be used to deny the commit phase by setting its error status.
changeSet - a MOTableRow instance that represents the state of the row if all changes have been applied successfully.

getAddress

public org.snmp4j.smi.Address getAddress()

getTAddress

public org.snmp4j.smi.OctetString getTAddress(org.snmp4j.smi.Address address)

getTarget

public org.snmp4j.Target getTarget(org.snmp4j.smi.OctetString contextEngineID,
                                   org.snmp4j.smi.OctetString contextName)

Copyright 2005-2010 Frank Fock (SNMP4J.org)

Copyright © 2011 SNMP4J.org. All Rights Reserved.