|
SNMP Stack 5_1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.co.westhawk.snmp.beans.SNMPBean | +--uk.co.westhawk.snmp.beans.SNMPRunBean | +--uk.co.westhawk.snmp.beans.NTSharedResBean
This bean collects the names of the shared resources installed on a NT server. The NT mib is described in the LAN Manager MIB II for Windows NT Objects . You will have to register to the MSDN before accessing this page.
The properties in the parent classes should be set, before calling the action() method. Via a PropertyChangeEvent the application/applet will be notified.
SNMPBean.setHost(java.lang.String)
,
SNMPBean.setPort(int)
,
SNMPBean.setCommunityName(java.lang.String)
,
SNMPRunBean.setUpdateInterval(int)
,
SNMPBean.addPropertyChangeListener(java.beans.PropertyChangeListener)
,
SNMPBean.action()
,
GetNextPdu
Field Summary | |
static java.lang.String |
svShareName
|
Fields inherited from class uk.co.westhawk.snmp.beans.SNMPRunBean |
interval, me, running |
Fields inherited from class uk.co.westhawk.snmp.beans.SNMPBean |
bindAddr, community, context, host, message, port, propertyChangeListener, socketType |
Constructor Summary | |
NTSharedResBean()
The default constructor. |
|
NTSharedResBean(java.lang.String h,
int p)
The constructor that will set the host and the port no. |
|
NTSharedResBean(java.lang.String h,
int p,
java.lang.String b)
The constructor that will set the host, the port no and the local bind address. |
Method Summary | |
void |
action()
This method starts the action of the bean. |
int |
getCount()
Returns the number of NT shared resources. |
java.lang.String |
getIndex(java.lang.String name)
Returns the index of one of the resources. |
java.util.Enumeration |
getIndices()
Returns the indices of the NT shared resources. |
java.util.Date |
getLastUpdateDate()
Returns the date of the moment when this bean was last updated. |
java.util.Enumeration |
getNames()
Returns the names of the NT shared resources (the list of svShareName). |
void |
run()
Implements the running of the bean. |
void |
update(java.util.Observable obs,
java.lang.Object ov)
This method is called when the Pdu response is received. |
Methods inherited from class uk.co.westhawk.snmp.beans.SNMPRunBean |
getUpdateInterval, isRunning, setRunning, setUpdateInterval, setUpdateInterval |
Methods inherited from class uk.co.westhawk.snmp.beans.SNMPBean |
addPropertyChangeListener, firePropertyChange, getBindAddress, getCommunityName, getHost, getMessage, getPort, getSocketType, isHostPortReachable, removePropertyChangeListener, setBindAddress, setCommunityName, setHost, setMessage, setPort, setPort, setSocketType |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String svShareName
Constructor Detail |
public NTSharedResBean()
public NTSharedResBean(java.lang.String h, int p)
h
- the hostnamep
- the port noSNMPBean.setHost(java.lang.String)
,
SNMPBean.setPort(int)
public NTSharedResBean(java.lang.String h, int p, java.lang.String b)
h
- the hostnamep
- the port nob
- the local bind addressSNMPBean.setHost(java.lang.String)
,
SNMPBean.setPort(int)
,
SNMPBean.setBindAddress(java.lang.String)
Method Detail |
public java.util.Date getLastUpdateDate()
public java.util.Enumeration getIndices()
getIndex(String)
,
svShareName
public java.lang.String getIndex(java.lang.String name)
name
- The name of the resource
getIndices()
,
getNames()
public java.util.Enumeration getNames()
public int getCount()
public void action()
action
in class SNMPBean
SNMPBean.action()
public void run()
run
in interface java.lang.Runnable
run
in class SNMPRunBean
SNMPRunBean.isRunning()
public void update(java.util.Observable obs, java.lang.Object ov)
update
in interface java.util.Observer
SNMPBean.addPropertyChangeListener(java.beans.PropertyChangeListener)
|
SNMP Stack 5_1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |