|
SNMP Stack 4_12 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | 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.OneNTServiceBean
This bean collects information about one NT network service 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),
setIndex(String),
SNMPBean.addPropertyChangeListener(java.beans.PropertyChangeListener),
SNMPBean.action(),
GetPdu_vec,
NTServiceNamesBean| Field Summary | |
static int |
can_be_paused
|
static int |
can_be_uninstalled
|
static int |
cannot_be_paused
|
static int |
cannot_be_uninstalled
|
static java.lang.String[] |
msg_inst_state
|
static java.lang.String[] |
msg_oper_state
|
| Fields inherited from class uk.co.westhawk.snmp.beans.SNMPRunBean |
interval, me, running |
| Fields inherited from class uk.co.westhawk.snmp.beans.SNMPBean |
community, context, host, message, port, propertyChangeListener |
| Constructor Summary | |
OneNTServiceBean()
The default constructor. |
|
OneNTServiceBean(java.lang.String h,
int p)
The constructor that will set the host and the port no. |
|
| Method Summary | |
void |
action()
This method starts sending the SNMP request. |
boolean |
getCanBePaused()
Returns if the NT network service can be paused. |
boolean |
getCanBeUninstalled()
Returns if the NT network service can be uninstalled. |
java.lang.String |
getIndex()
Returns the index of the NT network service. |
java.lang.String |
getInstalledState()
Returns the installation status of the NT network service. |
java.util.Date |
getLastUpdateDate()
Returns the date of the moment when this bean was last updated. |
java.lang.String |
getName()
Returns the name of the NT network service. |
java.lang.String |
getOperatingState()
Returns the operating status of the NT network service. |
void |
run()
The run method according to the Runnable interface. |
void |
setIndex(java.lang.String ind)
Sets the index of the NT network service that will be requested. |
void |
update(java.util.Observable obs,
java.lang.Object ov)
The update method according to the Observer interface, it will be 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, getCommunityName, getHost, getMessage, getPort, isHostPortReachable, removePropertyChangeListener, setCommunityName, setHost, setMessage, setPort, setPort |
| 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[] msg_inst_state
public static final java.lang.String[] msg_oper_state
public static final int cannot_be_uninstalled
public static final int can_be_uninstalled
public static final int cannot_be_paused
public static final int can_be_paused
| Constructor Detail |
public OneNTServiceBean()
public OneNTServiceBean(java.lang.String h,
int p)
h - the hostnamep - the port noSNMPBean.setHost(java.lang.String),
SNMPBean.setPort(int)| Method Detail |
public void setIndex(java.lang.String ind)
ind - the indexgetIndex(),
NTServiceNamesBean.getIndex(String)public java.lang.String getIndex()
setIndex(String)public java.lang.String getName()
public java.lang.String getInstalledState()
msg_inst_statepublic java.lang.String getOperatingState()
msg_oper_statepublic boolean getCanBeUninstalled()
can_be_uninstalled,
cannot_be_uninstalledpublic boolean getCanBePaused()
can_be_paused,
cannot_be_pausedpublic java.util.Date getLastUpdateDate()
public void action()
action in class SNMPBeanpublic void run()
run in class SNMPRunBeanSNMPRunBean.isRunning()
public void update(java.util.Observable obs,
java.lang.Object ov)
update in interface java.util.ObserverSNMPBean.addPropertyChangeListener(java.beans.PropertyChangeListener)
|
SNMP Stack 4_12 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||