|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tivoli.twg.snmp.TWGMIBItem2
This class represents a MIB item. All of the characteristics of a particular element of a MIB are represented here. It is used to supply the information from the Director MIB repository on demand. NOTE: this class is ONLY instanciated by the Director Server.
TWGRemoteMIB
,
Serialized FormField Summary | |
---|---|
static int |
ACC_NOTACCESSIBLE
|
static int |
ACC_READCREATE
|
static int |
ACC_READONLY
|
static int |
ACC_READWRITE
|
static int |
ACC_UNKNOWN
|
static int |
ACC_WRITEONLY
|
protected int |
access
|
protected java.lang.String |
contactInfo
|
protected java.lang.String |
description
|
protected java.lang.String |
lastUpdated
|
protected java.lang.String |
name
|
static int |
OBJECT_ITEM
|
protected java.lang.String |
OID
|
protected java.lang.String |
organization
|
protected boolean |
Published
|
protected java.lang.String |
Range
|
protected int |
status
|
static int |
STATUS_CURRENT
|
static int |
STATUS_DEPRECATED
|
static int |
STATUS_MANDATORY
|
static int |
STATUS_OBSOLETE
|
static int |
STATUS_OPTIONAL
|
static int |
STATUS_UNKNOWN
|
protected boolean |
Table
|
protected long |
tag
|
static int |
TRAP_ITEM
|
protected boolean |
trapItem
|
protected int |
type
|
static int |
TYPE_BITS
|
static int |
TYPE_BITSTRING
|
static int |
TYPE_COUNTER
|
static int |
TYPE_COUNTER32
|
static int |
TYPE_COUNTER64
|
static int |
TYPE_DISPLAYSTRING
|
static int |
TYPE_GAUGE
|
static int |
TYPE_GAUGE32
|
static int |
TYPE_INTEGER
|
static int |
TYPE_IPADDRESS
|
static int |
TYPE_ITEM
|
static int |
TYPE_NETWORKADDRESS
|
static int |
TYPE_NSAPADDRESS
|
static int |
TYPE_OCTETSTRING
|
static int |
TYPE_OI
|
static int |
TYPE_OPAQUE
|
static int |
TYPE_SEQUENCE
|
static int |
TYPE_SEQUENCEOF
|
static int |
TYPE_TIMETICKS
|
static int |
TYPE_UNKNOWN
|
static int |
TYPE_UNSIGNED
|
static int |
TYPE_UNSIGNED32
|
protected boolean |
typeItem
|
protected java.lang.String |
typeString
|
protected java.lang.String |
units
|
protected com.tivoli.twg.MIBParser.OrderedHashtable |
Values
|
static int |
VERSION
|
static int |
VERSION_1
|
static int |
VERSION_2
|
static int |
VERSION_3
|
static int |
VERSION_4
|
Constructor Summary | |
---|---|
TWGMIBItem2()
INTERNAL USE ONLY Default Constructor NOTE: all data values are supplied by the MIB data repository |
|
TWGMIBItem2(java.lang.String name,
int access,
int status,
int type,
java.lang.String typeStr,
java.lang.String update,
java.lang.String org,
java.lang.String contact,
java.lang.String description,
java.lang.String units,
java.lang.String OID,
boolean trap,
boolean typeItem)
INTERNAL USE ONLY Constructor used in the Director Server to build an instance of this class in response to a query passed by TWGRemoteMIB.OIDLookup() NOTE: all data values are supplied by the MIB data repository |
|
TWGMIBItem2(java.lang.String name,
int access,
int status,
int type,
java.lang.String typeStr,
java.lang.String update,
java.lang.String org,
java.lang.String contact,
java.lang.String description,
java.lang.String units,
java.lang.String OID,
java.lang.String Range,
java.util.Hashtable values,
boolean Published,
boolean Table,
boolean trap,
boolean typeItem)
INTERNAL USE ONLY Constructor used in to build an instance of this class in response to a query passed by TWGRemoteMIB.OIDLookup() NOTE: all data values are supplied by the MIB data repository |
|
TWGMIBItem2(TWGByteArrayInputStream Buffer,
int persistentVersion)
INTERNAL USE ONLY |
|
TWGMIBItem2(com.tivoli.twg.snmp.TWGMIBItem mi)
INTERNAL USE ONLY Constructor used in to build an instance of this class in response to a query passed by TWGRemoteMIB.OIDLookup() NOTE: all data values are supplied by the MIB data repository |
Method Summary | |
---|---|
void |
AddValue(long Index,
java.lang.String Value)
INTERNAL USE ONLY |
protected void |
BuildBuffer(TWGByteArrayOutputStream Buffer,
int persistentVersion)
INTERNAL USE ONLY |
int |
getAccess()
Queries the Access mode allowed for this MIB attribute. |
java.lang.String |
getContactInfo()
Gets the contact information defined for this MIB item. |
java.lang.String |
getDescription()
Queries the textual description for this MIB attribute. |
java.lang.String |
getLastUpdated()
Gets the date of the last update |
java.lang.String |
getName()
This method will return a string representing the texual name of this MIB element, as opposed to the OID, or dotted decimal notation. |
java.lang.String |
getOID()
Queries the OID for this MIB attribute. |
java.lang.String |
getOrganization()
Gets the organization defined for this MIB item. |
java.lang.String |
GetRange()
If this MIB attribute has a restrictive range, such as maximum string length, or numeric limits, then this method will return a string representing those limits. |
int |
getStatus()
Queries the Status of this MIB attribute. |
int |
getType()
Queries the type represented by this MIB attribute. |
java.lang.String |
getTypeAsString()
Return the syntax type name as a string. |
java.lang.String |
getUnitsLabel()
Gets the units label for this objects value. |
java.lang.String |
GetValue(long Index)
If this MIB attribute has an enumerated value list, this method will return a string representation for the passed numeric value. |
java.util.Enumeration |
GetValueIDs()
If this MIB attribute has a enumerated value list associated with it, then this method will return of list of the numeric values that are allowed by that enumeration. |
java.util.Enumeration |
GetValueIDsReversed()
If this MIB attribute has a enumerated value list associated with it, then this method will return of list of the numeric values that are allowed by that enumeration. |
java.util.Enumeration |
GetValueStrings()
If this MIB attribute has a enumerated value list associated with it, then this method will return of list of the string constants that are allowed by that enumeration. |
java.util.Enumeration |
GetValueStringsReversed()
If this MIB attribute has a enumerated value list associated with it, then this method will return of list of the string constants that are allowed by that enumeration. |
boolean |
IsPublished()
INTERNAL USE ONLY Used by the Trap management code to determine if this particular item has been published to the Director Alert Management sub-system. |
boolean |
isTable()
Indicates whether or not this object is a sequence or a descendent of a sequence - ie. |
boolean |
isTrap()
Returns whether or not this TWGMIBItem2 is a trap. |
boolean |
isType()
Returns whether or not this TWGMIBItem2 is a type. |
void |
LoadIPCCommand(Command cmd)
INTERNAL USE ONLY |
com.tivoli.twg.snmp.TWGMIBItem |
MakeTWGMIBItem()
INTERNAL USE ONLY |
void |
resolveForwardRef()
|
void |
SetPublished(boolean bpub)
INTERNAL USE ONLY Used by the Trap management code to determine if this particular item has been published to the Director Alert Management sub-system. |
void |
SetRange(java.lang.String Range)
INTERNAL USE ONLY |
void |
setTable(boolean table)
Allows this object to be marked as a sequence or a descendent of a sequence - ie. |
boolean |
ValuesPresent()
Used to determine if this MIB attribute has an enumerated value list. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String name
protected int access
protected int status
protected int type
protected java.lang.String typeString
protected java.lang.String lastUpdated
protected java.lang.String organization
protected java.lang.String contactInfo
protected java.lang.String description
protected java.lang.String units
protected java.lang.String OID
protected java.lang.String Range
protected com.tivoli.twg.MIBParser.OrderedHashtable Values
protected boolean Published
protected boolean Table
protected boolean trapItem
protected boolean typeItem
protected long tag
public static final int VERSION
public static final int VERSION_4
public static final int VERSION_3
public static final int VERSION_2
public static final int VERSION_1
public static final int TYPE_UNKNOWN
public static final int TYPE_COUNTER
public static final int TYPE_GAUGE
public static final int TYPE_INTEGER
public static final int TYPE_IPADDRESS
public static final int TYPE_DISPLAYSTRING
public static final int TYPE_NETWORKADDRESS
public static final int TYPE_NSAPADDRESS
public static final int TYPE_OI
public static final int TYPE_OCTETSTRING
public static final int TYPE_OPAQUE
public static final int TYPE_SEQUENCE
public static final int TYPE_SEQUENCEOF
public static final int TYPE_TIMETICKS
public static final int TYPE_BITSTRING
public static final int TYPE_COUNTER64
public static final int TYPE_UNSIGNED
public static final int TYPE_UNSIGNED32
public static final int TYPE_COUNTER32
public static final int TYPE_GAUGE32
public static final int TYPE_BITS
public static final int ACC_UNKNOWN
public static final int ACC_NOTACCESSIBLE
public static final int ACC_READONLY
public static final int ACC_WRITEONLY
public static final int ACC_READWRITE
public static final int ACC_READCREATE
public static final int STATUS_UNKNOWN
public static final int STATUS_MANDATORY
public static final int STATUS_OPTIONAL
public static final int STATUS_OBSOLETE
public static final int STATUS_DEPRECATED
public static final int STATUS_CURRENT
public static final int TRAP_ITEM
public static final int TYPE_ITEM
public static final int OBJECT_ITEM
Constructor Detail |
public TWGMIBItem2()
public TWGMIBItem2(java.lang.String name, int access, int status, int type, java.lang.String typeStr, java.lang.String update, java.lang.String org, java.lang.String contact, java.lang.String description, java.lang.String units, java.lang.String OID, boolean trap, boolean typeItem)
public TWGMIBItem2(java.lang.String name, int access, int status, int type, java.lang.String typeStr, java.lang.String update, java.lang.String org, java.lang.String contact, java.lang.String description, java.lang.String units, java.lang.String OID, java.lang.String Range, java.util.Hashtable values, boolean Published, boolean Table, boolean trap, boolean typeItem)
public TWGMIBItem2(com.tivoli.twg.snmp.TWGMIBItem mi)
public TWGMIBItem2(TWGByteArrayInputStream Buffer, int persistentVersion) throws TWGSNMPException
Buffer
- persistentVersion
-
TWGSNMPException
Method Detail |
public com.tivoli.twg.snmp.TWGMIBItem MakeTWGMIBItem()
public void LoadIPCCommand(Command cmd)
public boolean IsPublished()
public void SetPublished(boolean bpub)
public void SetRange(java.lang.String Range)
public void AddValue(long Index, java.lang.String Value)
public java.lang.String GetValue(long Index)
Index
- Numeric value to be translated.
public boolean ValuesPresent()
public java.util.Enumeration GetValueIDs()
public java.util.Enumeration GetValueStrings()
public java.util.Enumeration GetValueIDsReversed()
public java.util.Enumeration GetValueStringsReversed()
public java.lang.String GetRange()
public java.lang.String getName()
public int getAccess()
public int getStatus()
public int getType()
public java.lang.String getTypeAsString()
public java.lang.String getDescription()
public java.lang.String getLastUpdated()
public java.lang.String getOrganization()
public java.lang.String getContactInfo()
public java.lang.String getUnitsLabel()
public java.lang.String getOID()
public boolean isTable()
public boolean isTrap()
public boolean isType()
public void setTable(boolean table)
table
- true if this object is a sequence or a descendent
of a sequence; false otherwisepublic void resolveForwardRef() throws TWGSNMPException
TWGSNMPException
protected void BuildBuffer(TWGByteArrayOutputStream Buffer, int persistentVersion)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |