|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
org.snmp4j.agent.mo.DeniableEventObject
org.snmp4j.agent.mo.MOTableRowEvent
public class MOTableRowEvent
The MOTableRowEvent class describes the changes
| 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 |
|---|
public static final int CHANGE
public static final int CREATE
public static final int ADD
public static final int DELETE
public static final int UPDATED
| Constructor Detail |
|---|
public MOTableRowEvent(java.lang.Object source,
MOTable table,
MOTableRow row,
int type)
source - the event source.table - the table.row - the row associated with this event.type - the event type.
public MOTableRowEvent(java.lang.Object source,
MOTable table,
MOTableRow row,
int type,
boolean deniable)
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.
public MOTableRowEvent(java.lang.Object source,
MOTable table,
MOTableRow row,
MOTableRow preparedChanges,
int type)
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.
public MOTableRowEvent(java.lang.Object source,
MOTable table,
MOTableRow row,
MOTableRow preparedChanges,
int type,
boolean deniable)
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.| Method Detail |
|---|
public MOTableRow getRow()
public MOTable getTable()
public int getType()
public int getVetoStatus()
public MOTableRow getPreparedChanges()
public int getVetoColumn()
public void setVetoStatus(int denyReason)
denyReason - a SNMP error status or a sub-agent protocol specific error status.
In any case zero represents no error.public void setVetoColumn(int vetoColumn)
vetoColumn - a column index.public java.lang.String toString()
toString in class java.util.EventObject
|
Copyright 2005-2010 Frank Fock (SNMP4J.org) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||