org.snmp4j.agent.mo
Class MOTableRowEvent

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

public class MOTableRowEvent
extends DeniableEventObject

The MOTableRowEvent class describes the changes

Version:
1.1
Author:
Frank Fock
See Also:
Serialized Form

Field Summary
static int ADD
          A row is added.
static int CHANGE
          A single column of a row is changed.
static int CREATE
          A row is created.
static int DELETE
          A row is deleted.
static int UPDATED
          This event type indicates that a complete row has been updated.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
MOTableRowEvent(java.lang.Object source, MOTable table, MOTableRow row, int type)
          Creates a table row event based on table, row and type that cannot be canceled by the event listener.
MOTableRowEvent(java.lang.Object source, MOTable table, MOTableRow row, int type, boolean deniable)
          Creates a table row event based on table, row and type that may be canceled by the event listener depending on the specified flag.
MOTableRowEvent(java.lang.Object source, MOTable table, MOTableRow row, MOTableRow preparedChanges, int type)
          Creates a table row event based on table, row, prepared changes, and type that cannot be canceled by the event listener.
MOTableRowEvent(java.lang.Object source, MOTable table, MOTableRow row, MOTableRow preparedChanges, int type, boolean deniable)
          Creates a table row event based on table, row, prepared changes, and type.
 
Method Summary
 MOTableRow getPreparedChanges()
           
 MOTableRow getRow()
           
 MOTable getTable()
           
 int getType()
           
 int getVetoColumn()
           
 int getVetoStatus()
          Returns the veto status that revokes the row operation or zero if the row operation is accepted by all listeners.
 void setVetoColumn(int vetoColumn)
          Sets the column index on whose behalf the veto is issued.
 void setVetoStatus(int denyReason)
          Sets the veto status that revokes the row operation.
 java.lang.String toString()
           
 
Methods inherited from class org.snmp4j.agent.mo.DeniableEventObject
getDenyReason, isDeniable, setDenyReason
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CHANGE

public static final int CHANGE
A single column of a row is changed.

See Also:
Constant Field Values

CREATE

public static final int CREATE
A row is created.

See Also:
Constant Field Values

ADD

public static final int ADD
A row is added.

See Also:
Constant Field Values

DELETE

public static final int DELETE
A row is deleted.

See Also:
Constant Field Values

UPDATED

public static final int UPDATED
This event type indicates that a complete row has been updated.

See Also:
Constant Field Values
Constructor Detail

MOTableRowEvent

public MOTableRowEvent(java.lang.Object source,
                       MOTable table,
                       MOTableRow row,
                       int type)
Creates a table row event based on table, row and type that cannot be canceled by the event listener.

Parameters:
source - the event source.
table - the table.
row - the row associated with this event.
type - the event type.

MOTableRowEvent

public MOTableRowEvent(java.lang.Object source,
                       MOTable table,
                       MOTableRow row,
                       int type,
                       boolean deniable)
Creates a table row event based on table, row and type that may be canceled by the event listener depending on the specified flag.

Parameters:
source - the event source.
table - the table.
row - the row associated with this event.
type - the event type.
deniable - indicates whether the event can be canceled through setting its denyReason member to a SNMP error status.
Since:
1.1

MOTableRowEvent

public MOTableRowEvent(java.lang.Object source,
                       MOTable table,
                       MOTableRow row,
                       MOTableRow preparedChanges,
                       int type)
Creates a table row event based on table, row, prepared changes, and type that cannot be canceled by the event listener.

Parameters:
source - the event source.
table - the table.
row - the row associated with this event.
preparedChanges - a row instance containing the prepared changes for row.
type - the event type.

MOTableRowEvent

public MOTableRowEvent(java.lang.Object source,
                       MOTable table,
                       MOTableRow row,
                       MOTableRow preparedChanges,
                       int type,
                       boolean deniable)
Creates a table row event based on table, row, prepared changes, and type.

Parameters:
source - the event source.
table - the table.
row - the row associated with this event.
preparedChanges - a row instance containing the prepared changes for row.
type - the event type.
deniable - indicates whether the event can be canceled through setting its denyReason member to a SNMP error status.
Since:
1.1
Method Detail

getRow

public MOTableRow getRow()

getTable

public MOTable getTable()

getType

public int getType()

getVetoStatus

public int getVetoStatus()
Returns the veto status that revokes the row operation or zero if the row operation is accepted by all listeners.

Returns:
a SNMP or sub-agent protocol error status or zero if the row operation is accepted.

getPreparedChanges

public MOTableRow getPreparedChanges()

getVetoColumn

public int getVetoColumn()

setVetoStatus

public void setVetoStatus(int denyReason)
Sets the veto status that revokes the row operation.

Parameters:
denyReason - a SNMP error status or a sub-agent protocol specific error status. In any case zero represents no error.

setVetoColumn

public void setVetoColumn(int vetoColumn)
Sets the column index on whose behalf the veto is issued.

Parameters:
vetoColumn - a column index.

toString

public java.lang.String toString()
Overrides:
toString in class java.util.EventObject

Copyright 2005-2010 Frank Fock (SNMP4J.org)

Copyright © 2011 SNMP4J.org. All Rights Reserved.