|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sun.jdmk.snmp.agent.SnmpTableSupport
com.sun.jdmk.snmp.usm.usmmib.TableUsmUserTable
com.sun.management.snmp.usm.usmmib in
preference to classes in this package. This class may be removed
in a future version of Java DMK.
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
Deprecated. Reference to the MBean server. |
| Fields inherited from class com.sun.jdmk.snmp.agent.SnmpTableSupport |
entries, meta, theMib |
| Constructor Summary | |
TableUsmUserTable(SnmpMib myMib)
Deprecated. Constructor for the table. |
|
TableUsmUserTable(SnmpMib myMib,
MBeanServer server)
Deprecated. Constructor for the table. |
|
| Method Summary | |
void |
addEntry(UsmUserEntryMBean entry)
Deprecated. Add a new entry to the table. |
void |
addEntry(UsmUserEntryMBean entry,
ObjectName name)
Deprecated. Add a new entry to the table. |
ObjectName |
buildNameFromIndex(SnmpIndex index)
Deprecated. Builds the default ObjectName of an entry from the SnmpIndex identifying this entry. |
SnmpOid |
buildOidFromIndex(SnmpIndex index)
Deprecated. Build index for "UsmUserEntry". |
SnmpOid |
buildOidFromIndexVal(Byte[] aUsmUserEngineID,
String aUsmUserName)
Deprecated. Build index for "UsmUserEntry". |
SnmpIndex |
buildSnmpIndex(long[] index,
int start)
Deprecated. Build index for "UsmUserEntry". |
SnmpIndex |
buildSnmpIndex(UsmUserEntryMBean entry)
Deprecated. Build index for "UsmUserEntry". |
void |
createNewEntry(SnmpMibSubRequest req,
SnmpOid rowOid,
int depth,
SnmpMibTable meta)
Deprecated. Creates a new entry in the table. |
Object |
createUsmUserEntryMBean(SnmpMibSubRequest req,
SnmpOid rowOid,
int depth,
ObjectName entryObjName,
SnmpMibTable meta,
Byte[] aUsmUserEngineID,
String aUsmUserName)
Deprecated. Factory method for "UsmUserEntry" entry MBean class. |
UsmUserEntryMBean[] |
getEntries()
Deprecated. Return the entries stored in the table. |
protected SnmpMibTable |
getRegisteredTableMeta(SnmpMib mib)
Deprecated. Returns the metadata object associated with this table. |
void |
removeEntry(UsmUserEntryMBean entry)
Deprecated. Remove the specified entry from the table. |
void |
removeEntryCb(int pos,
SnmpOid row,
ObjectName name,
Object entry,
SnmpMibTable meta)
Deprecated. 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.jdmk.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
SnmpTableSupportSnmpTableEntryFactory interface.
You may subclass this method to implement any specific behavior
your application requires.
createNewEntry in interface SnmpTableEntryFactorycreateNewEntry in class SnmpTableSupportSnmpStatusException - if the entry cannot be created.protected SnmpMibTable getRegisteredTableMeta(SnmpMib mib)
SnmpTableSupport
getRegisteredTableMeta in class SnmpTableSupportmib - 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
SnmpTableSupportentries list.
removeEntryCb in interface SnmpTableCallbackHandlerremoveEntryCb in class SnmpTableSupportpos - 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
SnmpStatusExceptionpublic UsmUserEntryMBean[] getEntries()
public void removeEntry(UsmUserEntryMBean entry)
throws SnmpStatusException
SnmpStatusException
public ObjectName buildNameFromIndex(SnmpIndex index)
throws SnmpStatusException
SnmpTableSupport
buildNameFromIndex in class SnmpTableSupportindex - 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 SnmpTableSupportindex - 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 SnmpTableSupportindex - 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
|
FCS Release jdmk-5_1-b34.1 2005.02.10_16:46:09_MET |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||