|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.BobCo.snapins.SysDescrSnapIn
The SystemSnapIn class is a sample SNMP info browser. It implements the TWGSNMPInfoBrowserInterface and is registered to display inforation about the sysDescr mib object.
Field Summary |
---|
Fields inherited from interface com.tivoli.twg.snmp.SNMPRemoteResponse |
---|
AUTHORIZATION_ERROR, BAD_VALUE, COMMIT_FAILED, DECODE_ERROR, GENERAL_ERROR, GET, GETBULK, GETNEXT, INCONSISTENT_NAME, INCONSISTENT_VALUE, INFORM, NO_ACCESS, NO_CREATION, NO_ERROR, NO_SUCH_NAME, NOT_WRITEABLE, READ_ONLY, RESOURCE_UNAVAILABLE, SEND_ERROR, SESSION_CLOSED, SET, TIMEOUT, TOO_BIG, UNDO_FAILED, WRONG_ENCODING, WRONG_LENGTH, WRONG_TYPE, WRONG_VALUE, WRONG_VERSION |
Constructor Summary | |
---|---|
SysDescrSnapIn()
Constructor. |
Method Summary | |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Add a property change listener to the snap-in. |
javax.swing.JPanel |
getDisplayWindow()
The getDisplayWindow method is used to return a JPanel that will be displayed by the caller. |
com.tivoli.twg.snmp.TWGMIBItem2 |
getMIBItem()
Retrieve the SNMP MIB Data object that is being displayed by the snap-in. |
int |
getStatus()
Retrieve the current status of the snap-in. |
java.lang.String |
getStatusText()
Retrieve a text string that describes the current status of the snap-in. |
com.tivoli.twg.guilibs.WindowAttributes |
getWindowAttributes()
Retrieve the current window attributes |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Remove a property change listener from the snap-in. |
void |
response(com.tivoli.twg.snmp.SNMPRemoteRequest caller,
long moid,
int requestType,
long requestID,
com.tivoli.twg.snmputils.VariableBinding[] vbl,
long errorIndex)
|
void |
setMIBItem(long moid,
java.lang.String OID)
Set the MIB info that the snap-in will display, no value. |
void |
setMIBItem(long moid,
java.lang.String rawoid,
java.lang.String OID)
Set the MIB info that the snap-in will display, with value. |
void |
setMIBItem(long MOID,
java.lang.String RawOID,
java.lang.String OID,
java.lang.String Value,
com.tivoli.twg.libs.ServiceNode sn)
For use with an old server. |
void |
setResp(int RC,
java.lang.String OID,
java.lang.Object Value)
For use with an old server. |
void |
setStatus(int newStatus)
Set the current status of the snap-in. |
void |
setStatusText(java.lang.String newStatusText)
Set the current status text message for the snap-in. |
void |
setWindowAttributes(com.tivoli.twg.guilibs.WindowAttributes wa)
This method is called by the parent of the snap-in to update the window attributes so that they match the rest of the current user console. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SysDescrSnapIn()
Method Detail |
public javax.swing.JPanel getDisplayWindow()
getDisplayWindow
in interface com.tivoli.twg.snmp.TWGSNMPInfoBrowserInterface2
public int getStatus()
getStatus
in interface com.tivoli.twg.snmp.TWGSNMPInfoBrowserInterface2
public void setStatus(int newStatus)
setStatus
in interface com.tivoli.twg.snmp.TWGSNMPInfoBrowserInterface2
newStatus
- - a TWGSNMPConstants status value indicating the
new status of the fino browser.public java.lang.String getStatusText()
getStatusText
in interface com.tivoli.twg.snmp.TWGSNMPInfoBrowserInterface2
public void setStatusText(java.lang.String newStatusText)
setStatusText
in interface com.tivoli.twg.snmp.TWGSNMPInfoBrowserInterface2
newStatusText
- - the string that reflects the new status
of the info browser.public com.tivoli.twg.snmp.TWGMIBItem2 getMIBItem()
getMIBItem
in interface com.tivoli.twg.snmp.TWGSNMPInfoBrowserInterface2
TWGMIBItem2
public void setMIBItem(long moid, java.lang.String rawoid, java.lang.String OID)
setMIBItem
in interface com.tivoli.twg.snmp.TWGSNMPInfoBrowserInterface2
public void setMIBItem(long moid, java.lang.String OID)
setMIBItem
in interface com.tivoli.twg.snmp.TWGSNMPInfoBrowserInterface2
public void setMIBItem(long MOID, java.lang.String RawOID, java.lang.String OID, java.lang.String Value, com.tivoli.twg.libs.ServiceNode sn)
setMIBItem
in interface com.tivoli.twg.snmp.TWGSNMPInfoBrowserInterface2
public void setResp(int RC, java.lang.String OID, java.lang.Object Value)
public void response(com.tivoli.twg.snmp.SNMPRemoteRequest caller, long moid, int requestType, long requestID, com.tivoli.twg.snmputils.VariableBinding[] vbl, long errorIndex)
response
in interface com.tivoli.twg.snmp.SNMPRemoteResponse
public void setWindowAttributes(com.tivoli.twg.guilibs.WindowAttributes wa)
setWindowAttributes
in interface com.tivoli.twg.snmp.TWGSNMPInfoBrowserInterface2
public com.tivoli.twg.guilibs.WindowAttributes getWindowAttributes()
getWindowAttributes
in interface com.tivoli.twg.snmp.TWGSNMPInfoBrowserInterface2
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
addPropertyChangeListener
in interface com.tivoli.twg.snmp.TWGSNMPInfoBrowserInterface2
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
removePropertyChangeListener
in interface com.tivoli.twg.snmp.TWGSNMPInfoBrowserInterface2
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |