public interface AgentXSharedMutableMOTable<R extends MOTableRow,C extends MOColumn,M extends MOTableModel<R>> extends AgentXSharedMOTable<R,C,M>
AgentXSharedMutableMOTable
extends the
AgentXSharedMOTable
and MutableMOTable
interface.
It serves as a marker interface to be able to differentiate
between regular tables, AgentX shared index tables, and AgentX shared index
tables with varying number of rows (this kind). The latter two
require an index definition where all sub-indexes have an OID specified
(MOTableSubIndex.getOid()
). AgentX shared index tables provide
services needed for sharing rows of the same conceptual table
across multiple AgentX sub-agents.
This mutable variant is able to add (allocate and register) and remove (deallocate and deregister) rows after initial registration of the subagent.
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.
|
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.
|
addMOChangeListener, addMOTableRowListener, addNewRow, addRow, createRow, createRow, find, getCellInfo, getColumn, getColumnCount, getColumnIndex, getColumns, getDefaultValues, getIndexDef, getIndexPart, getModel, getOID, getValue, getValue, removeMOChangeListener, removeMOTableRowListener, removeRow
setValue
AgentXSharedMOTableSupport<R> getAgentXSharedMOTableSupport()
AgentXSharedMOTableSupport
instance or null
if this table has not been initialized for AgentX yet.void setAgentXSharedMOTableSupport(AgentXSharedMOTableSupport<R> sharedTableSupport)
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).sharedTableSupport
- an AgentXSharedMOTableSupport
instance to be used to
(de)allocate indexes and (de)register rows at the AgentX master agent.boolean changeRowIndex(OID oldIndex, OID newIndex)
MOTableRowEvent
about removing and adding of the row. Only a
MOTableRowEvent.UPDATED
event will be fired.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.