|
||||||||||
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
public class TableUsmUserTable
The class is used for implementing the "UsmUserTable" group. The group is defined with the following oid: 1.3.6.1.6.3.15.1.2.2.
Field Summary | |
---|---|
protected MBeanServer |
server
Reference to the MBean server. |
Fields inherited from class com.sun.management.snmp.agent.SnmpTableSupport |
---|
entries, meta, theMib |
Constructor Summary | |
---|---|
TableUsmUserTable(SnmpMib myMib)
Constructor for the table. |
|
TableUsmUserTable(SnmpMib myMib,
MBeanServer server)
Constructor for the table. |
Method Summary | |
---|---|
void |
addEntry(UsmUserEntryMBean entry)
Add a new entry to the table. |
void |
addEntry(UsmUserEntryMBean entry,
ObjectName name)
Add a new entry to the table. |
ObjectName |
buildNameFromIndex(SnmpIndex index)
Builds the default ObjectName of an entry from the SnmpIndex identifying this entry. |
SnmpOid |
buildOidFromIndex(SnmpIndex index)
Build index for "UsmUserEntry". |
SnmpOid |
buildOidFromIndexVal(Byte[] aUsmUserEngineID,
String aUsmUserName)
Build index for "UsmUserEntry". |
SnmpIndex |
buildSnmpIndex(long[] index,
int start)
Build index for "UsmUserEntry". |
SnmpIndex |
buildSnmpIndex(UsmUserEntryMBean entry)
Build index for "UsmUserEntry". |
void |
createNewEntry(SnmpMibSubRequest req,
SnmpOid rowOid,
int depth,
SnmpMibTable meta)
Creates a new entry in the table. |
Object |
createUsmUserEntryMBean(SnmpMibSubRequest req,
SnmpOid rowOid,
int depth,
ObjectName entryObjName,
SnmpMibTable meta,
Byte[] aUsmUserEngineID,
String aUsmUserName)
Factory method for "UsmUserEntry" entry MBean class. |
UsmUserEntryMBean[] |
getEntries()
Return the entries stored in the table. |
protected SnmpMibTable |
getRegisteredTableMeta(SnmpMib mib)
Returns the metadata object associated with this table. |
void |
removeEntry(UsmUserEntryMBean entry)
Remove the specified entry from the table. |
void |
removeEntryCb(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 removed from the table metadata. |
Methods inherited from class com.sun.management.snmp.agent.SnmpTableSupport |
---|
addEntry, addEntry, addEntryCb, 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 |
---|
protected MBeanServer server
Constructor Detail |
---|
public TableUsmUserTable(SnmpMib myMib)
public TableUsmUserTable(SnmpMib myMib, MBeanServer server)
Method Detail |
---|
public void createNewEntry(SnmpMibSubRequest req, SnmpOid rowOid, int depth, SnmpMibTable meta) throws SnmpStatusException
SnmpTableSupport
SnmpTableEntryFactory
interface.
You may subclass this method to implement any specific behavior
your application requires.
createNewEntry
in interface SnmpTableEntryFactory
createNewEntry
in class SnmpTableSupport
req
- The SNMP subrequest containing the sublist of varbinds
for the new entry.rowOid
- The OID indexing the conceptual row (entry) for which
the creation was requested.depth
- The depth reached in the OID tree (the position at
which the columnar object ids start in the OIDs
included in the varbind).meta
- The metadata object impacted by the subrequest
SnmpStatusException
- if the entry cannot be created.protected SnmpMibTable getRegisteredTableMeta(SnmpMib mib)
SnmpTableSupport
getRegisteredTableMeta
in class SnmpTableSupport
mib
- The SnmpMib object holding the Metadata corresponding
to this table.
null
if this implementation of the
MIB doesn't support this table.public void removeEntryCb(int pos, SnmpOid row, ObjectName name, Object entry, SnmpMibTable meta) throws SnmpStatusException
SnmpTableSupport
entries
list.
removeEntryCb
in interface SnmpTableCallbackHandler
removeEntryCb
in class SnmpTableSupport
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
public void addEntry(UsmUserEntryMBean entry) throws SnmpStatusException
SnmpStatusException
public void addEntry(UsmUserEntryMBean entry, ObjectName name) throws SnmpStatusException
SnmpStatusException
public UsmUserEntryMBean[] getEntries()
public void removeEntry(UsmUserEntryMBean entry) throws SnmpStatusException
SnmpStatusException
public ObjectName buildNameFromIndex(SnmpIndex index) throws SnmpStatusException
SnmpTableSupport
buildNameFromIndex
in class SnmpTableSupport
index
- The SnmpIndex identifying the entry from which we
want to build the default ObjectName.
SnmpStatusException
- if the given index is not valid.public SnmpIndex buildSnmpIndex(UsmUserEntryMBean entry) throws SnmpStatusException
SnmpStatusException
public SnmpOid buildOidFromIndex(SnmpIndex index) throws SnmpStatusException
buildOidFromIndex
in class SnmpTableSupport
index
- An SnmpIndex object identifying a table entry.
SnmpStatusException
- if the given index is not valid.public SnmpOid buildOidFromIndexVal(Byte[] aUsmUserEngineID, String aUsmUserName) throws SnmpStatusException
SnmpStatusException
public SnmpIndex buildSnmpIndex(long[] index, int start) throws SnmpStatusException
buildSnmpIndex
in class SnmpTableSupport
index
- The OID from which to build the index, represented
as an array of long.start
- The position where to start from in the OID array.
SnmpStatusException
- if the given index is not valid.public Object createUsmUserEntryMBean(SnmpMibSubRequest req, SnmpOid rowOid, int depth, ObjectName entryObjName, SnmpMibTable meta, Byte[] aUsmUserEngineID, String aUsmUserName) throws SnmpStatusException
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 |