public class DefaultAgentXSharedMOTable<R extends MOTableRow,C extends MOColumn,M extends MOTableModel<R>> extends DefaultMOTable<R,C,M> implements AgentXSharedMutableMOTable<R,C,M>
DefaultAgentXSharedMOTable
class is a default implementation
for a shared table. It supports dynamic (while AgentX session is up) row
creation and deletion.DefaultMOTable.ChangeSet
moChangeListeners, model, moTableRowListeners, newRows, pendingChanges
Constructor and Description |
---|
DefaultAgentXSharedMOTable(OID oid,
MOTableIndex indexDef,
C[] columns) |
DefaultAgentXSharedMOTable(OID oid,
MOTableIndex indexDef,
C[] columns,
M model) |
Modifier and Type | Method and Description |
---|---|
boolean |
changeRowIndex(OID oldIndex,
OID newIndex)
Changes the index of a row without firing a
MOTableRowEvent
about removing and adding of the row. |
AgentXSharedMOTableSupport<R> |
getAgentXSharedMOTableSupport()
Returns the shared table support object this shared table uses.
|
byte |
getOverrideIndexAllocationMode() |
byte |
getOverridePriority() |
void |
setAgentXSharedMOTableSupport(AgentXSharedMOTableSupport<R> sharedTableSupport)
Sets the shared table support that this shared table should be use to
(de)register rows and (de)allocate indexes while this shared table is
part of an connected AgentX session.
|
void |
setOverrideIndexAllocationMode(byte overrideIndexAllocationMode)
Sets the index allocation mode that overrides the allocation mode
inherited from the shared table support for index allocation operations
for this shared table.
|
void |
setOverridePriority(byte overridePriority)
Sets the registration priority that overrides the priority inherited from
the shared table support object (if not equal zero).
|
addMOChangeListener, addMOTableRowListener, addNewRow, addPendingChanges, addRow, cleanup, commit, covers, createRow, createRow, find, findCell, fireAfterMOChange, fireAfterPrepareMOChange, fireBeforeMOChange, fireBeforePrepareMOChange, fireRowChanged, get, getCellInfo, getCellOID, getChangesFromRequest, getColumn, getColumnCount, getColumnIndex, getColumns, getDefaultValues, getID, getIndexDef, getIndexPart, getLowerBound, getModel, getNewRows, getOID, getPendingChangeSet, getPersistentValues, getScope, getUpperBound, getValue, getValue, getValue, hasNewRows, isChangeSetComplete, isCovered, isLowerIncluded, isOverlapping, isUpperIncluded, isVolatile, load, next, prepare, removeAll, removeMOChangeListener, removeMOTableRowListener, removeRow, save, setModel, setValue, setVolatile, toString, undo, update, update
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addMOChangeListener, addMOTableRowListener, addNewRow, addRow, createRow, createRow, find, getCellInfo, getColumn, getColumnCount, getColumnIndex, getColumns, getDefaultValues, getIndexDef, getIndexPart, getModel, getOID, getValue, getValue, removeMOChangeListener, removeMOTableRowListener, removeRow
setValue
public DefaultAgentXSharedMOTable(OID oid, MOTableIndex indexDef, C[] columns)
public DefaultAgentXSharedMOTable(OID oid, MOTableIndex indexDef, C[] columns, M model)
public AgentXSharedMOTableSupport<R> getAgentXSharedMOTableSupport()
AgentXSharedMutableMOTable
getAgentXSharedMOTableSupport
in interface AgentXSharedMutableMOTable<R extends MOTableRow,C extends MOColumn,M extends MOTableModel<R>>
AgentXSharedMOTableSupport
instance or null
if this table has not been initialized for AgentX yet.public void setAgentXSharedMOTableSupport(AgentXSharedMOTableSupport<R> sharedTableSupport)
AgentXSharedMutableMOTable
AgentXSession
instance returned by this shared tabe support. If either the shared table
support instance is null
or AgentXSession.isClosed()
returns true
the AgentX session is considered to be
disconnected (not established).setAgentXSharedMOTableSupport
in interface AgentXSharedMutableMOTable<R extends MOTableRow,C extends MOColumn,M extends MOTableModel<R>>
sharedTableSupport
- an AgentXSharedMOTableSupport
instance to be used to
(de)allocate indexes and (de)register rows at the AgentX master agent.public byte getOverrideIndexAllocationMode()
public byte getOverridePriority()
public void setOverrideIndexAllocationMode(byte overrideIndexAllocationMode)
overrideIndexAllocationMode
- an index allocation mode as defined by
AgentXSharedMOTableSupport
or zero to use the default priority.public void setOverridePriority(byte overridePriority)
overridePriority
- a value between 1 and 255 (-1 respectively - its a byte) or zero which
indicates that the default priority should be used.public boolean changeRowIndex(OID oldIndex, OID newIndex)
AgentXSharedMutableMOTable
MOTableRowEvent
about removing and adding of the row. Only a
MOTableRowEvent.UPDATED
event will be fired.changeRowIndex
in interface AgentXSharedMutableMOTable<R extends MOTableRow,C extends MOColumn,M extends MOTableModel<R>>
oldIndex
- the old index of the row to change.newIndex
- the new index of the row.true
if the row index could be changed and
false
if either the row does not exists or the table model
does not allow to add/remove rows.Copyright © 2016 SNMP4J.org. All rights reserved.