public class RowStatusEvent extends DeniableEventObject
source
Constructor and Description |
---|
RowStatusEvent(Object source,
MOTable table,
MOTableRow row,
MOTableRow changeSet,
int oldStatus,
int newStatus) |
RowStatusEvent(Object source,
MOTable table,
MOTableRow row,
MOTableRow changeSet,
int oldStatus,
int newStatus,
boolean deniable) |
RowStatusEvent(Object source,
MOTable table,
MOTableRow row,
MOTableRow changeSet,
int oldStatus,
int newStatus,
boolean deniable,
SubRequest request)
Creates a row status event and associates a security name with the
status change.
|
Modifier and Type | Method and Description |
---|---|
MOTableRow |
getChangeSet() |
int |
getNewStatus() |
int |
getOldStatus() |
SubRequest |
getRequest()
Returns the request (SNMP or AgentX) associated with this event.
|
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.
|
getDenyReason, isDeniable, setDenyReason
getSource, toString
public RowStatusEvent(Object source, MOTable table, MOTableRow row, MOTableRow changeSet, int oldStatus, int newStatus)
public RowStatusEvent(Object source, MOTable table, MOTableRow row, MOTableRow changeSet, int oldStatus, int newStatus, boolean deniable)
public RowStatusEvent(Object source, MOTable table, MOTableRow row, MOTableRow changeSet, int oldStatus, int newStatus, boolean deniable, SubRequest request)
source
- the source that triggered the event.table
- the MOTable instance the RowStatus belongs to.row
- the MOTableRow instance the RowStatus belongs to.changeSet
- the change set this status change is part of.oldStatus
- the old row status.newStatus
- the new row status.deniable
- defines whether status change can be denied or not.request
- the request that triggered this event.public int getNewStatus()
public int getOldStatus()
public MOTableRow getRow()
public MOTable getTable()
public MOTableRow getChangeSet()
public boolean isRowActivated()
DeniableEventObject.isDeniable()
. If that method returns true
,
then the event is fired on behalf of the preparation phase.true
if the new row status is createAndGo(4) or active(1)
and the old status is not active(1).public boolean isRowDeactivated()
DeniableEventObject.isDeniable()
. If that method returns true
,
then the event is fired on behalf the preparation phase.true
if the new row status is destroy(6) or notInService(2)
and the old status is active(1).public SubRequest getRequest()
null
if the request is not known/has not been provided.Copyright © 2016 SNMP4J.org. All rights reserved.