org.snmp4j.agent.mo.snmp
Class UsmMIB.UsmTableRow

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

public class UsmMIB.UsmTableRow
extends DefaultMOMutableRow2PC


Field Summary
 
Fields inherited from class org.snmp4j.agent.mo.DefaultMOTableRow
index, values
 
Constructor Summary
UsmMIB.UsmTableRow(UsmMIB.UsmTableModel model, org.snmp4j.smi.OID index, org.snmp4j.smi.Variable[] values)
           
 
Method Summary
 void cleanupRow(SubRequest subRequest, DefaultMOTable.ChangeSet changeSet)
          Cleans up resources for a row.
 void commitRow(SubRequest subRequest, MOTableRow changeSet)
          Commits a row as described by the supplied change set.
 boolean containsHiddenValues()
           
 org.snmp4j.security.AuthenticationProtocol getAuthProtocol(MOTableRow changeSet)
           
 org.snmp4j.smi.OID getAuthProtocolOID(MOTableRow changeSet)
          Gets the OID of the authentication protocol defined by the given change set.
 MOTableIndex getIndexDef()
           
 org.snmp4j.security.PrivacyProtocol getPrivProtocol(MOTableRow changeSet)
           
 org.snmp4j.smi.OID getPrivProtocolOID(MOTableRow preparedChanges)
          Gets the OID of the privacy protocol defined by the given change set.
 org.snmp4j.smi.Variable getValue(int column)
          Gets the value at the specified column index.
 boolean isCloned()
           
 void prepare(SubRequest subRequest, MOTableRow preparedChanges, int column)
          Prepares changing a single column.
 void setCloned(boolean cloned)
           
 void undoRow(SubRequest subRequest, DefaultMOTable.ChangeSet changeSet)
          Undos changes to a row.
 
Methods inherited from class org.snmp4j.agent.mo.DefaultMOMutableRow2PC
cleanup, commit, getBaseRow, getIndex, getResultingValue, getUserObject, prepareRow, setBaseRow, setUserObject, setValue, size, toString, undo
 
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

UsmMIB.UsmTableRow

public UsmMIB.UsmTableRow(UsmMIB.UsmTableModel model,
                          org.snmp4j.smi.OID index,
                          org.snmp4j.smi.Variable[] values)
Method Detail

setCloned

public void setCloned(boolean cloned)

isCloned

public boolean isCloned()

getIndexDef

public MOTableIndex getIndexDef()

getAuthProtocol

public org.snmp4j.security.AuthenticationProtocol getAuthProtocol(MOTableRow changeSet)

getPrivProtocol

public org.snmp4j.security.PrivacyProtocol getPrivProtocol(MOTableRow changeSet)

getPrivProtocolOID

public org.snmp4j.smi.OID getPrivProtocolOID(MOTableRow preparedChanges)
Gets the OID of the privacy protocol defined by the given change set. If the change set defines UsmMIB.noPrivProtocol null is returned.

Parameters:
preparedChanges - a TableRow instance with UsmTableRow values.
Returns:
a privacy protocol OID or null if no privacy protocol is defined by changeSet.

prepare

public void prepare(SubRequest subRequest,
                    MOTableRow preparedChanges,
                    int column)
Description copied from interface: MOMutableRow2PC
Prepares changing a single column.

Specified by:
prepare in interface MOMutableRow2PC
Overrides:
prepare in class DefaultMOMutableRow2PC
Parameters:
subRequest - the sub-request that corresponds to the column change. This object can be used to deny the commit phase by setting its error status.
preparedChanges - a MOTableRow instance that represents the state of the row if all changes have been applied successfully.
column - the column index of the column to be changed.

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.

getAuthProtocolOID

public org.snmp4j.smi.OID getAuthProtocolOID(MOTableRow changeSet)
Gets the OID of the authentication protocol defined by the given change set. If the change set defines UsmMIB.noAuthProtocol null is returned.

Parameters:
changeSet - a TableRow instance with UsmTableRow values.
Returns:
an authentication protocol OID or null if no authentication protocol is defined by changeSet.

cleanupRow

public void cleanupRow(SubRequest subRequest,
                       DefaultMOTable.ChangeSet changeSet)
Description copied from interface: MOMutableRow2PC
Cleans up resources for a row.

This method is called only once per modified row.

Specified by:
cleanupRow in interface MOMutableRow2PC
Overrides:
cleanupRow in class DefaultMOMutableRow2PC
Parameters:
subRequest - the sub-request that triggered the row change.
changeSet - a MOTableRow instance that represents the state of the row if all changes have been applied successfully.

undoRow

public void undoRow(SubRequest subRequest,
                    DefaultMOTable.ChangeSet changeSet)
Description copied from interface: MOMutableRow2PC
Undos changes to a row.

This method is called only once per modified row.

Specified by:
undoRow in interface MOMutableRow2PC
Overrides:
undoRow in class DefaultMOMutableRow2PC
Parameters:
subRequest - the sub-request that triggered the row change.
changeSet - a MOTableRow instance that represents the state of the row if all changes have been applied successfully.

getValue

public org.snmp4j.smi.Variable getValue(int column)
Description copied from interface: MOTableRow
Gets the value at the specified column index.

Specified by:
getValue in interface MOTableRow
Overrides:
getValue in class DefaultMOMutableRow2PC
Parameters:
column - the zero-based column index.
Returns:
the value at the specified index.

containsHiddenValues

public boolean containsHiddenValues()

Copyright 2005-2010 Frank Fock (SNMP4J.org)

Copyright © 2011 SNMP4J.org. All Rights Reserved.