org.snmp4j.agent.mo.snmp
Class RowStatusEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.snmp4j.agent.mo.DeniableEventObject
          extended by org.snmp4j.agent.mo.snmp.RowStatusEvent
All Implemented Interfaces:
java.io.Serializable

public class RowStatusEvent
extends DeniableEventObject

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
RowStatusEvent(java.lang.Object source, MOTable table, MOTableRow row, MOTableRow changeSet, int oldStatus, int newStatus)
           
RowStatusEvent(java.lang.Object source, MOTable table, MOTableRow row, MOTableRow changeSet, int oldStatus, int newStatus, boolean deniable)
           
 
Method Summary
 MOTableRow getChangeSet()
           
 int getNewStatus()
           
 int getOldStatus()
           
 MOTableRow getRow()
           
 MOTable getTable()
           
 boolean isRowActivated()
          Checks whether the row event represents an activation of a row.
 boolean isRowDeactivated()
          Checks whether the row event represents a deactivation of a row.
 
Methods inherited from class org.snmp4j.agent.mo.DeniableEventObject
getDenyReason, isDeniable, setDenyReason
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RowStatusEvent

public RowStatusEvent(java.lang.Object source,
                      MOTable table,
                      MOTableRow row,
                      MOTableRow changeSet,
                      int oldStatus,
                      int newStatus)

RowStatusEvent

public RowStatusEvent(java.lang.Object source,
                      MOTable table,
                      MOTableRow row,
                      MOTableRow changeSet,
                      int oldStatus,
                      int newStatus,
                      boolean deniable)
Method Detail

getNewStatus

public int getNewStatus()

getOldStatus

public int getOldStatus()

getRow

public MOTableRow getRow()

getTable

public MOTable getTable()

getChangeSet

public MOTableRow getChangeSet()

isRowActivated

public boolean isRowActivated()
Checks whether the row event represents an activation of a row. To distinguish between a committing and a preparing row status event, use DeniableEventObject.isDeniable(). If that method returns true, then the event is fired on behalf of the preparation phase.

Returns:
true if the new row status is createAndGo(4) or active(1) and the old status is not active(1).

isRowDeactivated

public boolean isRowDeactivated()
Checks whether the row event represents a deactivation of a row. To distinguish between a committing and a preparing row status event, use DeniableEventObject.isDeniable(). If that method returns true, then the event is fired on behalf the preparation phase.

Returns:
true if the new row status is destroy(6) or notInService(2) and the old status is active(1).

Copyright 2005-2008 Frank Fock (SNMP4J.org)