|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ocap.diagnostics.MIBManager
public abstract class MIBManager
The MIBManager class provides Management Information Base (MIB) access to the host's MIB. Applications may use the MIBManager to make MIB queries. In addition, applications can set a MIB Object that can be retrieved from the Host device using SNMP.
| Field Summary | |
|---|---|
static int |
ECM_SUBDEVICE
Used to identify the subdevice type and query eCM MIB values. |
static int |
ESTB_SUBDEVICE
Used to identify the subdevice type and query Host MIB values. |
static int |
MIB_ACCESS_READONLY
|
static int |
MIB_ACCESS_READWRITE
|
static int |
MIB_ACCESS_WRITEONLY
|
| Constructor Summary | |
|---|---|
protected |
MIBManager()
Protected constructor, no application access. |
| Method Summary | |
|---|---|
static MIBManager |
getInstance()
Gets the MIBManager. |
abstract MIBDefinition[] |
queryMibs(int subDevice,
String oid)
Makes a query for all MIB objects matching the oid parameter, as well as any descendants in the MIB tree, in a specific sub-device including eSTB and eCM. |
abstract MIBDefinition[] |
queryMibs(String oid)
Makes a query for all MIB objects matching the oid parameter, as well as any descendants in the MIB tree. |
abstract void |
registerOID(String oid,
int access,
boolean leaf,
int dataType,
MIBListener listener)
Registers a MIB object by adding the OID and listener to the MIB tables. |
abstract void |
setMIBObject(MIBObject mibToSet)
Sets a Host MIB object. |
abstract void |
unregisterOID(String oid)
Unregisters a previously registered OID if the OID was registered by the same application. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int MIB_ACCESS_READONLY
public static final int MIB_ACCESS_READWRITE
public static final int MIB_ACCESS_WRITEONLY
public static final int ECM_SUBDEVICE
public static final int ESTB_SUBDEVICE
| Constructor Detail |
|---|
protected MIBManager()
| Method Detail |
|---|
public static MIBManager getInstance()
SecurityException - if the calling application does not have
MonitorAppPermission("diagnostics").
public abstract void registerOID(String oid,
int access,
boolean leaf,
int dataType,
MIBListener listener)
oid - The Object Identifier of the MIB being registered. The
format of the string is based on the format defined by RFC 2578 for
OBJECT IDENTIFIER definition. Terms in the string are period
delimited, e.g. "1.3.6.1.4.1".access - Indicates allowed access to the MIB being registered. See
access constants in the class for valid values.leaf - When true indicates if the object is a leaf, otherwise the
object is a non-leaf table column.dataType - The data type of the MIB being registered. See constants
in MIBDefinition for valid values.listener - Listener to the MIB being registered. Must not be null.
IllegalArgumentException - if oid is an invalid oid string,
if oid is already installed, or any other parameter has an
invalid value.public abstract void unregisterOID(String oid)
oid - An object identifier that was passed to the registerOID
method.
IllegalArgumentException - if parameter does not match an OID
registered with the registerOID method.public abstract MIBDefinition[] queryMibs(String oid)
If the CableCARD supports MIB APDUs then this method SHALL be able to query the CableCARD MIB objects.
oid - The object identifier to search for. The format of the
string is based on the format defined by RFC 2578 for
OBJECT IDENTIFIER definition. Terms in the string
are period delimited, e.g. "1.3.6.1.4.1".
public abstract MIBDefinition[] queryMibs(int subDevice,
String oid)
If ECM_SUBDEVICE is the subDevice argument value the implementation SHALL allow eCM MIB query in an implementation specific fashion. The Host device may restrict eCM MIB access to a particular subset of MIB objects; see Host CFR for required eCM MIB support.
subDevice - The sub-device to read the MIB from. Using
ESTB_SUBDEVICE is equivalent to calling
queryMibs(String).oid - The object identifier to search for. The format of the
string is based on the format defined by RFC 2578 for
OBJECT IDENTIFIER definition. Terms in the string
are period delimited, e.g. "1.3.6.1.4.1".
IllegalArgumentException - if the subDevice is not one of the
ECM_SUBDEVICE or ESTB_SUBDEVICE.public abstract void setMIBObject(MIBObject mibToSet)
Note; This method can only set writable MIBs in the Host device (i.e. ESTB_SUBDEVICE). Writable MIBs for other sub-devices such as CableCARD and eCM cannot be set using this method.
mibToSet - The MIB to set. The OID in the MIBObject SHALL be used to
replace values with the data array in the parameter.
IllegalArgumentException - if the OID in the MIBObject parameter does
not reference a supported Host MIB or if the data attribute in the MIBObject
parameter is not in the correct ASN.1 form for the OID.
SecurityException - if the MIB is not writable or if the calling
application does not have MonitorAppPermission("diagnostics").
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||