|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.management.snmp.agent.SnmpTableSupport com.sun.management.snmp.usm.usmmib.TableUsmUserTable com.sun.management.snmp.usm.usmmib.TableUsmUserTableImpl
public class TableUsmUserTableImpl
The table has been customized to instantiate UsmUserEntryImpl. You
can overload createUsmUserEntry
method in order to
instantiate your own UsmUserEntry.
Field Summary | |
---|---|
static int |
MAX_USM_USER_NAME_LENGTH
|
Fields inherited from class com.sun.management.snmp.usm.usmmib.TableUsmUserTable |
---|
server |
Fields inherited from class com.sun.management.snmp.agent.SnmpTableSupport |
---|
entries, meta, theMib |
Constructor Summary | |
---|---|
TableUsmUserTableImpl(SnmpEngine engine,
SnmpMib myMib,
MBeanServer server,
SnmpUsmLcd lcd)
Constructor for the table. |
|
TableUsmUserTableImpl(SnmpEngine engine,
SnmpMib myMib,
SnmpUsmLcd lcd)
Constructor. |
Method Summary | |
---|---|
void |
addEntryCb(int pos,
SnmpOid row,
ObjectName name,
Object entry,
SnmpMibTable meta)
This callback is called by the associated metadata object when a new table entry has been registered in the table metadata. |
protected UsmUserEntryImpl |
createUsmUserEntry(SnmpEngine engine,
SnmpMib mib,
SnmpUsmLcd lcd,
SnmpUsmSecureUser user,
SnmpMibTable tableMeta)
Overload this method in order to instantiate your own UsmUserEntry. |
Object |
createUsmUserEntryMBean(SnmpMibSubRequest req,
SnmpOid rowOid,
int depth,
ObjectName entryObjName,
SnmpMibTable meta,
Byte[] aUsmUserEngineID,
String aUsmUserName)
Factory method for "UsmUserEntry" entry MBean class. |
void |
removeEntryCb(int pos,
SnmpOid row,
ObjectName name,
Object entry,
SnmpMibTable meta)
A user has been removed from SNMP. |
void |
userAdded(SnmpUsmSecureUser user)
See SnmpUsmMibTable interface for documentation. |
void |
userRemoved(SnmpUsmSecureUser user)
See SnmpUsmMibTable interface for documentation. |
void |
userUpdated(SnmpUsmSecureUser user)
See SnmpUsmMibTable interface for documentation. |
Methods inherited from class com.sun.management.snmp.usm.usmmib.TableUsmUserTable |
---|
addEntry, addEntry, buildNameFromIndex, buildOidFromIndex, buildOidFromIndexVal, buildSnmpIndex, buildSnmpIndex, createNewEntry, getEntries, getRegisteredTableMeta, removeEntry |
Methods inherited from class com.sun.management.snmp.agent.SnmpTableSupport |
---|
addEntry, addEntry, addNotificationListener, allocateTable, bindWithTableMeta, buildSnmpIndex, getBasicEntries, getEntry, getNotificationInfo, getSize, isCreationEnabled, isRegistrationRequired, removeEntry, removeNotificationListener, setCreationEnabled |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MAX_USM_USER_NAME_LENGTH
Constructor Detail |
---|
public TableUsmUserTableImpl(SnmpEngine engine, SnmpMib myMib, SnmpUsmLcd lcd)
public TableUsmUserTableImpl(SnmpEngine engine, SnmpMib myMib, MBeanServer server, SnmpUsmLcd lcd)
Method Detail |
---|
public Object createUsmUserEntryMBean(SnmpMibSubRequest req, SnmpOid rowOid, int depth, ObjectName entryObjName, SnmpMibTable meta, Byte[] aUsmUserEngineID, String aUsmUserName) throws SnmpStatusException
TableUsmUserTable
createUsmUserEntryMBean
in class TableUsmUserTable
SnmpStatusException
protected UsmUserEntryImpl createUsmUserEntry(SnmpEngine engine, SnmpMib mib, SnmpUsmLcd lcd, SnmpUsmSecureUser user, SnmpMibTable tableMeta)
UsmUserEntryImpl
.
engine
- The local SNMP engine.mib
- The current mib.lcd
- The lcd the MIB is bound to.user
- The lcd user bound to the newly created entry.public void userAdded(SnmpUsmSecureUser user)
userAdded
in interface SnmpUsmMibTable
user
- The newly added user.public void userUpdated(SnmpUsmSecureUser user)
userUpdated
in interface SnmpUsmMibTable
user
- The updated user.public void userRemoved(SnmpUsmSecureUser user)
userRemoved
in interface SnmpUsmMibTable
user
- The removed user.public void addEntryCb(int pos, SnmpOid row, ObjectName name, Object entry, SnmpMibTable meta) throws SnmpStatusException
SnmpTableSupport
entries
list.
addEntryCb
in interface SnmpTableCallbackHandler
addEntryCb
in class SnmpTableSupport
pos
- The position at which the new entry was inserted
in the table.row
- The row OID of the new entryname
- The ObjectName of the new entry (as specified by the
factory)entry
- The new entry (as returned by the factory)meta
- The table metadata object.
SnmpStatusException
public void removeEntryCb(int pos, SnmpOid row, ObjectName name, Object entry, SnmpMibTable meta) throws SnmpStatusException
removeEntryCb
in interface SnmpTableCallbackHandler
removeEntryCb
in class TableUsmUserTable
pos
- The position from which the entry was deletedrow
- The row OID of the deleted entryname
- The ObjectName of the deleted entry (may be null if
ObjectName's were not required)entry
- The deleted entry (may be null if only ObjectName's
were required)meta
- The table metadata object.
SnmpStatusException
|
Open Source build 02 opendmk-1.0-b02 2007.10.01_19:17:46_MEST |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |